You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat(hub-ui): restore the active dock across a reload
`selectedId` used to reset to nothing every time the embedded dock
mounted. It now lives on the same localStorage-backed `panelStore` as
`open`/mode/geometry, so a dev-server restart or HMR full-reload keeps
the dock open on whatever was selected.
A restored id that no longer resolves to a selectable entry (removed,
or pointing at a group/subTabs anchor) is cleared once on boot without
forcing the panel open; `DockEmbedded` then falls back to the first
available entry if the panel is open with nothing selected, mirroring
`DockStandalone`'s existing boot guard.
Adds `packages/hub-ui`'s first vitest suite (registered in the root
`vitest.config.ts`) covering the restore/validation behavior via the
existing `createMockDocksContext` story helper.
Co-authored-by: dvcolomban <90617742+dvcolomban@users.noreply.github.com>
0 commit comments