mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-11 22:02:21 +00:00
fix(street-level): drop the saved FIT / FILL key nothing reads now
Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
1 parent
17395749d4
commit
e494d04dc6
2 files changed
+7
-2
No files matched your search
@@ -8,10 +8,14 @@ const PANEL_LAYOUT_STORAGE_VERSION = 'v6';
|
|||||||
* the layout-reset notice and the documented key.
|
* the layout-reset notice and the documented key.
|
||||||
*/
|
*/
|
||||||
const PANEL_POSITION_STORAGE_VERSION = 'v8';
|
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 = [
|
const RETIRED_PANEL_KEY_PREFIXES = [
|
||||||
`godsEyeView.${PANEL_POSITION_STORAGE_VERSION}.panelPos.`,
|
`godsEyeView.${PANEL_POSITION_STORAGE_VERSION}.panelPos.`,
|
||||||
`godsEyeView.${PANEL_POSITION_STORAGE_VERSION}.panelFloatHintShown`,
|
`godsEyeView.${PANEL_POSITION_STORAGE_VERSION}.panelFloatHintShown`,
|
||||||
|
'gev:street-level:render-mode',
|
||||||
];
|
];
|
||||||
export class PanelPositionControls {
|
export class PanelPositionControls {
|
||||||
constructor({ syncPanelCollapseButton, showToast }) {
|
constructor({ syncPanelCollapseButton, showToast }) {
|
||||||
|
|||||||
@@ -14,11 +14,12 @@ function fakeStorage(entries) {
|
|||||||
return storage;
|
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;
|
const saved = globalThis.localStorage;
|
||||||
globalThis.localStorage = fakeStorage({
|
globalThis.localStorage = fakeStorage({
|
||||||
'godsEyeView.v8.panelPos.cctv-panel': '{"x":1}',
|
'godsEyeView.v8.panelPos.cctv-panel': '{"x":1}',
|
||||||
'godsEyeView.v8.panelFloatHintShown': '1',
|
'godsEyeView.v8.panelFloatHintShown': '1',
|
||||||
|
'gev:street-level:render-mode': 'fill',
|
||||||
'godsEyeView.v6.panelCollapsed.cctv-panel': '1',
|
'godsEyeView.v6.panelCollapsed.cctv-panel': '1',
|
||||||
'godsEyeView.v8.layoutResetNotified': '1',
|
'godsEyeView.v8.layoutResetNotified': '1',
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in new issue
Block a user