Skip to content

feat(web): drag replies, launchers, links, and PR or issue rows to panes - #276

Open
orbitingflea wants to merge 1 commit into
proto/fullscreen-panelsfrom
feat/fullscreen-panels-drag-all
Open

orbitingflea wants to merge 1 commit into
proto/fullscreen-panelsfrom
feat/fullscreen-panels-drag-all

Conversation

@orbitingflea

@orbitingflea orbitingflea commented Nov 24, 2026 •

Copy link
Copy Markdown
Owner

Behaviour change

Behaviour change: yes, full-screen panels prototype users can drag Chat-mode reply buttons, Replies rows, pane "+" items, empty-pane launchers, Dashboard web links, and pull request or issue rows onto panes or strips to open them. Other-project thread links do not drag into the work area.

Why

Match drag to click in the work area. Files rows, chat file chips and links, thread chips, Dashboard chat chip, and sidebar thread rows already dragged. Other tab controls did not. Other-project thread chips fell back to a side pane on this thread's workspace, diff, and terminal.

What changed

  • New sources use the tab-drag ghost. Drag starts only if click opens a tab; drop runs it there.
  • Chat places primary Chat. Device drags after setup. Pull request or issue rows open a tab or preview. Dashboard and fallback web drops open any click-resolved HTTP or HTTPS URL and join browser history. Chat links keep their filter.
  • Thread chips drag only for same-project threads (Chat tabs) and own side chats, like sidebar rows.
  • Link drops plan with a stand-in tab as wide as the tab it opens. Joining its pane keeps its slot; dropping a hidden tab on its pane body shows it.
  • Browser and Side chat opens return promises. Dropped "+" or launcher opens skip the pane pick and beside-launcher placement, so a slow drop beaten by click or key uses that focus.
  • Open "+" menu drops are ignored. The menu closes on any drag end, even if Chat disappears. Shown or empty async opens clear the pane pick. Device setup keeps it.
Details

Implementation

  • Reply: "N replies", Reply, meta-row. "+", launchers: Browser, Terminal, Files, Diff, Pull requests, Device, Side chat, Dashboard, Replies, Whiteboard, Chat. Pull request, issue rows: Linked items, Thread details.
  • PanelLink renames opensChat to composer (width), holds drag-end "+" close callback.
  • In apps/web/src/fork/, workArea/: linkSources.ts (threadChipPanelLink, replyPanelLink, surfaceActionPanelLink, previewLinkPanelLink), chatAnchorLink.ts (useWebPanelLink, pull request, issue rows), chatOpenerContext.ts (threadTabPanel), panelLinkDrag.ts (panelDragProps). rightPanelMenu/: rightPanelMenu.tsx (useSurfaceActionDrag, Device on start), menu.logic.ts (Device setup).
  • WorkArea.tsx uses LINK_PROBE (linkDrop.logic.ts). useLinkDrops.ts, dropPlan.logic.ts ignore open-menu targets only. workAreaPlacement.logic.ts keeps same-pane slots on link drops only, clears shown picks. workAreaCommands.ts openFromPaneMenu returns result, clears empty async picks (fixes plain "+" clicks).

Scope

  • Upstream: RightPanelTabs.tsx, ThreadDetailsIssueRows.tsx (1 fork hook), ThreadPullRequestsPanel.tsx (1 capture prop), ChatView.tsx (1 line), useRightPanelActions.ts (Browser promise), ThreadDetailsPrRow.tsx, ThreadDetailsPrRows.tsx (row drag to open button). sideChatPane.ts drops 1 export.
  • Shared fixture (apps/web/test/fakeEnvironment.ts): adds project, pull request thread fields, 1 internal accept helper; exports acceptPendingCommand; installFakeEnvironment sends its server config and replacement shell snapshots to open subscriptions.
  • Left out: thread relationship chips, citations, canvas terminal links, Diff items (no panel), Dashboard board://, t3-thread:// links, Browser profiles, sidebar hover-card issue rows (switches threads).

Tradeoffs

  • Drop planning does not know "+" or Reply moves a placed tab and can close its old pane. On its lone edge, the ghost shows a split; drops do nothing. From another pane, the edge ghost can be narrower than the final pane. Narrow-area drops can join where a split fits; narrow strip drops can be refused. Open-tab file chips and chat links plan this way; planned multi-view replaces it.
  • Browser "+" drag untested (no web preview).
  • Dashboard board://, t3-thread:// links stay dead until click opens a tab.
  • "+" menu stays modal on drag, yet events reach panes behind it.
  • 1 "+" pick per pane (existing). A late Side chat or Browser open during another pane's Device setup clears it and opens Device in the first, like base clicks.

Blast Radius

Web client only. No server, contract, data, stored-state, or UI text changes. Revert to undo.

Verification

  • 78 browser tests (8 files) pass (Chromium Playwright, full app, fake env): all sources, sidebar pointer strip drag and rejects, cross-project chip, open "+" drops, slow open vs click, pre-setup Device, Chat, Dashboard (preview on/off, history), pull request, issue rows (tab, fallback, composer drop), one-strip reply drops.
  • Unit, typecheck, lint, format, knip, changed-files pass.
  • Not checked: Electron, Firefox, Safari, Browser "+" drag.

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:L labels Nov 24, 2026
@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

This PR changes the test suite by +37 test cases (browser +35, unit +2, server 0).

New browser test files: apps/web/src/fork/dashboard/dashboardLinkDrag.browser.test.tsx, apps/web/src/fork/workArea/linkedItemsDrag.browser.test.tsx.
Each browser test file costs CI seconds of module loading before its first test runs; a unit test costs milliseconds.

Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing.

@github-actions

github-actions Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Thread transfer impact

⚠️ The latest CI run did not produce a thread transfer result for 3adf04f.

This comment will update automatically after the next completed run.

@orbitingflea
orbitingflea force-pushed the feat/fullscreen-panels-drag-all branch from 7830462 to bf01ea5 Compare November 24, 2026 11:51
@github-actions github-actions Bot added size:XL and removed size:L labels Nov 24, 2026
@orbitingflea
orbitingflea force-pushed the feat/fullscreen-panels-drag-all branch 3 times, most recently from d93bb04 to 8132f02 Compare November 24, 2026 22:50
@github-actions github-actions Bot added size:L and removed size:XL labels Nov 24, 2026
@orbitingflea
orbitingflea force-pushed the feat/fullscreen-panels-drag-all branch from 8132f02 to 706c664 Compare November 24, 2026 23:48
@github-actions github-actions Bot added size:XL and removed size:L labels Nov 24, 2026
Anything whose click opens a work-area tab can now be dragged onto a
pane or tab strip and opens there, through the existing panel-link
drop: Reply buttons and Replies list rows, the pane "+" menu and
empty-pane launcher items (Device only once set up; Chat places the
primary Chat at the drop), Dashboard web links (into the preview
browser, as chat web links), and pull request and issue rows in Linked
items and Thread details (their tab, or the preview browser where the
click opens a browser). Each source builds its PanelLink from its own click opener
and predicate.

A thread chip now drags only where its click opens a tab: a thread of
the same project as a Chat tab, or a side chat of the panel's own
thread. Another project's thread no longer falls back to a side-thread
pane attached to this thread's workspace. Sidebar rows already used the same
check; a real-pointer regression test now covers them.

Also: `opensChat` becomes `composer`; async "+" opens (Browser, Side
chat) return their promise so a newer click still cancels the drop's
place; a release over an open menu is ignored; a user open of a
surface that is already shown, or an async "+" open that settles
without its tab, ends the "+" menu pick instead of leaving the pane
armed (a sync open such as Device setup keeps it); under a live drop a
"+" or launcher open adds no pick or launcher place of its own, so an
overtaken drop lands where the user's newer action put the focus; the
"+" menu closes when the drag ends, however it ends; a dropped link
whose open joins the pane already holding its tab keeps the tab in its
slot, as its click does; a web link outside chat drags for any HTTP
or HTTPS URL, as its click opens any, opens the URL its click
resolves to, and joins the project's browser
history when it opens in the preview browser, as a chat link does; the
Device item's drag checks setup when it starts. Every link drop still
plans with the stand-in tab.

Test fixture: installFakeEnvironment sends its server config and a
replacement shell snapshot to subscriptions an earlier test left open,
so the app holds exactly this test's own install.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@orbitingflea
orbitingflea force-pushed the feat/fullscreen-panels-drag-all branch from 706c664 to 3adf04f Compare November 25, 2026 01:25

This branch has not been deployed

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

Labels

size:XL vouch:trusted Author is trusted by repo permissions or the VOUCHED list.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant