Skip to content

feat(react): drag pinned thread rows to reorder them - #1619

Open
blove wants to merge 2 commits into
mainfrom
blove/react-thread-drag-reorder
Open

blove wants to merge 2 commits into
mainfrom
blove/react-thread-drag-reorder

Conversation

@blove

@blove blove commented Nov 16, 2026

Copy link
Copy Markdown
Contributor

What

Pinned rows in React ThreadList can be dragged onto another pinned row to reorder them, matching the Angular thread list.

  • Enabled only when the actions adapter supplies reorderPinned; only pinned rows are draggable and only pinned rows accept a drop.
  • While dragging, the row dims and a line shows whether it lands before or after the target.
  • The drop calls the existing reorderPinned(threadId, beforeId) through the same optimistic path as Move up and Move down, so a rejected command puts the rows back.
  • Keyboard and touch users keep the menu items. No new props or exports.

Verification

  • npx nx run-many -t test,type-tests,lint -p react passes (8 new tests in thread-list-drag.spec.tsx).
  • npx nx run-many -t build --projects=core,content,react and node scripts/react-parity/verify-packages.mjs pass.
  • node scripts/react-parity/inventory.mjs --check --drift warn passes.
  • Checked in a browser with a scratch page by dispatching real DragEvents with a DataTransfer: the dragged row dims, the line appears above the target, and the drop reorders and calls the command. No console errors.

Not verified: a physical mouse drag. The browser automation available here does not start a native drag, so the pointer gesture itself is untested.

🤖 Generated with Claude Code

@vercel

vercel Bot commented Nov 16, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
threadplane Ready Ready Preview Nov 16, 2026 11:08am UTC

Request Review

This branch was successfully deployed

1 active deployment
Preview – threadplane — 60539014 Deployed Nov 16, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant