GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||||||||||||
GeezerVison is showing github.com — feat(web): drag chips, changed files, header tabs and palette threads into the layout by flamboh · Pull Request #37604 · pingdotgg/t3code Conversation
|
| Element | Where | A drop opens |
|---|---|---|
| Thread results | Command palette | That thread's chat |
| Thread chips | Thread links in agent replies, thread chips on sent messages | That thread's chat |
| Parent-thread tab | Chat header of a subagent thread | The parent's chat |
| "Terminal" chip | Chat header, while the terminal is hidden | The thread's terminal |
| File chips | File links in agent replies, file chips on sent messages | A file tab for the file a click opens, at its line |
| File rows and "Open diff" | Timeline "Changed files" card | That turn's diff, at that file |
| Pull request rows | Thread details card | That pull request's tab |
The chip under the pointer shows the icon and title the new tab gets. A drop places only the dragged surface where it lands; if the thread's panel is closed and holds other surfaces, those reopen where a click would put them. A click, a short accidental move, middle and right click, and keyboard activation behave as before. Touch never starts a drag. Anchors that become drag sources no longer start the browser's own link drag, and text is not selected while a chip is dragged out of a reply.
The command palette closes as soon as a drag leaves the press threshold, so the drop zones are free to use. If the drag is cancelled (Escape, or a release over nothing) it stays closed.
#37375 also edits ThreadContextChip.tsx, ChatHeader.tsx and DropZones.tsx. Whichever lands second should keep the chip's onClick from #37375 next to this PR's onPointerDown and inPromptEditor, keep #37375's header without the old "+" menu imports while adding this PR's beginLayoutContentDrag and THREAD_TERMINAL_SURFACE_ID imports, and in LayoutDropZones keep both #37375's blank-tab drop check and this PR's useThreadContextDragGhost check for the thread chip.
Checked in a real browser for every source: a plain click and a 3px move still click; Escape or a release outside any zone changes nothing and leaves no chip; a drop opens only the dragged item; dragging out of a reply leaves no text selected; wheel scrolling over chips, file links and changed-file rows still scrolls.
Dragging a result closes the palette and opens that thread beside the chat. Dropping a result on a composer still makes a mention.
The thread chip on a sent message, dragged beside the chat. A thread link inside a reply uses the same component; no sample reply with one was available to record.
The chip shows when a thread comes back with its terminal hidden: open the terminal, switch to another thread, reload, and open the first thread again. Dragged below the chat, the terminal lands there with its output intact, and keyboard focus goes to it. The parent-thread tab is not recorded: the free replay provider has no subagent threads.
A file link with a line number dragged beside the chat opens the file at that line; a plain click still opens it as before.
A link written relative to a package (cloud/http.ts for packages/app/cloud/http.ts) drops the same file its click finds in the workspace. Checked in a real browser with a file that exists only at the nested path: the drop opens the nested file, and a click afterwards reuses that tab.
A folder row still only expands and collapses; a file row dropped beside the chat opens that turn's diff at that file; "Open diff" dropped into the tab row lands as a tab.
The pull request row dragged into the tab row.
apps/web/src/layout/layoutDrag.test.ts: drops check the store opener and its scope for a file link at the path its click resolves and its line, a turn's diff at its file and the hidden terminal, plus one browser tab for the surfaces that only open. All 4 rows failed before the change. Two more cases cover a drop that waits on a file lookup: it lands in the workspace focused at the drop even if focus moves meanwhile, and does nothing if its target pane closed; both failed before the fix.apps/web/src/layout/SurfaceHost.browser.test.tsx: "only the dragged surface lands at the drop" now also runs for a file. It failed before the change.apps/web/src/components/chat/threadContextDrag.browser.test.tsx: a thread drag started through the layout's drag start still lands on a composer as a mention. It failed before the change.apps/web/src/components/ChatMarkdown.browser.test.tsx: two file link drops whose lookups are pending at once both open their file, and a click meanwhile does not cancel them; a later click still supersedes an earlier click. It failed before the fix.vp run typecheck in apps/web, and vp run check:changed b03cd7bddfd: format, lint, knip, typecheck, tests and the React compiler check pass.Made with Claude Opus 5.5 in Claude Code (T3 Code).
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Adds drag-and-drop placement of threads, files, diffs, and PR views into workspace panes. Effects are confined to user-initiated navigation and saved layout arrangement, with existing opening preferences preserved. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
All clear
Posted via Macroscope — Effect Service Conventions
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Dismissing prior approval to re-evaluate 4220cc6
…ialog header away
7b62013 to
3952b4f
Compare
…uests-into-layout
3952b4f to
b03cd7b
Compare
…uests-into-layout
…-workspace-panes) into t3/redesign-drag-more-into-layout
There was an error while loading. Please reload this page.
Dismissing prior approval to re-evaluate e5c236a
a6d78a0
into
pingdotgg:maria/redesign/6-workspace-panes
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.