Skip to content

feat(app): draggable tabs#31364

Open
arvsrn wants to merge 4 commits into
anomalyco:devfrom
arvsrn:draggable-tabs
Open

feat(app): draggable tabs#31364
arvsrn wants to merge 4 commits into
anomalyco:devfrom
arvsrn:draggable-tabs

Conversation

@arvsrn
Copy link
Copy Markdown
Contributor

@arvsrn arvsrn commented Jun 8, 2026

Issue for this PR

N/A

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

  • Adds draggable reordering for session tabs in the v2 titlebar. The new order is saved on drop. Tab selection now happens on mousedown. Also added edge autoscroll when dragging near the ends.
  • Refactors tab UI out of titlebar.tsx into TitlebarTabStrip, TabNavItem, and a small drag helper module, and adds tabs.reorder() to persist order.
  • Horizontally clamps the drag preview, with a rubber-band effect on both sides

How did you verify your code works?

  • Ran the app locally and verified the updated UI manually
  • Ran type checks locally (bun turbo typecheck)

Screenshots / recordings

Screen.Recording.2026-06-08.at.18.34.04.mov

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

If you do not follow this template your PR will be automatically rejected.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant