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
{{ message }}
Repository navigation
feat(web): drag project rows in the sidebar's Projects section to reorder - #141
Project rows in the sidebar's Projects section could previously only be reordered by opening the project filter popover (#128).
This adds direct drag-to-reorder on the Projects section rows without showing any drag grip icons at rest:
Rows drag directly via a nested DndContext in SidebarProjectsSection with a 6px pointer activation distance and post-drag click suppression so clicks, context menus, and collapsing (feat(web): collapse the sidebar's Projects section #138) work normally.
Extracts commitProjectGroupReorder in ProjectScopeReorder.tsx and reuses it so dropping a row saves the manual projectOrder on this device and switches Project order to Manual, keeping the Projects section, project filter, pickers, and command palette in sync.
Enforces the same invariants as feat(web): drag projects in the sidebar's project filter to reorder them #128: pinned projects stay first (both visually via same-pin-group collision filtering and on drop via moveProjectScopeKey), multi-checkout projects move together, and reordering inside a filtered Projects section preserves unselected projects' relative order.
Adds browser tests in SidebarProjectsSection.browser.test.tsx and updates docs/user/project-settings.md and fork/README.md.
Client only, with no contract or server changes. Mobile is unchanged.
Built with Gemini 4 Neon via Antigravity in 1001 Code.
Low Risk
Client-only sidebar UI and local settings/state updates; no server or contract changes, with browser test coverage for reorder rules.
Overview
The sidebar Projects section now supports direct drag-to-reorder on project rows (no grip icons), using a nested DndContext with a 6px activation distance, vertical-only dragging, and post-drag click suppression so normal clicks and collapse behavior still work.
InboxSidebarRow accepts optional sortable props (transform, listeners, drag styling). Reorder logic is centralized in new commitProjectGroupReorder, shared with the project-filter grip reorder UI so drops update device projectOrder, switch Project order to Manual, keep multi-checkout keys together, block unpinned→pinned moves, and preserve unfiltered projects' order when the section is scoped.
Browser tests cover drag reorder, pinned boundaries, filtered sections, and collapse. User docs and fork/README.md note reordering from the Projects section.
Reviewed by Cursor Bugbot for commit f33b90d. Bugbot is set up for automated code reviews on this repo. Configure here.
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
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.
Project rows in the sidebar's Projects section could previously only be reordered by opening the project filter popover (#128).
This adds direct drag-to-reorder on the Projects section rows without showing any drag grip icons at rest:
DndContextinSidebarProjectsSectionwith a 6px pointer activation distance and post-drag click suppression so clicks, context menus, and collapsing (feat(web): collapse the sidebar's Projects section #138) work normally.commitProjectGroupReorderinProjectScopeReorder.tsxand reuses it so dropping a row saves the manualprojectOrderon this device and switches Project order to Manual, keeping the Projects section, project filter, pickers, and command palette in sync.moveProjectScopeKey), multi-checkout projects move together, and reordering inside a filtered Projects section preserves unselected projects' relative order.SidebarProjectsSection.browser.test.tsxand updatesdocs/user/project-settings.mdandfork/README.md.Client only, with no contract or server changes. Mobile is unchanged.
Built with Gemini 4 Neon via Antigravity in 1001 Code.