Skip to content

Renderer workbench: the view is a card on the gutter, like the Inspector's - #280

Merged
agorischek merged 5 commits into
mainfrom
inspector-view-card
Dec 2, 2026
Merged

agorischek merged 5 commits into
mainfrom
inspector-view-card

Conversation

@agorischek

@agorischek agorischek commented Dec 2, 2026 •

Copy link
Copy Markdown
Collaborator

Agent assessment

Self-reported assessment, not an independent review.

Assessed revision: 49e42608e7e0013c596837ad9260ede76b79fd69

Dimension Assessment Rationale
Change confidence 9/10 ↑ New chromium-desktop spec covers the card look, 8px gutters, clipping, frame and summary bar containment, a 640px panel (view shrinks, foot visible) and the dashed device-width card.
↑ Full inspector chromium-desktop browser suite passes locally.
↑ Manually measured light/dark, sidebar and panel open/closed, 900px drawer, tablet and side by side.
↑ CI fully green on the pre-rebase head (0c7601f); Copilot review clean.
↓ Rebased onto #278 (kit only, no overlapping files) and re-verified locally with check --fast and the inspector card/fixtures browser tests; CI on this head not awaited.

What

In the renderer (fixtures) workbench, projections-renderer-workbench, the Explorer and the bottom panel were rounded cards on the gutter, but the view sat flush against them, with no border and no gutter. The view is now a .pi-card like the others: same radius, border and surface, one gutter from the sidebar, the panel, the window edge and the status bar, with its toolbar flat inside. overflow: hidden clips the renderer iframe and the floating summary bar to its corners. Inside a view card, the view drops its embedded minimum height (min(28rem, 75dvh)) and shrinks with the card, so a tall bottom panel doesn't hide the view's foot. The Inspector's view card has the same structure, so the rule covers it too.

At a tablet or phone viewport the card narrows to that width, centred, and keeps the dashed edge the old frame had (styles.css).

Why, and was it a regression?

It wasn't a regression. The Inspector's own view has been a card since the initial import (page.tsx: !bare && 'pi-card pj:m-[var(--pi-gutter)]'), and styles.css describes the view as one of the cards. The fixtures workbench renders its own WorkbenchBody instead of the Inspector's PresentedView, and since the initial import its view was a plain full-width pi-viewport (dashed and rounded only at a device width). The card treatment never applied to it.

Screenshots

Language-server scenario, FsAutoComplete 0.78.5 to 0.87.0, desktop, bottom panel open.

Before (light)

Before, light: the view is flush against the Explorer and the panel

After (light)

After, light: the view is a rounded card one gutter from the Explorer and the panel

Before (dark)

Before, dark: the view is flush against the Explorer and the panel

After (dark)

After, dark: the view is a rounded card one gutter from the Explorer and the panel

Tests

  • browser/fixtures.spec.ts: "the view is a card on the gutter, like the Explorer and the panel" (chromium-desktop).
  • tools test packages/host/inspector --browser chromium-desktop --filter 'card|fixtures mode|checks panel': 7 passed.
  • tools check --fast: pass.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 Changes recommended

The card clips its nested ProjectionView when the bottom panel is enlarged, hiding the renderer’s bottom and summary bar without a scrollbar to reach them.

1 open issue
What changed in this PR

Makes the renderer workbench view a rounded card, matching the Inspector’s sidebar and bottom panel.

Changes:

  • Adds consistent gutters, borders, and rounded clipping.
  • Preserves centered, dashed cards at device widths.
  • Adds browser coverage and a changelog entry.
File Description
packages/​host/​inspector/​src/​styles.css Applies dashed borders at device widths.
packages/​host/​inspector/​src/​fixtures/​workbench/​body.tsx Adds card styling and gutters to the view.
packages/​host/​inspector/​browser/​fixtures.spec.ts Tests card appearance, spacing, containment, and phone width.
changelog.d/​280.md Documents the workbench’s visual update.

Review effort: Balanced

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Warning

Copilot couldn't run its full agentic review because it didn't start before the timeout. Make sure your repository has a runner available, or add a copilot-code-review.yml file specifying one with the runs-on attribute. See the docs for more details.

Copilot review overview

4 open issues
1 resolved since last review

Review effort: Lite

Comment thread packages/host/inspector/src/styles.css Resolved

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

agorischek and others added 5 commits December 2, 2026 15:32
…tor's

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
…say which view is a .pi-viewport

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
@agorischek
agorischek merged commit df2878c into main Dec 2, 2026
47 of 48 checks passed
@agorischek
agorischek deleted the inspector-view-card branch December 2, 2026 23:34
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