feat(sidebar): drag-to-reorder workspace projects (#87)#119
Merged
DeadWaveWave merged 16 commits intoDeadWaveWave:mainfrom Mar 30, 2026
Merged
feat(sidebar): drag-to-reorder workspace projects (#87)#119DeadWaveWave merged 16 commits intoDeadWaveWave:mainfrom
DeadWaveWave merged 16 commits intoDeadWaveWave:mainfrom
Conversation
…est file Add backfillWorkspaceSortOrder call to the legacy v1 migration branch so migrated workspaces get proper sort_order values. Move sort_order migration tests to dedicated spec file to keep persistenceStore.spec.ts under the 500-line limit.
- Add 3 E2E tests: drag reorder + persistence, click selection, context menu - Fix Sidebar.spec.tsx TS errors: replace jest-dom matchers with standard assertions Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Owner
|
感谢你的贡献!但是 CI 未通过,需要本地通过 pnpm pre-commit 后再次提交。此外,希望你测试一下在有 Agent 窗口的情况下对应 project 下的 Agent list 会不会正确跟随 project 一起移动 |
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Contributor
Author
Test.mov测试:在有 Agent 窗口的情况下对应 project 下的 Agent list跟随Project移动 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Closes #87
Users with many projects can now drag sidebar items to reorder them. The new order persists across app restarts via a
sort_ordercolumn in the SQLite workspaces table.Changes
sort_ordercolumn toworkspacestable with migration + backfill for existing databasessort_orderascendingsort_orderon every persistreorderWorkspaces(activeId, overId)action usingarrayMovefrom@dnd-kit/sortableDndContext/SortableContext/useSortable;DragOverlayshows semi-transparent preview;PointerSensorwithdistance: 8distinguishes click from dragDemo
Screen.Recording.2026-03-30.at.1.56.43.PM.mov
Test plan
pnpm pre-commitpasses (188 E2E + 480 unit/contract tests)workspace-canvas.sidebar-drag-reorder.spec.ts)reorderWorkspacesstore action (swap, no-op, invalid IDs)sort_orderwritten as array index, read back in order