search: browse bounded recent items with kind-only queries

This commit is contained in:
2026-10-20 17:54:00 +01:00
parent cce7ea903a
commit 9cdfd9d9ab
12 changed files with 477 additions and 94 deletions
+14 -7
View File
@@ -158,19 +158,26 @@ rename's exact server reason and, under `--decide`, the full live decision flow.
## Search
Type-prefix follow-up (2026-10-20, **partial — isolated browser fixture, not a
live-server acceptance run**): unquoted, case-insensitive `t:` / `type:` tokens
Type-prefix follow-up (2026-10-20, **partial — isolated browser fixture and
scratch server-command tests, not a deployed-server acceptance run**): unquoted, case-insensitive `t:` / `type:` tokens
accept the existing singular kinds (`pipeline`, `run`, `step`, `field`,
`artifact`, `version`). The last recognized token overrides the selector and is
reflected in Kind and the summary. Selecting Kind or Clear filter removes all
recognized tokens; unsupported and quoted tokens remain literal text. Only the
remaining text and the effective `kind` reach the unchanged `search` request.
Type-only queries show explicit help, not results: `Store.Search` deliberately
returns no results for blank text. Parser tests plus `node test/ui-search-types.mjs`
Type-only queries now send a real empty `query` plus a valid nonempty `kind` to
list bounded recent canonical items. The server uses recency indexes on existing
tables, then numeric entity/visit IDs and target as deterministic tie-breaks;
existing result caps and field-scan budgets still apply. Blank text with no kind
remains a no-op, and an invalid kind still errors. No wildcard text is invented.
The UI labels recent items and result/scan caps, and distinguishes an empty kind
from a scan-limited empty result. Parser tests plus `node test/ui-search-types.mjs`
exercise the real view/repository with recorded fixture requests and no service
connection. Captures: `captures/search-types/01-type-filter.png` through
`06-cleared-filter.png` (including precedence, selector replacement, literal
tokens and type-only help). This browser-only shorthand is not yet on Android;
connection. Captures: `captures/search-types-recent/01-type-filter.png` through
`09-cleared-filter.png` (including precedence, selector replacement, literal
tokens, type-only pipeline/artifact results and both empty states). Server tests
exercise empty-query searches for all six kinds over an actual `/connect`
WebSocket against a throwaway database. This browser-only shorthand is not yet on Android;
the earlier live-search acceptance evidence below is unchanged.
| # | Feature | Protocol | Status |