Artifacts Associated With Ticket 548788c1a4b6d97f5f5585e299c789f931fff11a
Ticket change [6339776ac8] (rid 3076) by dmestas on 2026-08-27 10:55:06:
- Untracked field cmimetype: "text/x-markdown"
- comment initialized to:
The fleet filter on `/` is the one URL-sync case our hand-rolled `syncurl` helper cannot cover, and it is the only concrete reason to consider Datastar Pro. ## Why syncurl stops here `syncurl` (internal/web/web.go) works by reading the clicked anchor's own `href` — the real, cold-loadable route — and replaceState-ing to it. That works for the diff toggle and the doc tabs because both are anchors already carrying a real URL. The fleet filter is not an anchor. It is `<form method="get" action="/">` with a debounced search input plus `kind` and `sort` selects (fleetSource). Without JS it navigates to `/?q=...&kind=...&sort=...`; with JS it fires `@get('/fleet.frag', {contentType: 'form'})` and the address bar never moves. The URL we would want is the serialization of three controls, which no href-reading trick can produce — we would have to build the query string from form state on every change. ## What Pro offers `data-query-string` syncs signals to query params on change and back on load, with a `__history` modifier. Verified 2026-08-26 against data-star.dev/reference/attributes. Also `data-replace-url`, a thinner version of what syncurl already does for us. Pro is a one-time lifetime licence: $349 solo, $1,299 team (up to 25 employees). It also carries the Inspector, which is plausibly worth more day to day than the attribute — debugging SSE patches by eye is the real pain in this stack. ## Why this is Low One affected surface. The filter works correctly today; you simply cannot link to a filtered fleet view or restore one on reload, and the no-JS path already does the right thing. Nothing is broken, and hand-rolling query-string assembly stays available if we decide the surface matters more than the licence. ## What would raise it More form-shaped filter surfaces. The current inventory is exactly one. At three or four, buying beats hand-rolling. ## Notes - The load-side half of `data-query-string` is largely redundant here: quarry is server-rendered and every one of these routes already reads its own query string, so the server owns URL-to-state. - Whichever way this goes, the fleet input must use replaceState, not pushState — it is debounced, and pushState would stack a history entry per keystroke burst. - Related: the strata `url-sync-helper` / `url-sync-doctabs` covers the two anchor-shaped cases. This ticket is only about the form-shaped one. - priority initialized to: "Low"
- severity initialized to: "Minor"
- status initialized to: "Open"
- subsystem initialized to: "web"
- title initialized to:
Evaluate Datastar Pro for the fleet filter's URL sync
- type initialized to: "Feature_Request"
Ticket change [f0854bcece] (rid 5495) by dmestas on 2026-09-03 18:00:42:
- icomment: "Won't do"
- mimetype: "text/x-markdown"
- resolution changed to: "Fixed"
- status changed to: "Closed"
Ticket change [a2d84c8d2a] (rid 5496) by dmestas on 2026-09-03 18:00:47:
- resolution changed to: "Rejected"
Ticket change [9777791356] (rid 12533) by zeitgeist on 2026-09-24 00:54:32:
- Untracked field number: "97"