Repository navigation
feat(web): drag and pin project folders in the Boring sidebar - #47231
Closed
chisewaguri wants to merge 1 commit into
Closed
chisewaguri wants to merge 1 commit into
chisewaguri wants to merge 1 commit into
Conversation
Contributor
|
Closing: chisewaguri already has 3 or more open PRs here, which is the limit for contributors who are not vouched. Once one of them is merged or closed, open this again. See the open PR limit. |
Contributor
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Adds project-folder dragging and pinned ordering to the Boring sidebar, saving manual order on the client. The changes affect sidebar presentation and reversible preferences, with no evident material data or operational risk. You can add or adjust custom eligibility rules. Learn more. |
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.
Problem
In the Boring sidebar, project folders cannot be reordered, and pinning a project does not move it. The redesign dropped the old sidebar's project drag, so Manual order is frozen there. Pinning saves the flag, but
sortProjectsByActivityignorespinnedandarchived, so a pinned folder stays where it was.Change
reorderProjects, and the first drag switches Project order to Manual.reorderProjectsdrops below the target when dragging down and above it when dragging up, matching the preview. It also keeps saved positions for projects this client has not loaded.buttons=0beforepointerupnow finishes a folder drag instead of cancelling it.Verification
vp run check:changed origin/mainpasses.Sidebar.logic.test.tsanduiStateStore.test.tscover pinned and archived ordering and both drag directions.scripts/scenarios/sidebar-project-folders-reorder.e2e.tspasses, covering a drag, the order after reload, a drop outside the sidebar, and a release in a gap with a missingpointerup.Sidebar.drag.browser.test.tsxandSidebar.folderRow.browser.test.tsxpass.Replaces #40164, which went stale against the sidebar rewrite.