diff options
| author | Adam Malczewski <[email protected]> | 2026-06-22 14:55:45 +0900 |
|---|---|---|
| committer | Adam Malczewski <[email protected]> | 2026-06-22 14:55:45 +0900 |
| commit | 4b1b920e8bc557a592f505a4619062b1067a233e (patch) | |
| tree | 533a02dc7fca2611f01a6c4eb615c6945db0b176 /scripts | |
| parent | ce1321eccf24e0923642ae2ef74f6220ecd7f75a (diff) | |
| download | dispatch-web-4b1b920e8bc557a592f505a4619062b1067a233e.tar.gz dispatch-web-4b1b920e8bc557a592f505a4619062b1067a233e.zip | |
feat: persist sidebar layout + open/closed state between refreshes
Sidebar panel layout (which views are open and their order) and the
sidebar open/closed toggle are now persisted to localStorage. Default
layout is just the Model view at the top.
- ViewSidebar accepts an onChange callback that reports panel kinds
- App.svelte creates two createLocalStore instances (dispatch.sidebar.views
+ dispatch.sidebar.open) using the store's storage adapter
- AppStore exposes its storage instance so the shell persists via the
same adapter (test-injectable, not globalThis.localStorage)
- Tests pre-populate fake storage with ["extensions"] for the 4 tests
that need the Extensions view visible
686 tests green. 0 svelte-check warnings (2 pre-existing errors from
missing transport-contract exports, unchanged).
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
