Skip to content

fix(ui): keep the Bridge Issues/PRs toggle in place - #1812

Merged
trunk-io[bot] merged 1 commit into
mainfrom
compass-ux/4773-bridge-toggle
Oct 8, 2026
Merged

trunk-io[bot] merged 1 commit into
mainfrom
compass-ux/4773-bridge-toggle

Conversation

@rigel-mintaka

@rigel-mintaka rigel-mintaka commented Oct 6, 2026 •

Copy link
Copy Markdown
Contributor

This PR is part of a stack containing 2 PRs:

  1. main
  2. "fix(ui): keep the Bridge Issues/PRs toggle in place" (this PR)
  3. fix(ui): chrome cleanup: drop ADE and usage bar, Session Log naming, pane edges, row re-measure (RIG-4771) #1811

Summary

On the Bridge, the Issues/PRs toggle jumped 166px every time you clicked it, so the next click hit a different spot.

  • Cause: both toolbar segs used margin-left: auto. The PRs tab hides the Swimlanes/Status seg (by design), so the Issues/PRs seg took the auto margin and slid right. Clicking Issues brought the grouping seg back and the toggle slid left again.
  • Fix: the Issues/PRs seg sits next to the heading on both tabs. The Swimlanes/Status seg stays right-aligned.

Verification

  • Reproduced in Chromium on the fixture app: the tab seg's left edge sat at x=571 on Issues and x=737 on PRs.
  • The bridge — PRs board visual test now checks that the tab seg's box is the same before and after the PRs click. It fails with the fix disabled (x 570 → 736) and passes with it.
  • Re-captured bridge.png and bridge-prs.png, because the toggle now renders next to the heading. visual-gate: 15 passed.
  • compass-ui:test passes 1294; the 4 env-secrecy tests fail only because a jj workspace has no .git. typecheck, stylelint and dev-smoke pass. Biome reports only two existing complexity warnings in Bridge.tsx.

Risks

Low. This changes CSS for one element. The toggle now renders next to the heading rather than at the right edge.

Compatibility

No API or data change.

Documentation

None. The board-view design does not fix where the toggle sits.

Ledger-impact: none (layout fix; no design record touched)

Refs RIG-4773

@linear-code

linear-code Bot commented Oct 6, 2026

Copy link
Copy Markdown

RIG-4773

@rigel-mintaka rigel-mintaka changed the title fix(ui): keep the Bridge Issues/PRs toggle in place (RIG-4773) fix(ui): keep the Bridge Issues/PRs toggle in place Oct 6, 2026
@github-actions

github-actions Bot commented Oct 6, 2026 •

Copy link
Copy Markdown

Compass engineering docs preview: https://compass-ux-4773-bridge-toggl.compass-eng-docs.pages.dev

Deployed from compass-ux/4773-bridge-toggle at 926b499.

@rigel-mintaka
rigel-mintaka marked this pull request as ready for review October 7, 2026 00:11
An error occurred while trying to automatically change base from compass-ux/4676-new-tab-fresh to compass-ux/4682-narrow-agent-view October 7, 2026 04:16
@rigel-mintaka
rigel-mintaka changed the base branch from compass-ux/4676-new-tab-fresh to main October 7, 2026 05:48
@trunk-io

trunk-io Bot commented Oct 7, 2026 •

Copy link
Copy Markdown

😎 This pull request was merged.

@rigel-mintaka
rigel-mintaka changed the base branch from main to compass-ux/4676-new-tab-fresh October 7, 2026 05:49
@rigel-mintaka
rigel-mintaka changed the base branch from compass-ux/4676-new-tab-fresh to main October 7, 2026 05:50
@rigel-mintaka
rigel-mintaka added this pull request to stack #1924 October 7, 2026 05:50
Both toolbar segs used `margin-left: auto`. The PRs tab unmounts the
grouping seg, so the tab seg took the auto margin and slid 166px right,
out from under the pointer. The tab seg now sits by the heading on both
tabs; the grouping seg stays right-aligned.

The PRs-board visual test now asserts the tab seg box is unchanged
across the flip (red before the fix). bridge.png and bridge-prs.png
are re-captured.

Spec-impact: none
Refs RIG-4773

Co-authored-by: Matt Wilkinson <matt@rigel.build>
@trunk-io

trunk-io Bot commented Oct 8, 2026

Copy link
Copy Markdown

This pull request is queued for merge as part of 1811, which will merge 1812, 1811.

@trunk-io
trunk-io Bot merged commit 088b5a2 into main Oct 8, 2026
15 checks passed
@trunk-io
trunk-io Bot deleted the compass-ux/4773-bridge-toggle branch October 8, 2026 04:49
@trunk-io

trunk-io Bot commented Oct 8, 2026

Copy link
Copy Markdown

This pull request was merged into main as part of stacked PR 1811.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants