Skip to content

feat(web): white bead ring working indicator - #523

Merged
NoahHendrickson merged 2 commits into
customfrom
t3/white-bead-animation
Nov 26, 2026
Merged

NoahHendrickson merged 2 commits into
customfrom
t3/white-bead-animation

Conversation

@NoahHendrickson

@NoahHendrickson NoahHendrickson commented Nov 26, 2026 •

Copy link
Copy Markdown
Owner

The bead ring working indicator only came in green. This adds a white option alongside it.

What changed

  • Settings → Appearance → Working indicator gains White bead ring (bead-white), next to the unchanged green Bead ring. Device-local, like the other choices; palette defaults are untouched.
  • It reuses the same baked bead-ring film and only swaps the fill: the bead ring and film strip take an optional ink class (default: the green status token).
  • The fill is 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.
  • On Inlet, the lit Automations sidebar row paints the panel colour but kept the frame's contrast ink, so the white ring vanished there while an automation ran. That row now joins the open-row rule, which gives a row on the panel's fill the panel's whole ink set. As a side effect, its muted text (e.g. the Automations live count) now takes the panel's muted ink too; on Cream it was dark on the dark lit row.

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.mjs all 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 Code

  • GPT-6.2 Sol (gpt-6.2-sol) via Codex: reviewer (sol-loop); its Inlet Cream finding is fixed here
  • Gemini 4 Neon (gemini-4-neon) via Antigravity: reviewer (neon-review); its Automations-row finding is fixed here

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>
@github-actions github-actions Bot added vouch:trusted Author is trusted by repo permissions or the VOUCHED list. size:S labels Nov 26, 2026

@NoahHendrickson NoahHendrickson left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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.

  1. The Inlet ink fix patches one token when the canonical rule already exists (main point). theme.custom.inlet.css already 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-foreground or --muted-foreground there 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.

  2. The variant adds three layers of optional ink for one class string (minor). FilmStrip.ink?, then WorkingMarkProps & { ink?: string }, then a named wrapper component. It works, but the wrapper is a pass-through, and ink is 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.

  3. Question, not a blocker: SidebarV2StillWorkingMark (the still ring in message/subagent chips) stays border-sidebar-v2-status-working whatever 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

Comment thread apps/web/src/theme.custom.inlet.css Outdated
: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);

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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) {

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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 NoahHendrickson left a comment

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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)

Comment thread apps/web/src/theme.custom.inlet.css Outdated
: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);

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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",

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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.

Copy link
Copy Markdown
Owner Author

Choose a reason for hiding this comment

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

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>
@NoahHendrickson

Copy link
Copy Markdown
Owner Author

Review dispositions for f53f60e (fixes in 46fdee8):

  1. Inlet ink fix: fixed. The lit chrome row joined the open-row ink rule and the one-off block is deleted.
  2. Pass-through wrapper: fixed. Inline map entry, no wrapper. The ink axis split is deferred until a second colour variant exists.
  3. Still ring in chips stays green: intended. SidebarV2StillWorkingMark already ignores the pick (it stays the green ring under helix and rain too), and the request was the animated bead ring only.

Checks: vp run check:changed, design lint and fork lint pass on 46fdee8.

@github-actions github-actions Bot added size:M and removed size:S labels Nov 26, 2026
@NoahHendrickson

Copy link
Copy Markdown
Owner Author

Dispositions for the second review of f53f60e:

  • Inline: muted count on the lit chrome row. Resolved by 46fdee8, since the open-row rule restates the muted set.
  • Inline: "White bead ring" label. Declined: white is the request. The dark fallback on light surfaces only keeps it visible.
  • Body: the Inlet Black status-shade remap misses the lit chrome row, so the default green ring shows bright green on cream. Follow-up: it predates this PR and changes the default green ring, which this PR leaves alone. It can go in with the multi-select ink follow-up as one more selector.

@NoahHendrickson
NoahHendrickson merged commit a4881c2 into custom Nov 26, 2026
33 checks passed
@NoahHendrickson
NoahHendrickson deleted the t3/white-bead-animation branch November 26, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size:M 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.

2 participants