You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(browse): highlight search matches and disable infinite scroll while searching (Closes#24)
Wire the FTS5 snippet from /api/search into the browse feed so matched
terms render with <mark> highlighting, and suspend the scroll-triggered
auto-load while a search query is active.
- Preserve the FTS5 snippet through the API client (drop only rank) and
add it to BrowseItem
- Render highlighted snippets in ContentCard, falling back to the plain
preview when there is no snippet
- Consolidate the XSS-safe snippet parser into src/lib/snippet.ts, shared
by the browse card and the command palette; segments render as React
text children so no dangerouslySetInnerHTML ever touches untrusted
content (single source of truth for the safety property)
- Add an infiniteScroll prop to ContentFeed; browse-page passes !filters.q
so scrolling no longer auto-loads mid-search (a manual Load more still
paginates)
- Style <mark> with the --primary-muted design token
- Bump 0.10.0 -> 0.11.0 + README badge
Closes#24
0 commit comments