ui-kit: oc-callout variant vocabulary gap — base layer defines only --warning; --warn/--ok/--bad are hand-rolled per component #346
Labels
No labels
agent-blocked
agent-working
autopilot
bug
deferred
deploy-pending
enhancement
landing-pr
model-haiku
model-opus
model-sonnet
needs-design
needs-info
needs-triage
no-triage
out-of-scope
priority
ready-for-agent
ready-for-human
ready-for-session
rehearsal-183
snapshot-pending
standing-drive
wayfinder:grilling
wayfinder:map
wayfinder:prototype
wayfinder:research
wayfinder:task
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Matou/idss#346
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Gap.
packages/ui-kit/src/baseLayer.cssdefines.oc-calloutand a single variant,.oc-callout--warning. But app components use a wider vocabulary —oc-callout--ok,oc-callout--warn,oc-callout--bad(e.g.JoinWithCodeScreen.vue,DeclinedScreen.vue,FoundingAccess.vue) — each carrying its own local.oc-calloutstyle block to paint variants the kit never defined. Two spellings of the same tier (--warnvs--warning) coexist.Why it matters. The wireframes'
.covocabulary (ADR 0122: interiors are the visual contract) has exactly three postures — accent (default),warn,bad— and the kit should own all of them once, in tokens, so they re-theme with a community's palette and every screen renders the same tier the same way. Today a screen's callout look depends on which component you're in.Fix sketch.
--ok,--warn/--warning(pick ONE spelling, migrate the other), and--badintobaseLayer.css, derived from--oc-status-healthy/--oc-status-warning/ the destructive treatment the kit rules (nb: the kit deliberately compiles no destructive colour of its own today — baseLayer's step-status comment — so--bad's paint needs that ruling honoured or extended)..oc-calloutblocks that only re-implement variants..oc-calloutvariant definitions; both light/dark and a re-pointed community palette render all three tiers correctly.Found during the S12 design-verify arc (merge
df66d03).Done in commit
234f75a(onorigin/main).The kit now owns the callout posture vocabulary once (
packages/ui-kit/src/baseLayer.css):--ok(from--oc-status-healthy),--warn(from--oc-status-warning— the ONE spelling),--bad(from the warning token too, honouring the kit's standing no-destructive-colour ruling — the same tier.oc-check--failedwears), and a neutral--muted(from--oc-ink-soft). Each recolours the strip and its tint from a single status token viacolor-mix, so a re-pointed community palette re-themes every screen; each posture setsborder-color, so it recolours whichever edges a screen draws (the kit's left strip or a screen's full border).Root cause found & fixed: a Vue
<style scoped>selector out-specifies the kit variant, so a screen that leaned on the kit alone painted the WRONG tier — which is exactly why every screen hand-rolled its own variant. Deleted every per-component.oc-calloutvariant block and stripped colour from the scoped bases so the kit's variant wins (kept genuine local layout).Collisions migrated:
FoundingAccessverdict-unknown--warn→--muted(DDR 0139: never amber);BackupsOverviewScreen--limit→ the default accent callout (honest-limits voice);PendingDevicesSurface--muted→ kit--muted;ThisComputerScreen/UpToDateScreenbase-recolours →--ok;--warning→--warnacross the Founding screens.Acceptance met: grep shows no component-scoped
.oc-calloutvariant definitions; the tiers derive from tokens so they re-theme in light/dark and under a re-pointed palette. Pinned bypackages/ui-kit/tests/unit/baseLayer.test.ts(posture vocabulary +--warninggone) and new source-scan guardsapp/tests/unit/calloutVocabulary.test.ts+dashboard/tests/unit/calloutVocabulary.test.ts. ui-kit 109 + dashboard 981 green; app green but for the pre-existinggo-on-PATHboot.test.tssuite (environment, unrelated).