Skip to content

feat(ui): inline page preview on wiki-link hover#70

Open
advancedresearcharray wants to merge 5 commits into
mainfrom
feat/issue-421-wiki-link-hover-preview-delivery
Open

feat(ui): inline page preview on wiki-link hover#70
advancedresearcharray wants to merge 5 commits into
mainfrom
feat/issue-421-wiki-link-hover-preview-delivery

Conversation

@advancedresearcharray

@advancedresearcharray advancedresearcharray commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add HoverCard-based inline preview when hovering wiki-links in read/preview mode (300ms open delay, 100ms close delay)
  • Lazy-load title, path, ~200 char snippet, and tags via GET /api/kiwi/peek with in-memory cache and deduplicated concurrent requests
  • Missing links show "Page not found" without a network call; touch/coarse pointers skip hover preview
  • Rebased onto main (feat(ui): embeddable npm package @kiwifs/ui with headless components kiwifs/kiwifs#460 headless @kiwifs/ui mode): wiki-link navigation respects onWikiLinkClick in embeds

Test plan

  • cd ui && npm test -- --run wikiLinkPeek wikiLinkAnchor — 2 files, 18 tests passed
  • cd ui && npm test -- --run — 35 files, 207 tests passed
  • Manual: hover a [[wiki-link]] in read mode and confirm popover content
  • Manual: verify editor mode has no hover preview
  • Manual: verify missing links show "Page not found"

Closes kiwifs#421

Array Fleet and others added 4 commits July 3, 2026 05:15
Show Obsidian-style page previews on wiki-link hover using Radix
HoverCard, lazy /api/kiwi/peek fetches with deduplicated caching,
and touch-device detection to skip hover on coarse pointers.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Log headless KiwiPage integration and full test pass after rebase onto main.

Co-authored-by: Cursor <cursoragent@cursor.com>
@advancedresearcharray advancedresearcharray force-pushed the feat/issue-421-wiki-link-hover-preview-delivery branch from 650fea2 to 400fe4a Compare July 3, 2026 05:15
Spread markdown rest props (data-kiwi-target, etc.) onto the underlying
anchor in WikiLinkPreview so read-mode wiki-links keep remark metadata.

Co-authored-by: Cursor <cursoragent@cursor.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(ui): inline page preview on wiki-link hover

1 participant