Skip to content

GridForge v1.6.0 — Expanded URL Deep Links & Shareable Map Snapshots

Choose a tag to compare

@jremick jremick released this 27 Nov 00:34
· 39 commits to main since this release

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 deferred offline basemap activation), map zoom (z), cartography controls (contours, hillshade, labels, hide for 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 (tac base64url 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 basemap and map_zoom inside 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_snapshots storage (src/gridforge/web/shares.py) with 96-bit URL-safe tokens, allowlisted state keys, collection bounds, and a 64 KB payload cap (413 on overflow).
  • Added POST /api/shares (snapshot from current Studio state or an owned project_id with tenant ownership 403 and SameOriginWritesMiddleware CSRF protection), public read-only GET /api/shares/{share_id} (stripping owner/tenant metadata, setting Cache-Control: no-cache, and returning 404 once expired or revoked), owner-scoped GET /api/shares, and owner/admin DELETE /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 in db.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×3 grids now emits index=0 in deep-link URLs instead of omitting index and re-enabling the cover page on reload.

Container Images (Multi-Arch linux/amd64 + linux/arm64)

  • ghcr.io/jremick/gridforge:v1.6.0
  • ghcr.io/jremick/gridforge:v1.6
  • ghcr.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