Skip to content

F3: reactive AND-tokenized process search with cancellation (#17) - #54

Merged
DavidVFitzGerald merged 4 commits into
mainfrom
feat/f3-search
Nov 14, 2026
Merged

DavidVFitzGerald merged 4 commits into
mainfrom
feat/f3-search

Conversation

@DavidVFitzGerald

Copy link
Copy Markdown
Owner

Refs #17

Behavior

  • Search fields: a Process Name field with a one-click Clear search ×, plus an Advanced search disclosure with Geography, Category, Subcategory and Reference Flow Name fields. Each field is labelled, and there is one control per field.
  • Normalization and debounce: each field is trimmed and has internal whitespace collapsed; empty fields are left out. Case and punctuation are sent literally, and matching stays in the service. Changes apply after a 200 ms debounce; Clear applies immediately.
  • Filtered tree:
    • Each release issues one paged, root-scoped search, with "Load more" at the release level.
    • Only matching leaves and their ancestors render, expanded and with exact matching counts. The user's collapses reset when the filter changes.
    • A release with no matches shows "No matching processes in …"; when every release has none, "No processes match your search." appears. A polite live region announces the match count.
    • Unfiltered expansion and loaded pages are kept, and come back after Clear.
  • Cancellation: each filter is its own query key, so superseded searches are aborted and never render.
  • Selections and focus: searching, failures, Retry and Clear never change selections. Focus never moves while typing; Clear returns focus to Process Name.
  • Persistence: filters are never written to storage.
  • Model fix: a release-scoped page with zero matches now gives the release root an exact count of 0.

Checks (rootless container, project lca-diff-f3-search)

  • ./dev check and frozen npm ci PASS (no dependency changes)
  • format:check, lint, typecheck and build PASS
  • test:unit PASS: 212 tests in 15 files (3 consecutive runs)
  • test:e2e @smoke PASS (10 cases); full test:e2e PASS (32 cases, Chromium and Firefox)

Details: docs/engineering/f3-search-verification.md.

Limitations

🤖 Generated with Claude Code

DavidVFitzGerald and others added 3 commits November 14, 2026 16:10
…(Refs #17)

A Process Name field with Clear and an Advanced disclosure (Geography,
Category, Subcategory, Reference Flow Name) emit whitespace-normalized fields
after a 200 ms debounce. While filtering, each release issues one paged
root-scoped search; matching leaves and their ancestors render expanded with
exact counts, zero-match and no-results states, and unfiltered tree state is
kept for Clear. Superseded queries are cancelled and never render.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…earch inputs (Refs #17)

Drop the superseded-filter guard that discarded a new loader's first report
when its result was cached; only mounted loaders report and superseded
scopes are purged on filter change. Keep a collapsed filtered release's
pages. Let search inputs shrink to the sidebar width so Clear stays
clickable in Firefox.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@DavidVFitzGerald
DavidVFitzGerald merged commit b5704da into main Nov 14, 2026
2 checks passed
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