Skip to content

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

Open
advancedresearcharray wants to merge 6 commits into
mainfrom
feat/issue-421-wiki-link-hover-preview-hands-on
Open

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

Conversation

@advancedresearcharray

@advancedresearcharray advancedresearcharray commented Jul 3, 2026

Copy link
Copy Markdown
Owner

Summary

  • Add Obsidian-style hover preview for rendered [[wiki-link]] anchors in read/preview mode using Radix HoverCard (300ms open / 100ms close).
  • Lazy-fetch preview data via GET /api/kiwi/peek?path=<target> with in-flight dedup and caching (404 cached; transient errors retry on re-hover).
  • Popover shows title (frontmatter preferred), path, ~200 char snippet, and tags; broken links show "Page not found".
  • Keyboard Tab focus does not open the popover; touch/coarse-pointer devices get plain anchors.

Closes kiwifs#421

Test plan

  • cd ui && npm test -- src/lib/wikiLinkPeek.test.ts src/lib/wikiLinkAnchor.test.ts --run — 18 passed
  • cd ui && npm test -- --run — 207 passed
  • Manual: hover a wiki-link in read mode → preview popover after 300ms
  • Manual: broken [[missing-page]] shows "Page not found"
  • Manual: Tab to wiki-link does not open popover
  • Manual: click link navigates; click inside popover does not

Array Fleet and others added 6 commits July 3, 2026 04:26
Show Obsidian-style page previews on wiki-link hover in read mode via
HoverCard + lazy GET /api/kiwi/peek with cache, touch-device skip, and
regression tests. Closes kiwifs#421.

Co-authored-by: Cursor <cursoragent@cursor.com>
…tion

Hands-on takeover verified tests and opened PR for inline wiki-link hover preview.

Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Record test results and peer-review PASS for wiki-link hover preview
delivery on feat/issue-421-wiki-link-hover-preview.

Co-authored-by: Cursor <cursoragent@cursor.com>
Confirm 207/207 UI tests pass and peer review PASS after fleet
takeover; no code changes required.

Co-authored-by: Cursor <cursoragent@cursor.com>
Peer review approved the hover preview feature; apply the remaining
delivery fix so markdown anchor props (e.g. data-kiwi-target) reach the
underlying <a> in both touch-only and HoverCard paths.

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