Repository navigation
Stage: pane label bands take their inline inset from CSS variables - #119
Merged
Merged
Conversation
agorischek
force-pushed
the
pane-band-inset
branch
from
November 20, 2026 23:45
4b0cd23 to
d6c36d2
Compare
agorischek
force-pushed
the
revision-labels
branch
from
November 20, 2026 23:45
6942db1 to
8a04db6
Compare
agorischek
force-pushed
the
pane-band-inset
branch
from
November 20, 2026 23:49
d6c36d2 to
d72229d
Compare
agorischek
force-pushed
the
revision-labels
branch
from
November 20, 2026 23:50
8a04db6 to
e74133c
Compare
There was a problem hiding this comment.
🟢 Approval recommended
No active review issues were identified for the configurable pane-label spacing hooks and accompanying documentation.
No open issues 🎉
What changed in this PR
Adds CSS-variable hooks for pane-label spacing in the core stage, allowing hosts to align labels with their layouts without !important overrides.
Changes:
- Supports shared and separate inline-start/end insets, retaining the default 10px spacing.
- Documents the new inset hooks alongside the existing band color and divider variables.
| File | Description |
|---|---|
packages/host/core/src/stage/labels.tsx |
Replaces fixed horizontal padding with configurable logical insets. |
docs/guides/host-core.md |
Documents pane-band styling variables and where to apply them. |
Review effort: Balanced
agorischek
force-pushed
the
pane-band-inset
branch
from
November 21, 2026 00:43
d72229d to
f14dd0d
Compare
agorischek
force-pushed
the
revision-labels
branch
2 times, most recently
from
November 21, 2026 01:08
00bcebb to
f438e6f
Compare
agorischek
force-pushed
the
pane-band-inset
branch
2 times, most recently
from
November 21, 2026 01:37
a3aaa45 to
747c30e
Compare
agorischek
force-pushed
the
revision-labels
branch
from
November 21, 2026 01:37
f438e6f to
3d089bb
Compare
agorischek
force-pushed
the
pane-band-inset
branch
from
November 21, 2026 15:19
747c30e to
b3c9f7b
Compare
agorischek
force-pushed
the
revision-labels
branch
from
November 21, 2026 15:19
3d089bb to
90b0ec8
Compare
agorischek
force-pushed
the
pane-band-inset
branch
from
November 21, 2026 16:08
b3c9f7b to
c2fe6f2
Compare
agorischek
force-pushed
the
revision-labels
branch
from
November 21, 2026 16:08
90b0ec8 to
342d837
Compare
agorischek
force-pushed
the
pane-band-inset
branch
from
November 21, 2026 17:39
c2fe6f2 to
4346c5a
Compare
agorischek
force-pushed
the
revision-labels
branch
2 times, most recently
from
November 21, 2026 18:28
21cc803 to
52cbc8f
Compare
agorischek
force-pushed
the
pane-band-inset
branch
2 times, most recently
from
November 21, 2026 19:07
243349f to
7c92224
Compare
agorischek
force-pushed
the
revision-labels
branch
from
November 21, 2026 19:08
52cbc8f to
0fa5b05
Compare
The rule for when a running job's indicator shows (after 300 ms, then for at least 400 ms) lived in the VS Code UI, so the default UI's "Updating…" chip showed for every job, however short. The rule is now the core's: `runningIndicator` and its constants at `@githubnext/projections-host/running` (no React or DOM, for the VS Code extension host), and `useRunningIndicator`, which the default UI's chip and the VS Code UI's summary bar both use. The VS Code UI's `./running` entry re-exports it, so the extension is unchanged. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The running indicator's minimum started while a loading pane kept the chip hidden, so a chip revealed as the renderer became ready could vanish at once. The latch now lives only while no pane is loading. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The Inspector wrote revision labels as `name · detail · when`, and four places read them back by splitting on ` · ` with their own rules: the default UI's and the VS Code UI's pair pickers (one trimmed, one didn't), the pane chips (with an age heuristic) and the pane label bands. The core now owns the format: `formatRevisionLabel`, `parseRevisionLabel`, `revisionLabelName` and `revisionAge` (the Inspector's `age`, moved). Every reader and the Inspector's writer use them; `shortRevisionLabel` and the Inspector's `age` keep their names. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
The pane label band (side by side's and swipe's revision headers) set `padding: 0 10px` inline, so a host lining its labels up with its own layout had to override the band with `!important`, as the Playground's Primer UI does. The band now reads `--pj-pane-band-inset` (10px by default), or `--pj-pane-band-inset-start` and `-end` apart, beside its existing `--pj-pane-band-bg`, `-fg` and `-rule`. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
agorischek
force-pushed
the
pane-band-inset
branch
from
November 21, 2026 20:34
7c92224 to
8c665dd
Compare
agorischek
force-pushed
the
revision-labels
branch
from
November 21, 2026 20:34
0fa5b05 to
7c43929
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Stacked on #117. This is item G10 of the headless-host plan ("stage styling hooks"), and only its part that has evidence.
Why
The core stage is styled inline from theme tokens, which is good: there's no stylesheet to load. But one inline length had no hook, the pane label band's
padding: '0 10px'(stage/labels.tsx,PaneBand). The Playground's Primer UI lines its labels up with its renderers' content in flow layouts, so it overrides the band with!important(hosted/host-primer/src/styles.css:1075-1089, three rules).Everything else Primer restyles in the stage already has a variable,
--ph-swipe-edgeand--ph-swipe-fillfor the swipe divider.What changed
padding-inline-start: var(--pj-pane-band-inset-start, var(--pj-pane-band-inset, 10px)), and the same for-end. It renders exactly as before by default.docs/guides/host-core.mdlists the band's variables (-bg,-fg,-rule, which were only in a code comment, and the new insets) next to the chip's.Follow-up
After the pin bump, a private PR replaces Primer's three
!importantrules with these variables.Run locally:
tools check --fast: pass.tscfor core: pass.