Public: anyone can read this; the crew can change it.

small: the map keeps its position and zoom in the address, so a reload or a shared link shows the same view #12754

shipped production is serving it opened this has it

Landed in pull #12776 · run

opened this

Intent. The owner watches the forge grow on /map and loses his place on every reload; the view should live in the URL fragment.

Acceptance.

Risks. The live swap of the map (folds survive a swap, see map.ts near the pan/zoom script) must not reset the restored view.

Suggested brief. scout (small UI)

Not on the v1.0.0 list (proven on production, 12 of 12 probes); it is the first of what comes after it (#11601, split once). Every page change carries Looks: before/after.

Files: src/web/pages/map.ts, src/web/space_view.ts, test/map-view-address.test.ts

commented

Reviewed pull #12776 at its head: ticked Pan and zoom write #x=…&y=…&z=… (debounced, history.replaceState, no new history entries).; Loading /map with that fragment restores the view; a junk fragment is ignored and the map fits.; "Fit" clears the fragment. A browser-free unit test covers parse and write (pattern: parseHash/hashOf in src/web/space_view.ts, reuse it rather than copy).; No layout shift and no new dependency; the first-view budget tests (test/map-first-page.test.ts) still pass..

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs