Skip to content

fix(map): restore seamarks + PNBOIA debug stability#313

Merged
Cheewye merged 1 commit intomainfrom
hotfix/pnboia-runtime-copy-debug
Mar 3, 2026
Merged

fix(map): restore seamarks + PNBOIA debug stability#313
Cheewye merged 1 commit intomainfrom
hotfix/pnboia-runtime-copy-debug

Conversation

@Cheewye
Copy link
Owner

@Cheewye Cheewye commented Mar 3, 2026

Summary

  • Seamarks (OpenSeaMap): ensured a real TileLayer is mounted when enabled and defaulted ON so tiles are requested.
  • PNBOIA: decoupled fetch lifecycle from viewport; added stable fallback+cache and richer runtime/debug fields.
  • Layers UI: header dropdown remains BaseMaps only; operational toggles stay in Fisher Dock.
  • FMAP signals: seed stays versioned and renders minimal markers offline.

Verification

  • npm -C frontend run build => EXIT_CODE=0
  • No conflict markers in frontend/src/**

Made with Cursor

@Cheewye
Copy link
Owner Author

Cheewye commented Mar 3, 2026

Outputs

rg -n "^(<{7}|={7}|>{7})" frontend/src || true

(sin output)

npm -C frontend run build | tail -n 20; echo EXIT_CODE=${PIPESTATUS[0]}

EXIT_CODE=0

git show --name-only --pretty='' HEAD
frontend/src/components/maps/PnboiaLayerLeaflet.tsx
frontend/src/components/maps/RealTimeMap.tsx
frontend/src/components/maps/realtime/FisherDock.tsx
frontend/src/components/maps/realtime/FmapSignalsLayerLeaflet.tsx
frontend/src/components/maps/realtime/LayerManagerPanel.tsx
frontend/src/components/maps/realtime/MapLayersPanel.tsx
frontend/src/components/maps/realtime/MapStylesPanel.tsx
frontend/src/components/maps/realtime/RealTimeMapCore.tsx
frontend/src/components/maps/realtime/constants.ts
frontend/src/components/maps/realtime/hooks/useOverlayDockItems.tsx
frontend/src/data/fmapSignalsSeed.ts
frontend/src/data/pnboiaFallback.ts
frontend/src/lib/apiClient.ts

git rev-parse --short HEAD
e1b9c4b

@Cheewye Cheewye force-pushed the hotfix/pnboia-runtime-copy-debug branch from e1b9c4b to 6edf0a3 Compare March 3, 2026 03:14
@Cheewye
Copy link
Owner Author

Cheewye commented Mar 3, 2026

Seamarks (OpenSeaMap): TileLayer URL fijada a https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png, pane seamarksPane con zIndex alto, e instrumentación de contadores tilesRequested/tilesLoaded/tilesError vía eventos de tiles (expuestos en Copy debug).

Outputs

rg -n "^(<{7}|={7}|>{7})" frontend/src || true

(sin output)

npm -C frontend run build | tail -n 20; echo EXIT_CODE=${PIPESTATUS[0]}

EXIT_CODE=0

git show --name-only --pretty='' HEAD
frontend/src/components/maps/PnboiaLayerLeaflet.tsx
frontend/src/components/maps/RealTimeMap.tsx
frontend/src/components/maps/realtime/FisherDock.tsx
frontend/src/components/maps/realtime/FmapSignalsLayerLeaflet.tsx
frontend/src/components/maps/realtime/LayerManagerPanel.tsx
frontend/src/components/maps/realtime/MapLayersPanel.tsx
frontend/src/components/maps/realtime/MapStylesPanel.tsx
frontend/src/components/maps/realtime/RealTimeMapCore.tsx
frontend/src/components/maps/realtime/constants.ts
frontend/src/components/maps/realtime/hooks/useOverlayDockItems.tsx
frontend/src/data/fmapSignalsSeed.ts
frontend/src/data/pnboiaFallback.ts
frontend/src/lib/apiClient.ts

git rev-parse --short HEAD
6edf0a3

@Cheewye Cheewye force-pushed the hotfix/pnboia-runtime-copy-debug branch from 6edf0a3 to 563f9c0 Compare March 3, 2026 03:36
@Cheewye
Copy link
Owner Author

Cheewye commented Mar 3, 2026

Seamarks crash fix: eliminado por completo seamarksPane (sin <Pane name=...> ni pane=... ni createPane(\"seamarksPane\")). Seamarks se monta con TileLayer directo (URL https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png, zIndex=2200, opacity=0.85) e instrumentación tilesRequested/tilesLoaded/tilesError expuesta en Copy debug.

Outputs

rg -n "^(<{7}|={7}|>{7})" frontend/src || true

(sin output)

npm -C frontend run build | tail -n 20; echo EXIT_CODE=${PIPESTATUS[0]}

EXIT_CODE=0

git show --name-only --pretty='' HEAD
frontend/src/components/maps/PnboiaLayerLeaflet.tsx
frontend/src/components/maps/RealTimeMap.tsx
frontend/src/components/maps/realtime/FisherDock.tsx
frontend/src/components/maps/realtime/FmapSignalsLayerLeaflet.tsx
frontend/src/components/maps/realtime/LayerManagerPanel.tsx
frontend/src/components/maps/realtime/MapLayersPanel.tsx
frontend/src/components/maps/realtime/MapStylesPanel.tsx
frontend/src/components/maps/realtime/RealTimeMapCore.tsx
frontend/src/components/maps/realtime/SeamarksInspectorHost.tsx
frontend/src/components/maps/realtime/constants.ts
frontend/src/components/maps/realtime/hooks/useOverlayDockItems.tsx
frontend/src/data/fmapSignalsSeed.ts
frontend/src/data/pnboiaFallback.ts
frontend/src/lib/apiClient.ts

git rev-parse --short HEAD
563f9c0

@Cheewye Cheewye force-pushed the hotfix/pnboia-runtime-copy-debug branch from 563f9c0 to ea039af Compare March 3, 2026 04:08
@Cheewye
Copy link
Owner Author

Cheewye commented Mar 3, 2026

Hardening:

  • FMAP signals layer is now exception-safe + marker-only (no Leaflet Path), so cleanup cannot throw (_removePath/renderer undefined). If anything throws, the layer disables itself and reports via iuri:fmap-signals-runtime (also included in Copy debug).
  • PNBOIA fetch effect now depends only on retryNonce (no pan/zoom deps); added abortReason (timeout|cleanup) to runtime/debug.
  • Seamarks stays TileLayer-only with URL https://tiles.openseamap.org/seamark/{z}/{x}/{y}.png + counters in Copy debug.

Outputs

rg -n "^(<{7}|={7}|>{7})" frontend/src || true

(sin output)

npm -C frontend run build | tail -n 20; echo EXIT_CODE=${PIPESTATUS[0]}

EXIT_CODE=0

git show --name-only --pretty='' HEAD
frontend/src/components/maps/PnboiaLayerLeaflet.tsx
frontend/src/components/maps/RealTimeMap.tsx
frontend/src/components/maps/realtime/FisherDock.tsx
frontend/src/components/maps/realtime/FmapSignalsLayerLeaflet.tsx
frontend/src/components/maps/realtime/LayerManagerPanel.tsx
frontend/src/components/maps/realtime/MapLayersPanel.tsx
frontend/src/components/maps/realtime/MapStylesPanel.tsx
frontend/src/components/maps/realtime/RealTimeMapCore.tsx
frontend/src/components/maps/realtime/SeamarksInspectorHost.tsx
frontend/src/components/maps/realtime/constants.ts
frontend/src/components/maps/realtime/hooks/useOverlayDockItems.tsx
frontend/src/data/fmapSignalsSeed.ts
frontend/src/data/pnboiaFallback.ts
frontend/src/lib/apiClient.ts

git rev-parse --short HEAD
ea039af

@Cheewye Cheewye force-pushed the hotfix/pnboia-runtime-copy-debug branch from ea039af to 4b9d83f Compare March 3, 2026 18:09
@Cheewye
Copy link
Owner Author

Cheewye commented Mar 3, 2026

PR #313 — Evidencias

  • Conflict markers:
    rg -n "^(<{7}|={7}|>{7})" frontend/src || true
    => (sin output)

  • Build:
    npm -C frontend run build | tail -n 3; echo EXIT_CODE=${PIPESTATUS[0]}
    => ✓ built ... / wrote dist/version.json / EXIT_CODE=0

  • HEAD:
    git rev-parse --short HEAD
    => 4b9d83f

  • Archivos tocados (HEAD):
    git show --name-only --pretty='' HEAD
    => (lista adjunta en el commit)

Nota: gh CLI falla porque GH_TOKEN está inválido (401). Para ver el PR con gh sin ese token:
env -u GH_TOKEN gh pr view 313 --json state,mergeable,url

@Cheewye Cheewye merged commit 4e7a2b3 into main Mar 3, 2026
11 checks passed
@Cheewye Cheewye deleted the hotfix/pnboia-runtime-copy-debug branch March 3, 2026 18:19
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant