Skip to content

feat: faceted search -- typed-token scoping across the three search surfaces (goal 0086) - #212

Merged
alicoding merged 1 commit into
mainfrom
faceted-search
Aug 18, 2026
Merged

feat: faceted search -- typed-token scoping across the three search surfaces (goal 0086)#212
alicoding merged 1 commit into
mainfrom
faceted-search

Conversation

@alicoding

Copy link
Copy Markdown
Owner

The current-Spotlight pattern the owner asked for, built on the surveyed convergence (typing IS the acceptance — no Tab-accept, no chip state machine):

  • <label>: <text> grammar (shared/facetQuery.ts, pure, 18 unit cases): the token scopes results to that type, is parsed out of matching (never double-matched), stays visible in the input as the scope indicator, and is removed by ordinary backspace.
  • Suggestion chips are completion buttons only: while the first word prefix-matches the surface's vocabulary, a chip row appears; click completes the token. Kind chips in the Atlas jump carry the kind's color dot.
  • One mechanism, three surfaces: command palette (command/workflow/tab/setting), Quick Panel (workflow + the 7 Configure entity types), Atlas jump (kind labels + "area"). The node palette's 0047 complexity facet is deliberately untouched.

Proofs: 537 vitest (18 new grammar cases + jump scoping), 26 e2e across the three specs (scoped search, chip-completes, backspace-unscopes, kind/area scoping).

Goal: docs/goals/0086-faceted-search.md.

🤖 Generated with Claude Code

https://claude.ai/code/session_01FW5GkkAG8du7tNdYLk2zSd

…el, Atlas jump (goal 0086)

Adds a shared `<label>: <text>` grammar (shared/facetQuery.ts) so the
command palette, Quick Panel, and Atlas jump dialog all scope a search
to one type the same way -- a suggestion-chip row (shared/FacetChipRow.tsx)
completes the token on click, with typing the token itself as the
primary path. filterJumpCards gains a scope parameter for kind/area
scoping in the Atlas jump.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FW5GkkAG8du7tNdYLk2zSd
@alicoding
alicoding merged commit 6c53883 into main Aug 18, 2026
25 checks passed
@alicoding
alicoding deleted the faceted-search branch August 18, 2026 03:00
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