Skip to content

Improve the dock: drag tabs across groups, a placeholder panel and overflowing tabs - #55

Merged
Pante merged 18 commits into
mainfrom
feature/dock-improvements
Nov 25, 2026
Merged

Pante merged 18 commits into
mainfrom
feature/dock-improvements

Conversation

@Pante

@Pante Pante commented Nov 25, 2026

Copy link
Copy Markdown
Member

Drag and drop

  • Tabs move between groups by a group's empty strip space and by its content.
  • Dropping a tab near the edge of a group's content splits the group, and dropping it on an edge of the dock adds a group along that edge.
  • A tabless panel (the file tree) is dragged by its whole strip, to beside a group or along an edge of the dock.
  • Dockview's own drag and drop is removed from the dock, and so are floating groups, so a shift-pressed tab no longer floats.
  • A strip stays where it is scrolled to when a tab is dropped. Dockview moves a tab by removing and adding it, and scrolled to the tab it activated in between.

Sizes

  • Other groups keep their sizes when a group leaves its row or column.
  • The projects sidebar keeps its width when the window resizes.

Placeholder

  • A dock has a placeholder panel exactly while no other tab panel is open.

Tab strip

  • A group's strip lists its overflowing tabs in a menu, from a button whose space is kept after the one that adds a tab. A row activates its tab; its close button, or Mod-Backspace on macOS and Delete elsewhere, closes it.
  • Both buttons have tooltips and are shown only for a group that the dock says has a tab panel.
  • A group's shown tab is scrolled into view when it changes and when its strip resizes.
  • The strip's buttons and tab pills are 24px tall, and the strip's scrollbar has the border color of the other scrollbars.

Also in this branch

  • A window that the renderer opens to its own origin stays out of the system browser.
  • A settings form can be between 480 and 768 pixels wide.

Tests

  • Browser tests cover the drags, the dock manager's sizes, the placeholder, and the tab actions and their menu.
  • Visual baselines for the workspace dock are regenerated, and the open overflow menu has one.
  • The visual baselines of the settings pages (editor, language overridden row) are not updated for the new form width.

🤖 Generated with Claude Code

Pante and others added 16 commits November 23, 2026 22:38
A tab dragged over the space after a group's tabs slides in as its last tab, and one dropped on the centre of a group's
content joins it, with the content filled while held. Tabs and strips match by the dragged tab's centre, the strip
resizes with its sliding tabs, and the drop has no animation.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A tab held in the outer fifth of a group's content fills the half that it would take, and dropping it there puts it in
a new group on that side. Drags in the dock no longer scroll the content under the pointer.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A tab held within 24 pixels of the left, right or bottom of the dock fills a quarter of it, and dropping it there puts
it in a new group along that edge. A group that spans the edge is split instead, which gives the same layout.

The drag tests sit beside the files they cover, and edge and CENTERED have their own.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A tabless panel, which today is only the file tree, can be dragged to a group of its own but never among tabs. It
keeps its width when it moves from one row to another, and its height from one column to another.

A drop works out a placement and moves the panel to it, and a tab stays where it shows unless the drag was cancelled
or released over nothing.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The lock on tool groups, the veto on merging into them and the listener that cancelled group drags did nothing once
dockview's drag and drop was disabled. A dragged tool tab is a lifted card like any other tab.

The dragged tab and each drop preview have visual baselines.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Dockview spreads the space of a removed group over every group left in its row or column. The dock manager now
gives it to the previous group, or the next, and restores the rest.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A tabless panel, which today is only the file tree, is picked up by the space after its tab as well as by the tab. The
strip is the lifted card, as wide as the panel's group, and the tool tab inside it is never painted.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A dock has a placeholder panel exactly while no other tab panel is open. It takes the place of the last tab panel
that closes, and closes once another tab panel opens. Its tab is not drawn, so its group shows only the + in its
strip, and a tab added to its group gets its space while the other groups keep their sizes. A new dock starts with the
file tree beside the placeholder, and no longer opens a terminal.

A tab's close button is always shown, since the last tab can be closed.

The data-tool CSS hook is now data-tabless. The workspace dock's visual tests attach their dock and add the terminal
that their baselines show.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The shell's split view is no longer proportional, so a resize of the window goes to the content and the projects
sidebar keeps its width until it is dragged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A group's strip has a button after the one that adds a tab, shown while tabs overflow, whose space is kept so the
add button stays put. Its menu lists the overflowing tabs in order. A row activates its tab, and its close button,
or Mod-Backspace on macOS and Delete elsewhere, closes the tab and keeps the menu open. This replaces dockview's own
overflow list, which was drawn under the dock because the theme did not define dockview's overlay z-index.

Both buttons have a tooltip and are one component, TabActions, which is shown only for a group that the dock says
has a tab panel instead of by a list of tool panels.

A group's shown tab is scrolled into view when it changes and when its strip resizes.

The strip's buttons and tab pills are 24px tall, so a 12px icon is centred, the add button no longer sits over the
tabs, and the strip's scrollbar has the border color of the other scrollbars.

The dock's drag and drop moves from -drag to -dock.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Dockview moves a tab by removing it and adding it again. In between, it activates another tab of the group and
scrolls the strip to it, so a strip that overflows jumped after a reorder. Each strip's scroll position is now read
before the move and restored after it. Dockview's own drag and drop has the same jump.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Dockview floats a tab, or a whole group by the space after its tabs, when it is pressed with Shift. Floating groups
are now disabled.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
…owser

A link that the renderer opens is handed to the system browser when it is http or https. In development the
renderer's own origin is http too, so its own pages went to the browser as well.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
The form beside a settings preview was held between 600 and 672 pixels. The sash between them stays invisible while
it is dragged.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
A workspace in the projects sidebar is a link, so a click with Alt, Meta or Shift was left to the browser, which
opens a link in a new window or downloads it. The click now always navigates the window.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Comment thread apps/web/src/dock/dock-manager.ts Resolved
Comment thread apps/web/src/dock/dock-manager.ts Resolved
Pante and others added 2 commits November 25, 2026 17:35
@claude

claude Bot commented Nov 25, 2026

Copy link
Copy Markdown

Code review

No issues found. Checked for bugs and CLAUDE.md compliance.

@Pante
Pante added this pull request to the merge queue Nov 25, 2026
Merged via the queue into main with commit f702c4e Nov 25, 2026
12 checks passed
@Pante
Pante deleted the feature/dock-improvements branch November 25, 2026 09:52
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