feat(web): filename: search token UI — chips, unmatched hints, syntax help #1438

Merged
chris merged 1 commit from feat/search-filename-web into main 2026-10-29 22:09:48 +01:00
Owner

Web UI for the filename: search token (stacked on #1437 — base branch is feat/search-filename-token; merge #1437 first, then retarget/merge this).

Behavior

  • filename:<value> recognized as a multi-value query token (case-insensitive key, quoted values with spaces).
  • Removable chip like album chips, localized kind label (Filename:/Dateiname:/Filnavn:).
  • Backend unmatchedFilenameTokens surface as amber hints in the existing unmatched-token block (filename:… routing in unmatchedTokenLabel).
  • filename: line in the advanced-search syntax panel — rendered whenever the panel is open, independent of the status endpoint.
  • Contract typing completed: SearchFilterSummary now models tokenFilters (previously missing entirely on the TS side) + optional unmatchedFilenameTokens; optional chaining keeps the UI deployable against APIs predating the field.

Tests

+10 queryTokens tests, +7 page-level component tests (chips, unmatched hints, removal focus, defensive absence of the field). 386 unit tests green, npm run check 0 errors (20 pre-existing warnings in untouched files).

Merge order: #1437 → this PR (retarget to main after #1437 lands).

Web UI for the `filename:` search token (stacked on #1437 — base branch is `feat/search-filename-token`; merge #1437 first, then retarget/merge this). ## Behavior - `filename:<value>` recognized as a multi-value query token (case-insensitive key, quoted values with spaces). - Removable chip like album chips, localized kind label (Filename:/Dateiname:/Filnavn:). - Backend `unmatchedFilenameTokens` surface as amber hints in the existing unmatched-token block (`filename:…` routing in `unmatchedTokenLabel`). - `filename:` line in the advanced-search syntax panel — rendered whenever the panel is open, independent of the status endpoint. - Contract typing completed: `SearchFilterSummary` now models `tokenFilters` (previously missing entirely on the TS side) + optional `unmatchedFilenameTokens`; optional chaining keeps the UI deployable against APIs predating the field. ## Tests +10 `queryTokens` tests, +7 page-level component tests (chips, unmatched hints, removal focus, defensive absence of the field). **386 unit tests green**, `npm run check` 0 errors (20 pre-existing warnings in untouched files). Merge order: #1437 → this PR (retarget to main after #1437 lands).
feat(web): filename: search token UI — chips, unmatched hints, syntax help
All checks were successful
Wiki Sync / Sync wiki from docs (push) Has been skipped
Build and Deploy / Build plants worker image (push) Has been skipped
Build and Deploy / Build converter worker image (push) Has been skipped
Build and Deploy / Detect changed services and test scopes (push) Successful in 3s
Build and Deploy / Smoke API and media worker (push) Has been skipped
Build and Deploy / Smoke web (push) Has been skipped
Build and Deploy / Smoke ML worker (push) Has been skipped
Build and Deploy / Smoke people worker (push) Has been skipped
Build and Deploy / Build postgres image (push) Has been skipped
Build and Deploy / Build Android CI image (push) Has been skipped
Build and Deploy / Build media worker image (push) Has been skipped
Build and Deploy / Build ML worker image (push) Has been skipped
Build and Deploy / Build people worker image (push) Has been skipped
Build and Deploy / Build API image (push) Has been skipped
Build and Deploy / Android unit tests and debug APK (push) Has been skipped
Build and Deploy / Deploy postgres (push) Has been skipped
Build and Deploy / Build web image (push) Has been skipped
Build and Deploy / Deploy API (push) Has been skipped
Build and Deploy / Deploy web (push) Has been skipped
Build and Deploy / Deploy media worker (push) Has been skipped
Build and Deploy / Deploy ML worker (push) Has been skipped
Build and Deploy / Deploy plants worker (push) Has been skipped
Build and Deploy / Deploy people worker (push) Has been skipped
Build and Deploy / Deploy converter worker (push) Has been skipped
Build and Deploy / Deploy review instance (push) Has been skipped
Build and Deploy / Clean Docker build artifacts (push) Has been skipped
Build and Deploy / Run scoped PR tests (push) Successful in 15m43s
c44ef8a39f
Recognize filename: as a multi-value query token (queryTokens grammar,
case-insensitive key, quoted values). Render removable chips like album
chips (localized kind label), surface backend unmatchedFilenameTokens as
amber hints via the existing unmatched-token block, and list the token
in the advanced-search syntax panel (status-independent).

SearchFilterSummary typing gains the previously unmodeled tokenFilters
plus the additive optional unmatchedFilenameTokens — optional chaining
keeps the UI working against API responses that predate the field.

Tests: +10 queryTokens, +7 page-level component tests (chips, hints,
removal focus, defensive absence); 386 unit tests green, svelte-check
0 errors.
chris changed target branch from feat/search-filename-token to main 2026-10-29 21:59:32 +01:00
chris merged commit b711384bbc into main 2026-10-29 22:09:48 +01:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
chris/memories!1438
No description provided.