Commit Graph
270 Commits
Author SHA1 Message Date
Shadowbroker 40c129f07b Merge pull request #645 from BigBodyCobain/dependabot/npm_and_yarn/frontend/next-16.4.3
chore(deps): bump next from 16.3.8 to 16.4.3 in /frontend
2026-11-01 10:01:10 -07:00
BigBodyCobain 039f618301 Bundle JetBrains Mono locally to fix Turbopack font builds 2026-10-30 11:17:08 -06:00
dependabot[bot] b3118ae0a5 chore(deps): bump next from 16.3.8 to 16.4.3 in /frontend
Bumps [next](https://github.com/vercel/next.js) from 16.3.8 to 16.4.3.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/compare/v16.3.8...v16.4.3)

---
updated-dependencies:
- dependency-name: next
  dependency-version: 16.4.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-30 07:11:35 +00:00
BigBodyCobain a91335aa2c Keep React and React DOM upgrades synchronized 2026-10-30 00:52:04 -06:00
dependabot[bot] e9327125eb chore(deps): bump react-dom from 19.3.0 to 19.3.1 in /frontend
Bumps [react-dom](https://github.com/react/react/tree/HEAD/packages/react-dom) from 19.3.0 to 19.3.1.
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.1/packages/react-dom)

---
updated-dependencies:
- dependency-name: react-dom
  dependency-version: 19.3.1
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-29 07:24:51 +00:00
Shadowbroker 7023889d66 Merge pull request #628 from BigBodyCobain/dependabot/npm_and_yarn/frontend/zod-4.6.7
chore(deps): bump zod from 4.3.6 to 4.6.7 in /frontend
2026-10-22 12:01:16 -06:00
dependabot[bot] 48262d95ce chore(deps): bump hls.js from 1.6.15 to 1.7.3 in /frontend
Bumps [hls.js](https://github.com/video-dev/hls.js) from 1.6.15 to 1.7.3.
- [Release notes](https://github.com/video-dev/hls.js/releases)
- [Changelog](https://github.com/video-dev/hls.js/blob/master/docs/release-process.md)
- [Commits](https://github.com/video-dev/hls.js/compare/v1.6.15...v1.7.3)

---
updated-dependencies:
- dependency-name: hls.js
  dependency-version: 1.7.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-22 07:24:15 +00:00
dependabot[bot] 395dd1e521 chore(deps): bump zod from 4.3.6 to 4.6.7 in /frontend
Bumps [zod](https://github.com/colinhacks/zod) from 4.3.6 to 4.6.7.
- [Release notes](https://github.com/colinhacks/zod/releases)
- [Commits](https://github.com/colinhacks/zod/compare/v4.3.6...v4.6.7)

---
updated-dependencies:
- dependency-name: zod
  dependency-version: 4.6.7
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-22 07:24:06 +00:00
Claude 00fd0f9d60 Stop LAN-shared dashboards from handing out operator access
With the dashboard bound to the network (make up-lan), the frontend proxy
added the server ADMIN_KEY to every same-origin request and the backend
trusted the frontend container as the local operator, so any device on
the LAN that opened the dashboard had full control: DMs, contacts, gate
keys and settings. The proxy cannot tell the local browser apart from
other devices, because Next.js forwards client-supplied X-Forwarded-For
verbatim (verified against next start: a remote client sending
X-Forwarded-For: 127.0.0.1 reaches the backend as 127.0.0.1).

SHADOWBROKER_LAN_MODE=1, set by make up-lan, now makes the proxy inject
the admin key only for signed-in admin sessions and stops the backend
trusting the frontend container. Loopback tools on the host keep working.
For a backend behind nginx/Caddy on the same host, the new opt-in
SHADOWBROKER_UNTRUSTED_LOOPBACK=1 makes loopback callers present the key
too. Default installs are unchanged.

Also compare the admin key in constant time at sign-in, and make the
403 message say how to sign in from another device.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
2026-10-22 04:57:47 +00:00
Claude 7f7fe7aef5 Run the relay mesh-only and patch Next.js and PostCSS
- docker-compose.relay.yml: default MESH_ONLY=true with the Infonet sync
  workers kept on (SHADOWBROKER_MESH_NODE_RUNTIME=true), like meshnode.sh.
  Measured: the full backend takes 37 s to answer and settles around 1.5 GB
  RSS at 30-50% CPU; mesh-only answers in 3 s at about 145 MB. The relay's
  2 GB limit left the full mode little headroom. Both stay overridable
  from .env.
- Next.js 16.2.7 -> 16.3.8: fixes the App Router proxy bypass advisory;
  proxy.ts is the CSRF boundary for privileged API routes.
- PostCSS override 8.5.15 -> 8.5.28: fixes the source-map path traversal
  advisories. npm audit (production) now reports only maplibre-gl, whose
  fix needs a major upgrade; the app does not pass HTML to MapLibre.
- Next 16.3 type-checks every file tsconfig includes, so test-only typing
  errors failed the build; build against tsconfig.build.json (tests
  excluded) as before. Tests remain type-checked by Vitest.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
2026-10-22 04:57:47 +00:00
Claude 5c937a10f8 Tell users that leaving InfoNet disconnects it
Leaving InfoNet tears down Tor and the Wormhole by design, so nothing
private runs in the background. That was silent: switching chat tabs or
collapsing the panel cut the connection and the next visit waited for Tor
again. Every close path (LEAVE, tab switch, collapsing the chat panel,
closing or pressing Escape on the full terminal) now asks first while a
session is connected, explains that new messages won't arrive and that
reconnecting can take up to a minute, and offers "Don't show this again".
The teardown itself is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
2026-10-22 04:13:37 +00:00
Claude 29fb02ae0e Make the InfoNet UI less hostile without changing its security
- Turn raw backend codes (wormhole_required_for_*, control_plane_request_failed:403,
  gate_mls_compose_failed, ...) into sentences that say what to do next, via one
  shared helper used by gate rooms, key sharing, the Wormhole panel and mail.
- Fix contradictory privacy copy: the gates card said everything was end-to-end
  encrypted while the advisory beside it said nothing was encrypted. Both now
  describe what the code does: encrypted content, visible metadata, unaudited.
- Show a running timer while Tor connects instead of a static
  "obfuscated lane starting", and say up front that the first start can take
  up to a minute.
- Replace the TOFU jargon on first contact with what to do and why.
- New installs no longer get the changelog stacked on top of setup.
- Keep the expanded chat panel above the map status bar, which was covering
  the terminal input.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
2026-10-22 04:03:44 +00:00
Claude cbf3029138 Share gate keys across nodes over the encrypted DM lane
Gate history is readable on another node only through the gate envelope,
which is keyed from a per-gate secret that every node generated on its
own. Nothing ever moved that secret between members, so two operators in
the same gate could not read each other.

Members can now send the current gate key to a DM contact inside an
end-to-end encrypted DM. The key rides as a control frame that is
stripped on decrypt, so it never reaches the browser or the mailbox. The
recipient's operator accepts or declines it; the previous local key is
archived so existing history stays readable.

Rotation sends the new key to every contact the key was granted to,
minus excluded peers. Recipients apply a rotation automatically only
when it comes from the member they got the key from, and forward it to
their own grantees. Ban/kick rotations now redistribute too, instead of
silently splitting the gate.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01UeX9wuqeVAQNr22zQHWj2H
2026-10-22 03:06:11 +00:00
ShadowbrokerandClaude Opus 5.5 1c603c8ce1 fix(map): cap dead-reckoning so stale data can't fling aircraft across the map
After the browser tab sat hidden overnight, every airborne aircraft was drawn
smeared thousands of miles along its last heading (e.g. over open ocean) for
about a minute after waking, until fresh data arrived.

Polling pauses while the tab is hidden, but the interpolation clock keeps
counting from the last data refresh. Since 5ae1e5b the dead-reckoning cap
(interpolatePosition's maxDt, documented as "Cap interpolation time to prevent
runaway drift when data is stale") was overridden with
UNBOUNDED_INTERP_SECONDS = Infinity, so 8 hours stale moved a 500 kt flight
~3,300 nm.

Restore a cap via a shared MAX_INTERP_SECONDS = 180 used by flights, ships and
satellites (useInterpolation) and the worker-side interpolation
(applyDynamicLayerInterp). Live data refreshes every ~15s, so normal animation
is unaffected; stale markers now advance at most ~25 nm, then snap to fresh data.

Also widens a source-slice window in maplibreDecomposition.test.ts that had
zero slack (onClose ended exactly at char 500 with LF; failed on CRLF checkouts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 12:28:40 -06:00
ShadowbrokerandClaude Opus 5.5 92a5be333c fix(onboarding): escape apostrophe in agent setup hint (react/no-unescaped-entities)
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 06:34:23 -06:00
ShadowbrokerandClaude Opus 5.5 1be2f5f110 fix(agent-connect): accurate agent setup guidance; rename OpenClaw to "AI Agent" in the UI
The Connect modal's agent snippet steered agents into failures we hit while
wiring up a Hermes agent:

- It told agents to use search_telemetry as the default entry point, but the
  backend rejects search_telemetry/get_telemetry/get_slow_telemetry/get_report
  without confirm_expensive=true (EXPENSIVE_COMMANDS). Guidance now follows the
  backend's routing manifest: route_query first, then find_entity /
  get_entity_profile and other targeted reads; expensive commands are named as
  gated, last-resort calls.
- It never said how to install the secret. Operators pasted it into agent chats,
  where it stays in plain-text history and is still not an environment variable.
  New SETUP block: set env vars in the agent's config, use a Python with httpx,
  verify with verify_hmac.py; Docker note for host agents in Local mode. The
  modal also shows an explicit "don't paste into chat" warning.
- It always said "You are a remote OpenClaw agent", even in Local mode.
- New ANALYST DIRECTIVE for unattended investigations: read-only, evidence-tied,
  stated confidence, and "probably noise" when live data doesn't back an alert.
- Step 2 explains when Full Access is actually needed (Read Only stays default).

Renames the user-facing "OpenClaw" name to "AI Agent" across the UI and the
en/fr/zh-CN/fa translations. Env vars (OPENCLAW_*), API paths, the
openclaw-skills folder and backend identifiers are unchanged so existing agent
configs keep working; changelog history is left as written.

Tests: agentConnectGuidance.test.ts checks the snippet against the backend's
EXPENSIVE_COMMANDS, the setup/verify/leak guidance, mode-aware wording, and
that no user-facing OpenClaw text remains.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 06:30:37 -06:00
Shadowbroker 654ae0ee93 Merge pull request #617 from BigBodyCobain/fix/region-dossier-sentinel-wait
fix(dossier): show recent Sentinel-2 scenes on right-click instead of the Esri placeholder
2026-10-18 06:23:41 -06:00
Shadowbroker c7052f7525 Merge pull request #616 from BigBodyCobain/fix/entity-id-lookups
fix(map): match clicked ships by MMSI regardless of id type
2026-10-18 06:06:55 -06:00
ShadowbrokerandClaude Opus 5.5 b9bcd60add fix(dossier): show recent Sentinel-2 scenes on right-click instead of the Esri placeholder
Right-click opened the Sentinel-2 panel pre-filled with Esri World Imagery
("DATE UNAVAILABLE / fallback imagery") and only swapped in the live
Planetary Computer scenes after both the Sentinel search and the unrelated
region-dossier lookup settled. On a busy dashboard that took long enough
that the placeholder read as the result, so the 3-scene recent imagery
looked like it had regressed to generic fallback pictures.

- Show an explicit "SEARCHING SENTINEL-2 ARCHIVE" state while searching.
- Fetch imagery and the region dossier independently; render scenes the
  moment they arrive.
- Use the Esri fallback only when the live search actually fails, and say so.
- Ignore stale responses when the user right-clicks again mid-search.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 05:36:59 -06:00
ShadowbrokerandClaude Opus 5.5 456dce80ac fix(map): match clicked ships by MMSI regardless of id type
Clicking an AIS vessel showed neither the map popup nor the side panel.
Since f95b0ec the dynamic worker builds ship feature ids with
shipFeatureId(), which stringifies the MMSI, but the backend sends MMSIs as
numbers. The lookups compared them with ===, so 234881054 === "234881054"
matched nothing and the UI silently rendered nothing. Carriers still worked
because their id is their (string) name.

Adds sameEntityId() and uses it for the ship lookups (popup, side panel,
findSelectedEntity) and the other numeric-id lookups that compare against a
clicked feature id (satellites, UAVs, trains, UAP sightings, wastewater,
weather alerts).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 04:47:42 -06:00
ShadowbrokerandClaude Opus 5.5 160b3c5a25 fix(map): pin text-font on label layers so CCTV and correlation overlays render
Seven overlay label layers had a text-field but no text-font, so MapLibre
fell back to "Open Sans Regular,Arial Unicode MS Regular". The keyless
OpenFreeMap glyph endpoint returns 404 for that fontstack, which errors
every tile of the layer's source. For CCTV that meant the whole source
(clusters and dots) rendered nothing even though 23k cameras were loaded.

Affected layers: cctv-cluster-count, gps-jamming-label, corr-rf-label,
corr-mil-label, corr-infra-label, corr-contra-label, corr-analysis-label.
All now use Noto Sans Bold, matching the other overlay labels.

Adds a regression test that fails if any MaplibreViewer layout renders
text without pinning a text-font.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-18 04:31:50 -06:00
Shadowbroker 37c460821f Merge pull request #610 from BigBodyCobain/dependabot/npm_and_yarn/frontend/concurrently-10.0.6
chore(deps-dev): bump concurrently from 10.0.5 to 10.0.6 in /frontend
2026-10-15 18:47:21 -06:00
dependabot[bot] 6b08f64e48 chore(deps): bump @tauri-apps/plugin-updater in /frontend
Bumps [@tauri-apps/plugin-updater](https://github.com/tauri-apps/plugins-workspace) from 2.11.0 to 2.13.3.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases)
- [Commits](https://github.com/tauri-apps/plugins-workspace/compare/updater-v2.11.0...updater-v2.13.3)

---
updated-dependencies:
- dependency-name: "@tauri-apps/plugin-updater"
  dependency-version: 2.13.3
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-15 07:25:03 +00:00
dependabot[bot] 123d4232e8 chore(deps-dev): bump concurrently from 10.0.5 to 10.0.6 in /frontend
Bumps [concurrently](https://github.com/open-cli-tools/concurrently) from 10.0.5 to 10.0.6.
- [Release notes](https://github.com/open-cli-tools/concurrently/releases)
- [Commits](https://github.com/open-cli-tools/concurrently/compare/v10.0.5...v10.0.6)

---
updated-dependencies:
- dependency-name: concurrently
  dependency-version: 10.0.6
  dependency-type: direct:development
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-15 07:24:31 +00:00
Shadowbroker b9aa8e1100 Merge pull request #601 from BigBodyCobain/dependabot/npm_and_yarn/frontend/eslint-config-next-16.3.8
chore(deps-dev): bump eslint-config-next from 16.2.4 to 16.3.8 in /frontend
2026-10-09 20:41:36 -06:00
dependabot[bot] e6d44ccabd chore(deps-dev): bump eslint-config-next in /frontend
Bumps [eslint-config-next](https://github.com/vercel/next.js/tree/HEAD/packages/eslint-config-next) from 16.2.4 to 16.3.8.
- [Release notes](https://github.com/vercel/next.js/releases)
- [Commits](https://github.com/vercel/next.js/commits/v16.3.8/packages/eslint-config-next)

---
updated-dependencies:
- dependency-name: eslint-config-next
  dependency-version: 16.3.8
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-08 07:24:17 +00:00
dependabot[bot] 9c71310314 chore(deps): bump @tauri-apps/plugin-process in /frontend
Bumps [@tauri-apps/plugin-process](https://github.com/tauri-apps/plugins-workspace) from 2.3.1 to 2.4.0.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases)
- [Commits](https://github.com/tauri-apps/plugins-workspace/compare/os-v2.3.1...os-v2.4.0)

---
updated-dependencies:
- dependency-name: "@tauri-apps/plugin-process"
  dependency-version: 2.4.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-08 07:24:02 +00:00
Shadowbroker f282f8e2bb fix(basemap): correct style builder formatting 2026-10-06 15:52:18 -06:00
Shadowbroker 951c776ec0 fix(basemap): correct viewer import formatting 2026-10-06 15:52:16 -06:00
Shadowbroker b6d3c20690 fix(basemap): type provider style union 2026-10-06 15:50:21 -06:00
Shadowbroker 233e420409 test(basemap): cover keyless default and CARTO override 2026-10-06 15:49:06 -06:00
Shadowbroker a9cd03f115 fix(basemap): preserve overlays with keyless vector styles 2026-10-06 15:48:36 -06:00
Shadowbroker 4128a0ac7d fix(basemap): default to keyless OpenFreeMap 2026-10-06 15:48:00 -06:00
dependabot[bot] 77c38a9274 chore(deps-dev): bump @testing-library/jest-dom in /frontend
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 6.9.1 to 7.0.1.
- [Release notes](https://github.com/testing-library/jest-dom/releases)
- [Changelog](https://github.com/testing-library/jest-dom/blob/main/CHANGELOG.md)
- [Commits](https://github.com/testing-library/jest-dom/compare/v6.9.1...v7.0.1)

---
updated-dependencies:
- dependency-name: "@testing-library/jest-dom"
  dependency-version: 7.0.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-10-01 07:28:44 +00:00
dependabot[bot] 8ad5554499 chore(deps-dev): bump vite from 8.0.16 to 8.3.0 in /frontend
Bumps [vite](https://github.com/vitejs/vite/tree/HEAD/packages/vite) from 8.0.16 to 8.3.0.
- [Release notes](https://github.com/vitejs/vite/releases)
- [Changelog](https://github.com/vitejs/vite/blob/main/packages/vite/CHANGELOG.md)
- [Commits](https://github.com/vitejs/vite/commits/create-vite@8.3.0/packages/vite)

---
updated-dependencies:
- dependency-name: vite
  dependency-version: 8.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-24 07:23:40 +00:00
Shadowbroker 347623f8a4 Merge pull request #570 from BigBodyCobain/dependabot/npm_and_yarn/frontend/tauri-apps/plugin-updater-2.11.0
chore(deps): bump @tauri-apps/plugin-updater from 2.10.1 to 2.11.0 in /frontend
2026-09-18 03:09:32 -06:00
Shadowbroker 170e29d7db Merge pull request #571 from BigBodyCobain/dependabot/npm_and_yarn/frontend/multi-de36fa8f59
chore(deps): bump react-dom and @types/react-dom in /frontend
2026-09-18 03:09:13 -06:00
dependabot[bot] 2186602375 chore(deps): bump react-dom and @types/react-dom in /frontend
Bumps [react-dom](https://github.com/react/react/tree/HEAD/packages/react-dom) and [@types/react-dom](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/react-dom). These dependencies needed to be updated together.

Updates `react-dom` from 19.2.7 to 19.3.0
- [Release notes](https://github.com/react/react/releases)
- [Changelog](https://github.com/react/react/blob/main/CHANGELOG.md)
- [Commits](https://github.com/react/react/commits/v19.3.0/packages/react-dom)

Updates `@types/react-dom` from 19.2.3 to 19.3.0
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/react-dom)

---
updated-dependencies:
- dependency-name: react-dom
  dependency-version: 19.3.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
- dependency-name: "@types/react-dom"
  dependency-version: 19.3.0
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 07:24:20 +00:00
dependabot[bot] e159f468f1 chore(deps): bump @tauri-apps/plugin-updater in /frontend
Bumps [@tauri-apps/plugin-updater](https://github.com/tauri-apps/plugins-workspace) from 2.10.1 to 2.11.0.
- [Release notes](https://github.com/tauri-apps/plugins-workspace/releases)
- [Commits](https://github.com/tauri-apps/plugins-workspace/compare/updater-v2.10.1...updater-v2.11.0)

---
updated-dependencies:
- dependency-name: "@tauri-apps/plugin-updater"
  dependency-version: 2.11.0
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 07:24:10 +00:00
dependabot[bot] cd878c3ba0 chore(deps-dev): bump @types/node from 20.19.33 to 26.5.1 in /frontend
Bumps [@types/node](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/HEAD/types/node) from 20.19.33 to 26.5.1.
- [Release notes](https://github.com/DefinitelyTyped/DefinitelyTyped/releases)
- [Commits](https://github.com/DefinitelyTyped/DefinitelyTyped/commits/HEAD/types/node)

---
updated-dependencies:
- dependency-name: "@types/node"
  dependency-version: 26.5.1
  dependency-type: direct:development
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2026-09-17 07:24:02 +00:00
Shadowbroker 1a1b6e1dc3 Merge pull request #558 from C3B2W23/fix/carto-api-key
fix(basemap): add runtime CARTO_API_KEY for CARTO tiles
2026-09-15 01:51:43 -06:00
C3B2W23andClaude Fable 5.1 667f51cb7a fix(basemap): serve CARTO key from backend, bound the map gate, add source attribution
Review follow-up:

- Drop the Next.js route. CARTO_API_KEY is now a regular backend registry
  key (env, .env, or the API Keys panel) served by public
  GET /api/basemap-config. Every frontend mode already proxies /api/* to
  the backend (Next.js proxy in web mode, companion server in packaged
  desktop), so this covers web and desktop with one mechanism and leaves
  the static export untouched. Also removes the invalid non-handler
  export from the route module by removing the module.
- useBasemapConfig: fail open to the unkeyed style after 3 s, abort the
  request at 15 s, apply a late key when it arrives, cache successes per
  page and retry failures on the next mount.
- Declare OSM/CARTO attribution on the raster source (same markup as the
  viewer's existing AttributionControl so MapLibre de-duplicates it).
- Tests: backend endpoint (unset / set+trimmed / persisted operator key /
  registry), hook behaviour (success, non-OK, network error, soft timeout
  then late key, hard abort, shared request and retry), attribution and
  gating source checks.
- CARTO_API_KEY moves to the backend service in docker-compose.yml; docs
  updated accordingly.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 15:16:47 -07:00
C3B2W23andClaude Fable 5.1 f95b0eccc5 fix(map): keep tracked aircraft and yacht labels in step with data filters
Tracked-flight and tracked-yacht HTML labels are rendered from the raw
store arrays, while their icons come from the worker GeoJSON that already
has the operator's data filters applied. Filtering Tracked Aircraft to a
category therefore removed the icons but left every other aircraft's name
on the map.

Derive the label subjects from the ids in the filtered feature collection
so a label is only drawn where an icon is. The id rule lives in one shared
helper used by both the worker builders and the label selector; rows with
no identifier keep the worker's positional fallback and draw no label.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 14:57:09 -07:00
C3B2W23andClaude Fable 5.1 71550b4adf fix(basemap): trim header comments to match repo style
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 14:54:02 -07:00
C3B2W23andClaude Fable 5.1 8f169f1ecc Add runtime CARTO_API_KEY for basemap tiles
CARTO now requires an API key for its basemap tiles; without one every
tile in the DEFAULT dark/light map carries an "API KEY REQUIRED"
watermark. The tile URLs were hardcoded in mapStyles.ts with no way to
supply a key, and because the frontend ships as a prebuilt image a
NEXT_PUBLIC_ variable would be baked in empty for every Docker user.

- New frontend-local route GET /api/basemap-config reads CARTO_API_KEY
  from the frontend container's environment at request time (same
  pattern as BACKEND_URL), so no image rebuild is needed.
- useBasemapConfig() fetches it once per page load; MaplibreViewer
  builds the MapLibre style from it via buildBasemapStyle(theme, key)
  and defers the map's first style load until the config has settled,
  avoiding a burst of unkeyed tile requests followed by a style swap.
- Tile URLs move to CARTO's documented rastertiles/ path with ?key=
  appended when configured. Unkeyed URLs serve byte-identical tiles to
  the old path, so deployments without a key behave exactly as before.
- CARTO_API_KEY wired through docker-compose.yml and documented in
  .env.example, README (data source table + frontend env table) and
  docs/OUTBOUND_DATA.md.
- Tests cover the route (unset / set / trimmed) and the style builder.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-13 14:54:01 -07:00
Codex Integration aa5109a6cb Merge remote-tracking branch 'origin/pr/559' into codex/pr-561-562-559 2026-09-12 15:53:45 -06:00
Codex Integration 726d1ef8b6 Merge remote-tracking branch 'origin/pr/562' into codex/pr-561-562-559 2026-09-12 15:53:44 -06:00
C3B2W23andClaude Fable 5.1 9eee300b97 fix(filters): keep the filter dialog responsive on very long option lists
The vessel name list runs to tens of thousands of entries and every one
was mounted as a button when the dialog opened, so the Maritime dialog
took several seconds to appear. Because the dialog centres itself in an
effect after the first paint, that delay also showed it flashing at the
top-left before jumping to the middle.

Mount at most 300 rows until the search narrows the list, say how many
are hidden, and centre in a layout effect so the first paint is already
in place.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-11 16:15:30 -07:00
C3B2W23andClaude Fable 5.1 9df81bf636 fix(map): apply vessel data filters to the carrier layer
Carrier icons and labels are built on the main thread from the raw ship
array, separately from the worker that draws every other vessel, so the
Data Filters vessel name / type selection never reached them. Filtering
to yachts left the aircraft carriers on the map.

Move the ship filter predicate into a shared helper used by both the
worker and the carrier builder so all ship sources honour the same
selection.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-11 16:02:31 -07:00
C3B2W23andClaude Fable 5.1 ce77612d42 fix(filters): surface disabled layers inside the data filter dialog
Each Data Filters section acts on one or more map layers, but the panel
never knew the layer state, so a filter could target a layer that was
switched off and silently do nothing. Four of the five sections build
their option lists from live data, so with the layer off the dialog was
also empty and unsearchable, with no hint why.

Declare the layer keys per section, badge sections whose layers are all
off, and show a banner in the dialog with an ENABLE control per disabled
layer. Enabling from the dialog refetches within a few seconds and the
list fills in place. The empty list now says whether the layer is off,
data is still loading, or the search simply has no match. APPLY stays a
plain apply. Callers that do not pass layer state keep the old behaviour.

Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
2026-09-11 15:20:18 -07:00