nexus/ui
Forgotten b05ac91aa7 fix: re-sync company sidebar order from localStorage on data load
The orderedIds state was initialized at mount time when companies was
still an empty array (React Query hadn't resolved yet). When companies
data arrived, orderedIds remained empty so the sidebar fell back to
API-returned order, ignoring the user's saved drag order.

Add a useEffect that re-derives orderedIds from localStorage whenever
the companies array changes, ensuring the user's custom sort order
persists across data refetches and live update invalidations.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 14:43:35 -06:00
..
public Enhance UI: favicon, AgentDetail overhaul, PageTabBar, and config form 2026-02-18 13:02:23 -06:00
src fix: re-sync company sidebar order from localStorage on data load 2026-02-23 14:43:35 -06:00
components.json Overhaul UI with shadcn components and new pages 2026-02-17 09:07:32 -06:00
index.html Enhance UI: favicon, AgentDetail overhaul, PageTabBar, and config form 2026-02-18 13:02:23 -06:00
package.json feat: add auth/access foundation - deps, DB schema, shared types, and config 2026-02-23 14:40:16 -06:00
tsconfig.json Overhaul UI with shadcn components and new pages 2026-02-17 09:07:32 -06:00
vite.config.ts Adopt React Query and live updates across all UI pages 2026-02-17 12:24:48 -06:00
vitest.config.ts Add React UI with Vite 2026-02-16 13:32:04 -06:00