Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

Add workspace reordering (drag & keyboard)

6 months ago

1d92eb3
Authored
mweinbach4/20/2026, 1:38:30 AM
Enable reordering of workspaces via drag (framer-motion Reorder) and keyboard (Alt/Meta + ArrowUp/ArrowDown). Adds a new setWorkspacesOrder store action (persisted) and helper utilities applyWorkspaceOrder and swapSidebarItemsById to compute/reuse ordering efficiently. Refactors Sidebar into smaller workspace item component, wire up drag controls and keyboard move handling, and adjust styles for reorderable workspace rows and thread-region transitions. Tests updated/added to cover ordering behavior and jsdom timing; minor cleanup to related helpers and docs noting framer-motion/jsdom animation considerations.

Parent4272843

8 files changed
  • apps/desktop/src/app/store.actions/workspace.ts+14−2
  • apps/desktop/src/app/store.helpers.ts+1−0
  • apps/desktop/src/styles.css+27−21
  • apps/desktop/src/ui/Sidebar.tsx+451−259
  • apps/desktop/src/ui/sidebarHelpers.ts+49−0
  • apps/desktop/test/sidebar-ui.test.tsx+64−1
  • apps/desktop/test/sidebar.test.ts+56−0
  • tasks/lessons.md+2−0