feat(web): POI visibility checkbox in terrain popup (ET-002) #5

Merged
admin merged 11 commits from feature/ET-002-poi-toggle into main 2026-05-21 19:36:21 +03:00

11 Commits

Author SHA1 Message Date
9ffd6f4b7e Merge branch 'main' into feature/ET-002-poi-toggle
All checks were successful
CI / lint (push) Successful in 3s
CI / test (push) Successful in 4s
CI / lint (pull_request) Successful in 3s
CI / build (push) Successful in 2s
CI / test (pull_request) Successful in 4s
CI / build (pull_request) Successful in 3s
2026-05-21 19:33:41 +03:00
c36ee9d39e test(ET-002): test report PASS - all tests green, ready to deploy
All checks were successful
CI / lint (push) Successful in 4s
CI / test (push) Successful in 5s
CI / lint (pull_request) Successful in 3s
CI / test (pull_request) Successful in 4s
CI / build (push) Successful in 3s
CI / build (pull_request) Successful in 1s
2026-05-21 19:29:40 +03:00
a4a0aabfc3 docs(ET-002): code review APPROVED - no P0/P1 findings
All checks were successful
CI / lint (push) Successful in 4s
CI / test (push) Successful in 5s
CI / lint (pull_request) Successful in 4s
CI / test (pull_request) Successful in 4s
CI / build (push) Successful in 3s
CI / build (pull_request) Successful in 3s
2026-05-21 19:19:42 +03:00
8c17a4f508 feat(web): add POI visibility checkbox to terrain popup
All checks were successful
CI / lint (push) Successful in 4s
CI / test (push) Successful in 5s
CI / build (push) Successful in 15s
CI / lint (pull_request) Successful in 4s
CI / test (pull_request) Successful in 4s
CI / build (pull_request) Successful in 3s
Adds a «POI» checkbox to the terrain popup that toggles the
poi-circles and poi-labels layers via map.setLayoutProperty. The
choice is persisted in localStorage (key `poi-visible`) and restored
on page load and after style changes, kept consistent with the
runtime layerState.poi per ADR-0001.

Tests: behavioral JS unit tests (TP-01..TP-04) run via `node --test`,
wrapped by tests/unit/test_poi_toggle.py with static structure checks
so they execute under the existing `pytest tests/` CI step.

Refs: ET-002

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 15:50:54 +00:00
af579f7f2a docs(ET-002): add ADR-0001 and infra requirements for POI toggle
All checks were successful
CI / lint (push) Successful in 4s
CI / test (push) Successful in 4s
CI / build (push) Successful in 3s
Record architecture decision to implement POI visibility toggling
client-side (setLayoutProperty + localStorage), reusing the existing
layerState model, with no backend, DB or infrastructure changes.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-21 14:51:37 +00:00
73c9dc46a0 docs(ET-002): status → approved 2026-05-20 10:04:56 +03:00
f1f4d5f336 docs(ET-002): BRD, ТЗ, AC, Test Plan — чекбокс POI в попапе рельефа 2026-05-20 09:54:32 +03:00
832099c3c6 docs: restructure phases — per-phase BRD, remove monolithic pilot BRD 2026-05-18 08:47:22 +03:00
f561c3bd41 fix: switchMapStyle loads style as JSON with absolute tile URLs
Fixes trails/tracks not rendering after theme switch.
The issue was that map.setStyle(url) caused MapLibre to resolve
relative tile paths without /enduro/ prefix, resulting in 404s.
2026-05-17 11:03:51 +03:00
fdc9836690 Merge PR #4: restore UI phase 5.4 + ET-001 2026-05-16 23:51:54 +03:00
8d36f38be6 fix: restore UI to phase 5.4 (terrain, scale bar, zoom controls)
All checks were successful
CI / lint (push) Successful in 5s
CI / test (push) Successful in 9s
CI / build (push) Successful in 18s
CI / lint (pull_request) Successful in 5s
CI / test (pull_request) Successful in 9s
CI / build (pull_request) Successful in 2s
2026-05-16 22:17:10 +03:00