From e494d04dc65a6d5591377ea8e463ed1a6fd202fb Mon Sep 17 00:00:00 2001 From: German Khokhlov Date: Tue, 20 Oct 2026 14:04:31 +0400 Subject: [PATCH] fix(street-level): drop the saved FIT / FILL key nothing reads now Co-Authored-By: Claude Opus 5.5 --- src/ui/panelPositionControls.js | 6 +++++- src/ui/panelPositionControls.test.mjs | 3 ++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/ui/panelPositionControls.js b/src/ui/panelPositionControls.js index ff296bf75..df4264a13 100644 --- a/src/ui/panelPositionControls.js +++ b/src/ui/panelPositionControls.js @@ -8,10 +8,14 @@ const PANEL_LAYOUT_STORAGE_VERSION = 'v6'; * the layout-reset notice and the documented key. */ const PANEL_POSITION_STORAGE_VERSION = 'v8'; -/** Floating panels' stored positions and hint flag: nothing reads them now. */ +/** + * Floating panels' stored positions and hint flag, and Street Level's saved + * FIT / FILL (each session now starts at FIT): nothing reads them now. + */ const RETIRED_PANEL_KEY_PREFIXES = [ `godsEyeView.${PANEL_POSITION_STORAGE_VERSION}.panelPos.`, `godsEyeView.${PANEL_POSITION_STORAGE_VERSION}.panelFloatHintShown`, + 'gev:street-level:render-mode', ]; export class PanelPositionControls { constructor({ syncPanelCollapseButton, showToast }) { diff --git a/src/ui/panelPositionControls.test.mjs b/src/ui/panelPositionControls.test.mjs index e6b2a6901..2cc05b7c0 100644 --- a/src/ui/panelPositionControls.test.mjs +++ b/src/ui/panelPositionControls.test.mjs @@ -14,11 +14,12 @@ function fakeStorage(entries) { return storage; } -test('the floating panels’ stored positions and hint flag are dropped; collapse state stays', (t) => { +test('retired panel and FIT / FILL keys are dropped; collapse state stays', (t) => { const saved = globalThis.localStorage; globalThis.localStorage = fakeStorage({ 'godsEyeView.v8.panelPos.cctv-panel': '{"x":1}', 'godsEyeView.v8.panelFloatHintShown': '1', + 'gev:street-level:render-mode': 'fill', 'godsEyeView.v6.panelCollapsed.cctv-panel': '1', 'godsEyeView.v8.layoutResetNotified': '1', });