* chore(map): qualify and upgrade MapLibre to 6.19.0 (#239)
6.19.0 stops emitting the two -shared source maps. Require the four
renderer/worker maps, recover the shared maps only when present, and fail
closed unless the recovered inventory still contains src/index.ts,
src/source/worker.ts and src/util/actor_messages.ts.
Bump the version guard, cache directory and completion stamp to 6.19.0,
and pin maplibre-gl to 6.19.0 in package.json/package-lock.json.
* fix(map): isolate zustand/vanilla in the MapLibre chunk graph (#239)
MapLibre 6.19 keeps map state in a zustand/vanilla store that
src/ui/map_state.ts imports at module scope. Rollup placed that module
inside the lazily imported components/Map/maplibre.ts facade, so the
MapLibre core chunk imported the facade back and the two formed a chunk
cycle. The facade's module-scope setWorkerUrl() then ran before the core
chunk initialised src/util/config.ts, throwing "Cannot set properties of
undefined (setting 'WORKER_URL')" and rendering the app error boundary.
Give zustand/vanilla its own codeSplitting chunk. It has no imports, so
the shared worker graph reaches neither the facade nor the React chunk
(which cycles with the app entry and would throw "document is not
defined" in the worker).
* chore(frontend): re-baseline the all-JS gzip ceiling to 905 KiB (#239)
MapLibre 6.19 costs ~17 KiB gzip over 6.11.2 and the 900 KiB ceiling had
48 bytes of headroom before the upgrade. The deployed website image
measures 901.2 KiB, so the old ceiling fails on the merged tree. 905 KiB
leaves ~3.5 KiB of headroom.
* chore(frontend): raise all-JS gzip budget to 910 KiB for MapLibre 6.19
---------
Co-authored-by: hermes-gadget <hermes-gadget@users.noreply.github.com>
- split backend API into route/service/repository boundaries across stats, owner, and pathing\n- extract shared API bootstrap and helper modules\n- reduce MapLibreMap into smaller frontend map modules with extracted builders, config, popup UI, and types\n- continue worker modularization by extracting RF terrain/tile helpers alongside RF config and loss helpers\n- add repo-local architecture, DB lifecycle, link model, pathing, frontend map, and contributing docs\n\nThis is the verified refactor checkpoint: backend and frontend builds passed, worker syntax checks passed, affected containers were rebuilt, and /healthz is OK.