observability: ui-kit-telemetry-primitives — OcGaugeRing, OcResourceBar, OcStatusDot and the one statusGrades module #799
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.
Blocks
Depends on
Reference
Matou/idss#799
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?
Parent
Feature spec: #769 — control-panel observability child spec: device telemetry (P9) (DDR 0202).
Design ticket #759; slice-map fan-in #770; wayfinder map #7.
Slice
ui-kit-telemetry-primitivesofdocs/slices/observability.yaml; covers spec #769 stories 33–37.What to build
The arc's shared root: three kit primitives and one status-grading constants module,
minted once so five observability surfaces cannot drift into five definitions of "high".
OcGaugeRingis ther=15.9dasharray-as-percentage donut at 64px (anullpercentage renders—, never0; astalestate mutes the stroke over whatever the percentage would otherwisegrade).
OcResourceBaris the 48×7 track with a tabular-nums readout that bolds on bad.OcStatusDothas three tones and its off state is muted, not a fault — presence and urgencystay different ideas. The
statusGradesmodule holdsRESOURCE_WARN_PCT60,RESOURCE_BAD_PCT80,CERT_WARN_DAYS30,CERT_BAD_DAYS14 and the grade→token map, andthe no-red rule is encoded there once: both
warnandbadpaint from--oc-status-warning, with bad told apart by emphasis and copy, never by a third hue.Consumed downstream by
ui-kit-logs-screen(#791,OcStatusDot) anddashboard-network-surface(#792,
OcStatusDot+ the cert-day constants). Not consumed by #793 or #796 — both specsrefuse it in their own words, so no edge is drawn to them (slice-map ruling 1).
Acceptance criteria
OcGaugeRingwith{ pct, label, state }, when it renders, then it is an SVG donut withviewBox="0 0 36 36",r="15.9",stroke-width="4",stroke-linecap="round", rotated −90°, andstroke-dasharray="<pct> 100"— the circumference ≈ 100 so the dasharray reads directly as a percentage.pct: null, then the ring renders—over a bare track — never0; and givenstate: 'stale', then the value stroke mutes to--oc-lineand the value text to--oc-ink-softregardless of what the percentage would grade.OcResourceBarwith{ pct }, then it renders a 48×7px track on--oc-fillat radius 4 filled from the grade map, with a monoNN%readout ≥0.8rem infont-variant-numeric: tabular-nums; a bad grade additionally bolds the readout in the warning ink; andpct: nullrenders—alone.OcStatusDotwith{ tone: 'healthy' | 'warning' | 'muted' }, then it renders a 9px round dot in--oc-status-healthy/--oc-status-warning/--oc-ink-softat reduced opacity; and given an absent or off subject, then the muted tone is used — deliberately not a fault colour.statusGradesmodule, then it exportsRESOURCE_WARN_PCT = 60,RESOURCE_BAD_PCT = 80,CERT_WARN_DAYS = 30,CERT_BAD_DAYS = 14and the grade→token map, withok → --oc-status-healthyand bothwarnandbad → --oc-status-warning.warnandbadrespectively — the boundaries are asserted.Blocked by
shell:ui-kit-mount-slot-contract(#29 — done, satisfied)Task manifest
Emitted by
/to-ticketsoverdocs/slices/observability.yamlin an unattended session under ADR 0174 (two-way-door posture — Ben's veto is asynchronous, never blocking). Advances #797.swarm-claim host=elitebook-distributed-server-03 run=10077
(automated multi-host claim — lowest live claim id works this ticket)
close-report for #799 — status
success✅ close-report gates passed — every claim verified against main; issue closed.
envelope