Files
romm/frontend
zurdiandClaude Opus 4.7 8750dd558b feat(frontend-v2): useGalleryFilterUrl composable
Round-trips the active search term between Vue Router's `route.query`
and the v1 galleryFilter store. URLs are now bookmarkable for the bits
of state v2 actually exposes today.

- New composable in `src/v2/composables/useGalleryFilterUrl/`. URL→store
  on mount and on every `route.query.search` change (covers browser
  back/forward and pasted URLs); store→URL via `router.replace` so each
  keystroke doesn't grow the history stack. Skips writes when desired
  and current already match (no feedback loop with the inverse watcher).
- Plugged into Platform / Search / Collection.
- Removed the manual `searchTerm.value = null` cleanups in Platform and
  Collection — the next gallery view's mount re-applies its own URL,
  so the cleanup happens implicitly. No behavioural change for navigation
  patterns we already supported.
- Scope is intentionally narrow today (only `searchTerm` round-trips)
  because that's the only filter v2 surfaces. The other ~24 galleryFilter
  fields plug in here once the v2 filter drawer ships.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-30 08:04:51 +00:00
..
2026-04-05 17:57:48 -04:00
2026-03-31 08:19:06 -04:00
2026-02-16 22:11:47 -05:00
2025-09-09 20:19:30 -04:00
2024-05-21 10:18:13 -04:00