Skip to content

fix(web): a narrow Workflows pane shows the open run, not two cramped columns - #46633

Open
flamboh wants to merge 6 commits into
pingdotgg:maria/redesign/6-workspace-panesfrom
flamboh:t3/workflows-split-by-pane-width
Open

flamboh wants to merge 6 commits into
pingdotgg:maria/redesign/6-workspace-panesfrom
flamboh:t3/workflows-split-by-pane-width

Conversation

@flamboh

@flamboh flamboh commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

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: in WorkflowRunsView (the list beside the run) and in WorkflowsPage (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.

Before and after

Real app, 1400px window, Workflows in a 460px pane.

What to look for: before, the run list is squeezed into a 100px column beside the open run; after, the run fills the pane and "Runs" leads back to the list.

Before and after: a run open in a 460px Workflows pane

What to look for: with a thread open beside the run, before, the whole runs view is squeezed to 100px and the run title wraps one letter per line; after, the thread fills the pane.

Before and after: a thread open beside the run in a 460px Workflows pane

Tests

  • WorkflowRunsView.browser.test.tsx puts 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.tsx renders the whole app over a fake socket, like the other case in that file. A run is open with a thread beside it, in a 460px box inside a 1400px window. It checks that the thread fills the row and the run list column is gone. It fails on the base branch.
  • vp run check:changed origin/maria/redesign/6-workspace-panes passes.

Claude Opus 5.5 via Claude Code

@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S 10-29 changed lines (additions + deletions). labels Dec 1, 2026
@flamboh
flamboh marked this pull request as ready for review December 1, 2026 08:30
macroscopeapp[bot]
macroscopeapp Bot previously approved these changes Dec 1, 2026
@macroscopeapp

macroscopeapp Bot commented Dec 1, 2026 •

Copy link
Copy Markdown
Contributor

Approvability

Verdict: Approved at ef5a6e4

Macroscope's review found this PR approvable — Narrow Workflows panes now prioritize the open run or panel rather than squeezing two columns together. The change is limited to responsive presentation and leaves workflow execution and saved settings unchanged.

You can add or adjust custom eligibility rules. Learn more.

@macroscopeapp
macroscopeapp Bot dismissed their stale review December 1, 2026 08:36

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.
@github-actions github-actions Bot added size:M 30-99 changed lines (additions + deletions). and removed size:S 10-29 changed lines (additions + deletions). labels Dec 2, 2026
@flamboh
flamboh marked this pull request as ready for review December 3, 2026 10:19
@flamboh
flamboh marked this pull request as draft December 3, 2026 18:52
…e-width

# Conflicts:
#	apps/web/src/components/workflows/WorkflowsPage.browser.test.tsx
@flamboh
flamboh marked this pull request as ready for review December 3, 2026 19:12

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:M 30-99 changed lines (additions + deletions). 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