Repository navigation
feat(web): white bead ring working indicator - #523
Conversation
Adds a "White bead ring" choice to Settings → Appearance → Working indicator, next to the green bead ring. Same baked film, filled in the surface's text ink: white on dark surfaces, dark on Inlet Cream's frame and light themes. The lit Automations row on Inlet restates the panel's contrast ink so the ring stays visible there. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
NoahHendrickson
left a comment
There was a problem hiding this comment.
Code-quality review of f53f60e1f098cbf8f63f2f87b34d7606988cc467.
The change is small and mostly in the right shape. SIDEBAR_V2_WORKING_MARK_FORMS being a Record<ForkWorkingMark, …> means the new mark can't be left out of the settings picker, Storybook or the form map. No file gets close to 1k lines (SidebarV2StatusIndicator.tsx is 566). I'm not approving, though, because of one structural problem in the Inlet CSS. Details are inline.
-
The Inlet ink fix patches one token when the canonical rule already exists (main point).
theme.custom.inlet.cssalready has a rule for "this row sits on the panel's fill, so it takes the panel's ink" (the open thread row / split pair / drag image list at ~L446–471). That rule restates the whole ink set, and a comment explains why: index.css computes the contrast inks once at[data-app-sidebar]. The lit chrome row is the same concept (its own comment says "like the open thread's row"), but it keeps a separate block that now picks out a single token. The PR's justification, "nothing else in the row reads it", is the weak point: the next glyph that reads--contrast-muted-foregroundor--muted-foregroundthere brings the bug back. The multi-selected-row follow-up is the same bug class. Code-judo: add[data-fork-chrome-row][data-active="true"]to that selector list and delete the bespoke block. By the PR's own analysis this changes nothing today, and the follow-up then becomes one more selector in the same list. -
The variant adds three layers of optional
inkfor one class string (minor).FilmStrip.ink?, thenWorkingMarkProps & { ink?: string }, then a named wrapper component. It works, but the wrapper is a pass-through, andinkis an untyped Tailwind class. Also, the mark list now mixes shape and colour (bead-white). That's fine for one variant, but if a second colour variant comes up (helix-white…), that's the point to split out an ink axis rather than multiply entries. -
Question, not a blocker:
SidebarV2StillWorkingMark(the still ring in message/subagent chips) staysborder-sidebar-v2-status-workingwhatever mark is picked. So someone who picks the white ring still sees a green still ring in chips. Is that intended?
🤖 Signed: Claude Opus 5.5 (claude-opus-5-5) via Claude Code
| :root[data-fork="noahhendrickson-t3code"][data-fork-theme="inlet"] | ||
| [data-sidebar-version="v2"] | ||
| [data-fork-chrome-row][data-active="true"] { | ||
| --contrast-foreground: var(--fork-inlet-panel-foreground); |
There was a problem hiding this comment.
This patches one contrast token onto a block that duplicates an existing concept. The open-row rule above (~L446–471) already makes a row on the panel's fill take the panel's whole ink set (--foreground, muted, every --contrast-*, plus color), and its comment explains why. Can this selector join that list so this block goes away? Restating only --contrast-foreground holds only while nothing else in the row reads the other inks, and the multi-select follow-up you noted is the same bug in another row.
There was a problem hiding this comment.
Fixed in 46fdee8. [data-fork-chrome-row][data-active="true"] now sits in the open-row selector list and the one-off block is gone, matching how theme.custom.palettes.css:705 already groups the two. One visible effect: on Inlet, the lit chrome row's muted text (e.g. the Automations live count) now takes the panel's muted ink instead of the frame's, which on Cream was dark on the dark lit row. The multi-select follow-up can join the same list later.
| } | ||
|
|
||
| /** The bead ring in the surface's text ink: white on dark surfaces, dark where white would vanish. */ | ||
| function SidebarV2WorkingWhiteBeadRing(props: WorkingMarkProps) { |
There was a problem hiding this comment.
This is a pass-through wrapper on top of an optional ink prop that's threaded through two more layers (FilmStrip.ink?, then WorkingMarkProps & { ink?: string }). The map entry could be the one-liner itself. Or, if the ink should be a real concept, type it narrowly and keep the default in one place. Also: if a second colour variant ever comes up, split an ink axis off ForkWorkingMark instead of adding <shape>-<colour> entries.
There was a problem hiding this comment.
Fixed in 46fdee8: the named wrapper is gone and the map entry is the one-liner. Kept the optional ink on the bead ring and FilmStrip, since that is the one place the fill is chosen and the default stays in FilmStrip. Agreed on the ink axis: if a second colour variant comes up, that is the point to split it off ForkWorkingMark.
NoahHendrickson
left a comment
There was a problem hiding this comment.
Code review of commit f53f60e1f098cbf8f63f2f87b34d7606988cc467 (base 3dbfa2235e).
The change is correct as far as it goes. bg-foreground resolves through --color-foreground: var(--contrast-foreground) (index.css:318–332), so restating --contrast-foreground on the lit chrome row is the right fix for the white ring there. I found no bugs in the new code. There are three smaller findings: two inline, and one below because its line is outside the diff.
Pre-existing: on Inlet Black, the lit chrome row doesn't get the deep status shades (apps/web/src/theme.custom.inlet.css:478–485)
On Inlet Black the cream-panel remap of --sidebar-v2-status-* matches only [data-fork-thread-row][aria-current="page"] and the active split pair. The lit chrome row also takes the cream panel, and this PR now treats it as a panel surface. But with the default green bead ring (or the helix), the lit Automations row still draws the sidebar's bright working green on cream.
- Scenario: Inlet Black, default working mark, Scheduled tasks page open while a run is live. You get a neon-green ring on the cream lit row. The new white form renders correctly there; the green one doesn't.
- Fix: add
[data-fork-chrome-row][data-active="true"]to that:is()list. This predates the PR, so it could be a follow-up.
Checked and dropped: the idea that the white working ring can't be told apart from the white monitoring mark. Working is a 12px ring and monitoring is a 10px filled dot, so the shapes differ even with reduced motion on.
🤖 Reviewed by Claude Opus 5.5 (claude-opus-5-5) via Claude Code (/code-review)
| :root[data-fork="noahhendrickson-t3code"][data-fork-theme="inlet"] | ||
| [data-sidebar-version="v2"] | ||
| [data-fork-chrome-row][data-active="true"] { | ||
| --contrast-foreground: var(--fork-inlet-panel-foreground); |
There was a problem hiding this comment.
Pre-existing, one step from this fix. This restates --contrast-foreground for the ring, but the live count beside it (text-muted-foreground in ChromeAutomationsRow, which resolves to --contrast-muted-foreground) still uses the frame's muted ink on the panel fill. The open-thread-row block at line ~464 restates the muted set together. Consider doing the same here:
--contrast-muted-foreground: var(--fork-inlet-panel-muted);
--contrast-icon-muted: var(--fork-inlet-panel-muted);
--contrast-secondary-label: var(--fork-inlet-panel-muted);Scenario: Inlet Cream with the Scheduled tasks page open and a run live. The ring is now in panel ink, but the count next to it is the cream frame's dark muted ink on the dark panel, so it has low contrast.
There was a problem hiding this comment.
Resolved by 46fdee8. The lit chrome row now sits in the open-row selector list, which restates the whole muted set (--muted-foreground, --contrast-muted-foreground, --contrast-secondary-label, --contrast-icon-muted) to the panel ink. The live count beside the ring takes panel muted ink on Cream now.
| helix: "DNA helix", | ||
| rain: "Pixel rain", | ||
| bead: "Bead ring", | ||
| "bead-white": "White bead ring", |
There was a problem hiding this comment.
Nit: label. This form draws in bg-foreground, so it's dark on Basic Light, on Inlet Cream's frame, and on any light surface. The doc comment and the customizations.yaml entry both say so. Someone on a light theme who picks "White bead ring" gets a black ring. A name that matches what it does, like "Monochrome bead ring" or "Ink bead ring", would avoid that surprise. If the white wording is deliberate because it's mainly a Flat Glass and dark-theme choice, feel free to ignore this.
There was a problem hiding this comment.
Declined: the white wording is deliberate. The request was a white ring for dark themes (Flat Glass is the primary theme). The dark-on-light behaviour is only a fallback so the ring never vanishes, and the doc comment and manifest say so.
The lit chrome row takes the panel's whole ink set through the open-row rule instead of a one-token block, and the white bead ring is an inline map entry rather than a pass-through component. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Review dispositions for f53f60e (fixes in 46fdee8):
Checks: |
|
Dispositions for the second review of f53f60e:
|
The bead ring working indicator only came in green. This adds a white option alongside it.
What changed
bead-white), next to the unchanged green Bead ring. Device-local, like the other choices; palette defaults are untouched.bg-foreground, the surface's own text ink: white on dark surfaces (Flat Glass, Glass, Inlet panels), dark on Inlet Cream's cream frame and on light themes, where white would vanish.Web and desktop only. The mobile app has its own bead ring and no picker.
Follow-up (not in this PR): multi-selected sidebar rows on Inlet don't restate the panel ink either. This predates the change and affects their text too.
Checks:
vp run check:changed,.fork/design-lint.mjs --check,.fork/lint-owned.mjsall pass.Reviewed with sol-loop: 2 rounds with gpt-6.2-sol on high. Sol verdict: approved
Reviewed with neon-review: 2 rounds with gemini-4-neon on high. Neon verdict: approved
🤖 Signed: Claude Opus 5.5 (
claude-opus-5-5) via Claude Codegpt-6.2-sol) via Codex: reviewer (sol-loop); its Inlet Cream finding is fixed heregemini-4-neon) via Antigravity: reviewer (neon-review); its Automations-row finding is fixed here