Skip to content

feat(search): search as you type - #876

Merged
danieltruong merged 1 commit into
reactfrom
feat-search-typeahead
Sep 11, 2026
Merged

feat(search): search as you type#876
danieltruong merged 1 commit into
reactfrom
feat-search-typeahead

Conversation

@danieltruong

Copy link
Copy Markdown
Collaborator

What

Document search, project list, news and project notifications refetch 300 ms after typing stops, once the keyword has two characters or is cleared. Previous rows stay on screen between keystrokes and a superseded request is aborted. The Search button and Enter still work. The result count is announced through aria-live="polite".

Side effect: the project documents tab shares the filter component and gains the same two-character minimum.

Server side: fuzzy and prefix matching on the last token come from DEMI (digitalspace/eagle-demi#381). Until that lands on test, a partial word can return no rows on the project list.

Tests

yarn test 851 pass. Unit specs for debounce, minimum length, abort on supersede, previous rows kept, URL restore; two Playwright specs type without clicking. Request baseline unchanged: no default page-load request changed.

Document search, project list, news and project notifications refetch
300 ms after typing stops, from two characters. Previous rows stay on
screen between keystrokes and superseded requests are aborted.
@danieltruong
danieltruong merged commit f2abe77 into react Sep 11, 2026
8 checks passed
@danieltruong
danieltruong deleted the feat-search-typeahead branch September 11, 2026 00:27
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.

1 participant