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
{{ message }}
Repository navigation
search + tag filter: intended composition (AND) vs shipped drill-down (one hash only) #25
Reviewer I1 on v0.6.1 — design-decision issue, not a code bug.
Current behavior (shipped in `3be301e`)
`apps/desktop/src/App.tsx` has `searchHash: string | null` state. Clicking a result sets `searchHash` to ONE specific hit and clears `selectedTagId`. The visible file list is filtered to that single hash. Search is mutually exclusive with the tag filter.
`searchHits: SearchHit[] | null` state (plural). Composition: `visibleFiles = files.filter(f => tagPredicate(f) && searchPredicate(f))` where `searchPredicate` is a `Set` of hashes from `searchHits`. Search narrows the list; tag filter still applies.
Also referenced in spec §6: "renders FileTable / FileGrid filtered to matching hashes (preserves tag filter composition)".
Trade-offs
Plan / compose (`files.filter(tag && search)`)
Shipped / drill-down (one hash)
Discoverability
Shows all matching files at once
Hides the rest; requires re-search to see them
Tag-scoped search
Works naturally
Broken (clears the tag filter)
Implementation
`Set` of hashes
`string`
UX clarity for "the one file I want"
Still fine — click a row after narrowing
Direct click → single-file view
Keyboard nav
One of many
One focused
Options
(A) Restore compose-on-match per plan. Revert `searchHash` → `searchHits`, compose with tag predicate. Requires updating SearchBar interface or App state handling.
(B) Document drill-down as the new design. Update spec + plan post-hoc, add WHY comment in `App.tsx` explaining the deviation.
(C) Hybrid: while search has an open dropdown, render `files.filter(tag && set-of-hashes)`; clicking a hit narrows further to single-hash; `Escape` or clear restores.
Will be addressed via full superpowers:brainstorming → spec → plan flow.
Activity
docs(plans): v0.6.2 live faceted search — implementation plan (#32)
feat(desktop): composeVisible + sortByRank (#32)
feat(desktop): SearchBar + App.tsx + TagSidebar — live faceted search…
test(desktop): App composition invariant snapshot (closes #25)
chore(release): v0.6.2 — live faceted search (closes #25)
test(desktop): rewrite 5 test files for Batch H state migration