Files
n30nexandn30nex 899a3ad0b1 fix(map): normalize saved viewport longitudes (#2378)
Partial fix for #2375. Restoring a saved longitude such as -352.7
previously put markers one world-width off-screen while tiles looked
correct. Saved positions now use Leaflet’s native wrapping and the
existing viewport validator; movement saves canonical coordinates.
Invalid saved values fall back to configured defaults. Valid URL
viewports and node highlighting keep precedence.

This repairs saved state, not live dragging across world copies. No new
settings, dependencies, requests, marker loops or render triggers; added
work is constant per initialization/existing moveend.

The reported-node URL diagnosis is separate: no-slash returns JSON when
enabled and intentionally 404 when disabled; trailing-slash returns
HTML. See #2372. The endpoint/gate remain unchanged; #2375 stays open
for maintainer reconciliation.

RED `cb453c0d` produced [14 passes and 10 intended CI
assertions](https://github.com/Kpa-clawbot/CoreScope/actions/runs/42317069830/job/128232241526).
Production fix `e6b70dfd` passed CI, 224 frontend suites, 24 browser
cases, six estimated-marker and three mobile checks. Marker placement
changes from x=262754/offscreen to x=610/visible in the same fixture.

Review follow-up `99a4746e` changes only test data: configured and saved
centers now differ, while invalid storage independently expects the
default. Parent rerun passes 24/24; a browser-only mutation discarding
saved coordinates now fails seven cases. All previous assertions and
production files are retained. The single review finding is resolved.

Browser verified: disposable Go fixture at `http://127.0.0.1:14956`,
real Leaflet rendering.
E2E assertion added: `tests/e2e/test-map-nodes-pagination-e2e.js:129`.

Final follow-up CI is blocked by the unchanged observer disposal
assertion (#2342; fix #2343). A maintainer must rerun the workflow; this
remains draft.

---------

Co-authored-by: n30nex <6686206+n30nex@users.noreply.github.com>
2026-11-08 17:40:40 +01:00
..