Skip to content

State-machine chip dot is invisible when an option has no colour (bare HSL triple), and the #35911 scan pins only the destructive tokens #35962

Closed

Description

@objectstack-fleet

repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

Found by area b1-DB while building #35911 (PR #35961, dev report 7053546276). Same defect family as #35911 item 1, outside that card's scope.

What the user sees

In the metadata viewer's state-machine panel, each state chip shows a small coloured dot. When the picklist option has no color, the dot should fall back to the muted grey. It shows nothing instead: the chip has an empty gap where the dot should be.

Cause

ui/packages/components/src/renderers/basic/metadata-viewer.tsx:290 sets backgroundColor: color ?? 'var(--muted-foreground)'. The theme stores --muted-foreground as a bare HSL triple (215.4 16.3% 46.9%), so the value is not a colour and the browser drops the declaration. The fix wraps it: hsl(var(--muted-foreground)).

To do

  1. Wrap the fallback in hsl() at metadata-viewer.tsx:290.
  2. Widen the source scan that Red error and danger colours: two places use an invalid colour value, one flow preview stays dark red on the dark theme, and the light-theme Delete is below the contrast floor #35911 adds (destructive-colour-spelling-35911) from the destructive tokens to every token the themes store as a bare triple, so any raw var(--<triple token>) used as a colour value fails the test. The token list should be read from the theme blocks, not typed by hand, so a new token is covered without editing the test.
  3. Fix whatever else the widened scan finds in the same PR, or list it on this card if it is not a colour bug.

Acceptance

  • A state chip whose option has no colour shows the grey dot in light and dark themes.
  • The widened scan fails when the wrap is reverted, and passes on the fixed tree.

Blocked-by: #35961 (the scan this card widens lands there).
Reader: area:ux (ui/packages/components).

Activity

  1. added
    bug
    priority:p2
    pm:queue
    domain:ui
    on Nov 20, 2026
  2. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:ui · pm:queue; rationale: area:ux · Bug · the metadata viewer's state-machine chip dot falls back to var(--muted-foreground), a bare HSL triple, so an option with no colour shows no dot; the #35911 scan pins only the destructive tokens; same family as #35911 → p2 as filed (UX rule) · size XS.

  3. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#1 · os-sales · session_01L6bhgUkbQqRUUFSiu2HGob

    Claim: PM loop · 2026-11-21T01:40Z
    Area: b1-DB
    Session: session_01L6bhgW85kwjGaz7HqsmEuv (area b1-DB, session 2; its os-dev subagent runs under the same session)
    Account: os-sales
    Branch: claude/issue-35962-triplet-token-scan
    Seat: repo:objectstack#1
    Domain: domain:ui
    File surface: ui/packages/components/src/renderers/basic/metadata-viewer.tsx and ui/packages/components/src/__tests__/destructive-colour-spelling-35911.test.ts (widened to every bare-triple token read from the theme blocks), plus any same-family misspelling the widened scan finds.
    Container & model: S (XS), mode:subagent, model: opus, effort: medium
    Clause-②: no
    Metadata-protocol: none
    Premise: re-read on main 9ed18a50 by the area: holds. Unblocked by #35961 (merged 9ed18a5).
    Basis: card #35962 (seat-filed from #35961's dev report). Under the maintainer's 2026-11-20 22:31Z–22:32Z order (bugs derived from the record-page / list-page epics, p1 and p2 bugs only).
    Resume-from: none
    Fold-or-serial: serial, after #35943 or #35933 frees a slot; no fold. The PR carries Fixes #35962.

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:uipm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions