Repository navigation
Conversation
…idth, not the window's
|
This PR changes the test suite by +2 test cases (browser +2, unit 0, server 0). New browser test files: Keep tests that would fail for a real reason, and test logic below the UI where it can be. See Testing. |
ApprovabilityVerdict: Approved at Macroscope's review found this PR approvable — Workflows now sizes its split layout and editor spacing against the pane rather than the window, keeping narrow panes from showing cramped columns. The change is presentation-only and leaves workflow behavior and stored data unchanged. Notes:
You can add or adjust custom eligibility rules. Learn more. |
Dismissing prior approval to re-evaluate 233d4c6
The redesign's run panel picks its split from the window width again, in both WorkflowsPage and WorkflowRunsView. A 460px pane in a wide window put the run list in a 100px column beside a 360px run. Both now also measure their own row and stop splitting below PREVIEW_PANEL_SPLIT_MIN_ROW_WIDTH, as Pull Requests and Issues do. The definition editor's padding goes back to the base's sm:p-6, since the page container it keyed off is gone.
Note
🤖 Claude Opus 5.5 on behalf of Oliver
Problem
Workflows decides whether the run list sits beside the open run from the window's width (
useMediaQuery("md")/"xl"). This happens twice: inWorkflowRunsView(the list beside the run) and inWorkflowsPage(the runs view beside the side pane). With workspace panes, a narrow Workflows pane in a wide window still splits. In a 460px pane inside a 1400px window, the run takes its 360px minimum and the run list gets squeezed into a 100px column next to it. The same happens one level up when a thread is open beside the run.Fix
Both components now also measure their own row and stop splitting when the row is narrower than
PREVIEW_PANEL_SPLIT_MIN_ROW_WIDTH(720px, room for the list and the run at their minimums). Pull Requests and Issues already do this. Below that width the open run (or the side pane) fills the pane on its own and the list is hidden, the same as on a phone. The window check stays, so phone layouts don't change.Tests
WorkflowRunsView.browser.test.tsxputs the runs view in a 460px box inside a 1280px window with a run open. It checks that the run fills the box and the run list is gone. It fails on the base branch.WorkflowsPage.browser.test.tsxdoes the same for the page with a side pane open, inside a 1400px window. It fails on the base branch.vp run check:changed origin/maria/redesign/6-workspace-panespasses.Claude Opus 5.5 via Claude Code