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', });