Skip to content

feat(web): drag and pin project folders in the Boring sidebar - #47231

Closed
chisewaguri wants to merge 1 commit into
pingdotgg:mainfrom
chisewaguri:feat/boring-sidebar-folder-drag
Closed

chisewaguri wants to merge 1 commit into
pingdotgg:mainfrom
chisewaguri:feat/boring-sidebar-folder-drag

Conversation

@chisewaguri

Copy link
Copy Markdown
Contributor

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 sortProjectsByActivity ignores pinned and archived, so a pinned folder stays where it was.

Change

  • A project folder drags as one group: its header, threads and Show more row move together. The order saves through reorderProjects, and the first drag switches Project order to Manual.
  • Moves stay inside the pinned, unpinned or archived section, and a grouped project moves with all its checkouts.
  • reorderProjects drops 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.
  • A desktop release that reports buttons=0 before pointerup now finishes a folder drag instead of cancelling it.
  • List motion measures rows relative to their folder, so rows do not jump while a folder moves.
  • Pinned projects sort first and archived projects last, in both Manual and activity order. This also applies to the command palette's project list, which uses the same sort. Pinned folders show a pin icon.

Verification

  • vp run check:changed origin/main passes.
  • Sidebar.logic.test.ts and uiStateStore.test.ts cover pinned and archived ordering and both drag directions.
  • scripts/scenarios/sidebar-project-folders-reorder.e2e.ts passes, covering a drag, the order after reload, a drop outside the sidebar, and a release in a gap with a missing pointerup.
  • Sidebar.drag.browser.test.tsx and Sidebar.folderRow.browser.test.tsx pass.
  • Checked live: pinning a project moves its folder to the top of the Boring sidebar with a pin icon, and unpinning returns it.

Replaces #40164, which went stale against the sidebar rewrite.

@github-actions

github-actions Bot commented Dec 2, 2026

Copy link
Copy Markdown
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.

@github-actions github-actions Bot closed this Dec 2, 2026
@github-actions github-actions Bot added vouch:unvouched Author is not yet trusted in the VOUCHED list. size:L 100-499 changed lines (additions + deletions). labels Dec 2, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 2, 2026

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at 5b9b8bb

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:L 100-499 changed lines (additions + deletions). vouch:unvouched Author is not yet trusted in the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant