feat(pdf-import): search the PDF creator's flashcard list #835
No reviewers
Labels
No labels
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority/Critical
Priority/High
Priority/Low
Priority/Medium
Reviewed/Confirmed
Reviewed/Duplicate
Reviewed/Invalid
Reviewed/Won't Fix
Status/Abandoned
Status/Blocked
Status/Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
project-halkyon/halkyon-learn!835
Loading…
Reference in a new issue
No description provided.
Delete branch "refs/pull/835/head"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds the browser's search affordance to the PDF import screen's
Flashcards sidebar: a header icon that reveals a full-width query row
below it, filtering the sections in place.
Matching is a case-insensitive substring test over the card's plain-text
front and back — the same two fields the browser's SQL filter matches,
and the only searchable ones the sidebar's content-less stream carries.
Cards are filtered before bucketing, so a page or chapter whose cards all
drop out disappears with them rather than showing a 0 counter.
While a query is active, sections render force-expanded — a hit inside a
collapsed page would otherwise read as "no results". Collapses made
during a search go to a search-scoped set, so the chevrons stay live and
the persisted collapse state is restored when the search closes; the
collapse-all / expand-all buttons step aside meanwhile.
The header now always renders (it used to appear only with an outline or
2+ sections) so the icon is always reachable, and the sections memo keys
on the query.