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 the Pull Requests button and a thread's PR badge into the layout by flamboh · Pull Request #37421 · pingdotgg/t3code Conversation
|
| Drop on | Result |
|---|---|
| A pane's tab row | Opens a new tab in that pane. If the page is already open in a tab, that tab moves there. |
| A side of a pane | Splits beside that pane. |
| An edge of the window | Extends the layout with a new pane. |
While dragging, a chip follows the pointer. It is the same lifted tab the tab drag shows, with the icon and title the new tab gets: "Pull requests" for either list, and the pull request's state icon with "#123" for one pull request. A plain click still opens the page as before.
The dragged tab now shows its lifted surface too, because both share one element and that surface was not being applied.
#37375 also edits the drop check in LayoutDropZones (apps/web/src/layout/DropZones.tsx). Whichever lands second should refuse a drop into a blank launcher tab only for a source.kind === "tab" whose content is the launcher, and allow every other source kind.
Dragging the Pull Requests button. Before (base) the same pointer movement does nothing; after, the chip follows the pointer and the drop splits the page beside the chat.
Dragging a thread's pull request badge into the tab row.
Dragging one row out of the hover list of a thread with several pull requests. Before (the previous head of this PR) the gesture only starts the browser's link drag; after, the row's pull request opens beside the chat.
The chip for each of the three sources:
The dragged tab, which shares the chip's element:
vp test run apps/web/src/layout/layoutDrag.test.ts apps/web/src/layout/SurfaceHost.browser.test.tsx: 8 passed. The drop rules are unit tests; the cases that need the surface sync mounted (a dropped pull request surviving a reload, and a drop that reopens hidden panels) stay in the layout host's browser test.vp run check:changed e6cf9cc54c: 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.
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: Would Approve Macroscope's review found this PR approvable — Adds dragging of Pull Requests controls into the workspace layout while retaining existing in-app-link settings. Exposure is limited to user-triggered UI placement; the reported guest-thread placement issue remains covered by the separate correctness gate. Needs human approval because:
Adjust the Minimum Blocking Severity for this repo — including turning it Off — in Settings. You can add or adjust custom eligibility rules. Learn more. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
478d2eb to
7b62013
Compare
Dismissing prior approval to re-evaluate 6fbcb67
One App icon row opens a picker with Default, Black, Sunrise, Blueprint and two older icons. Desktop applies the choice to the Dock on macOS and the window icon on Windows and Linux, live and on every launch; Default keeps the build's own icon and still never overwrites a custom macOS icon. The browser tab favicon follows the choice. Also reachable from the command palette as Change app icon.
The first tab sat 26px in from the pane's edge, room for the pane's rounded corner and the tab's left ear. It now starts at the edge: the pane clips the ear, and while the first tab is joined its side runs straight down the pane's edge and the pane's corner there fades out. After the collapsed sidebar's controls the tab keeps its old lead, and the lead eases with that inset. The strip's start fade and the reveal of a scrolled tab begin past the clipped ear.
…aude fakes working with workspace panes
…ialog header away
7b62013 to
3952b4f
Compare
…uests-into-layout
3952b4f to
b03cd7b
Compare
…uests-into-layout
| const panel = selectThreadRightPanelState(panels.byThreadKey, source.threadRef); | ||
| const reopensOthers = | ||
| !panel.isOpen && panel.surfaces.some((surface) => surface.id !== source.surface.id); | ||
| if (!reopensOthers) requestLayoutSurfacePlacement(source.threadRef, destination); |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
🟡 Medium layout/layoutDrag.ts:426
Dragging a sidebar PR badge for a side-chat guest opens or focuses the PR in the parent's default location instead of at the drop target, while commitLayoutDrop still returns success. panels.open routes to the parent's panel entry, but the placement request and resulting-tab lookup use the guest's source.threadRef; resolve the host thread and use it consistently for both.
In file @apps/web/src/layout/layoutDrag.ts around line 426:
Dragging a sidebar PR badge for a side-chat guest opens or focuses the PR in the parent's default location instead of at the drop target, while `commitLayoutDrop` still returns success. `panels.open` routes to the parent's panel entry, but the placement request and resulting-tab lookup use the guest's `source.threadRef`; resolve the host thread and use it consistently for both.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Dismissing prior approval to re-evaluate 1c43fd0
cd35789
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.