Repository navigation
GridForge v1.6.0 — Expanded URL Deep Links & Shareable Map Snapshots
Deep-linking and shareable trip snapshot release expanding stateless URL permalinks to preserve full Studio views (basemap, zoom, cartography, outputs, booklet toggles, waypoints, RF links, tactical graphics, and custom LOS observer labels), adding a one-click topbar Share popover, and introducing SQLite-backed immutable short share links (?share=<token>, /api/shares) for both live Studio views and Saved Trip Projects.
Highlights
Expanded Stateless URL Deep Links (web/src/deeplink.ts)
- Preserves full backward compatibility with all existing query parameters while adding compact, non-default encoding for basemap (
bm, including deferredofflinebasemap activation), map zoom (z), cartography controls (contours,hillshade,labels,hidefor disabled layers), output formats (out,mbfmt,garmin,dgrid), booklet toggles (rc,ep,rfcard), custom LOS observer labels (los), waypoints (wp), RF links (rf), and tactical graphics (tacbase64url JSON). - Syncs the browser address bar across every state mutation (basemap switching, debounced zoom changes, waypoints, RF links, tactical graphics), auto-hydrates markups, route metrics, viewsheds, and RF profiles on load (respecting Cloudflare Turnstile), and enforces strict sanitization plus a
3800-character URL budget with graceful markup fallback. - Persists and restores
basemapandmap_zoominside Saved Trip Projects alongside full configuration state.
Topbar Share Button & Accessible Share Popover
- Added a topbar Share button next to Projects with live sheet/markup summary, Copy Direct Link, Create Short Share Link, truncation & local GPX/KML notices, keyboard Escape/click-outside dismissal, and responsive icon-only collapse on narrow viewports.
Server-Backed Shareable Snapshots (/api/shares, ?share=<token>)
- Added SQLite
shared_snapshotsstorage (src/gridforge/web/shares.py) with 96-bit URL-safe tokens, allowlisted state keys, collection bounds, and a64 KBpayload cap (413on overflow). - Added
POST /api/shares(snapshot from current Studio state or an ownedproject_idwith tenant ownership403andSameOriginWritesMiddlewareCSRF protection), public read-onlyGET /api/shares/{share_id}(stripping owner/tenant metadata, settingCache-Control: no-cache, and returning404once expired or revoked), owner-scopedGET /api/shares, and owner/adminDELETE /api/shares/{share_id}. - Added role-aware hosted TTL caps (
GRIDFORGE_GUEST_SHARE_TTL_HOURS=168/ 7d,GRIDFORGE_FRIEND_SHARE_TTL_HOURS=720/ 30d; Admin/local permanent by default), hourly creation rate limits (GRIDFORGE_SHARE_HOURLY_LIMIT=30,GRIDFORGE_FRIEND_SHARE_HOURLY_LIMIT=120), and automatic expired snapshot pruning indb.prune_expired_shares()/worker.run_pruning_pass(). - Added a one-click Share action on every Saved Trip Project card and automatic
?share=<token>hydration on Studio load with hosted-tier capability clamping.
Fixes
- Multi-Sheet Atlas Index URL Persistence: Explicitly unchecking Atlas Index on
2×2–3×3grids now emitsindex=0in deep-link URLs instead of omittingindexand re-enabling the cover page on reload.
Container Images (Multi-Arch linux/amd64 + linux/arm64)
ghcr.io/jremick/gridforge:v1.6.0ghcr.io/jremick/gridforge:v1.6ghcr.io/jremick/gridforge:latest
Verification
- 538 offline backend tests (
tests/unit,tests/integration,tests/e2e) passing - 44 frontend unit & DOM tests (
npm --prefix web test) passing - 26 live multi-region open-data E2E tests (
US,Canada,Australia,New Zealand) passing - 5 verified 300–600 DPI sample vector PDFs attached directly below