Repository navigation
Description
Out of scope
No generic state engine, provider/storage authority, new plugin seam or wholesale conversion of existing status displays. No implementation of attachment admission/retention/readers or deletion authority here; #3155 owns composer integration and #3231 owns Sessions deletion recovery. Existing StatusDot consumers keep their semantics.
Context
Maintainer ruling on #3155 (2026-11-02): replace the proposed draft-status text line with an animated icon, create a standardized component for places where space is limited, color-code it and provide details on hover/tap. Keyboard and reduced-motion access must preserve the same meaning.
Verified source at issue filing: StatusDot, packages/ui-kit/src/primitives/StatusDot.tsx:36-48, draws a colored optional pulse but has no glyph/detail interaction. IconButton, packages/ui-kit/src/primitives/IconButton.tsx:25-55, supplies a named native control. TranscriptQualifiers, packages/ui-kit/src/conversation/TranscriptQualifiers.tsx:67-105, demonstrates equivalent hover/focus/tap detail access; its evidence-specific vocabulary is not a generic status API. Read the surrounding implementation for its overlay/focus/cleanup behavior. Shared reduced motion is in packages/ui-kit/src/tokens.css:1407-1446; refresh anchors at pickup.
Read docs/decisions/design-kit/components-and-interactions.md (D20, D55), docs/decisions/design-kit/sessions-and-drafts.md (D52), the current #3155 body and docs/decisions/example-corpus.md. D52 currently makes the shared row/pane static. The explicit new animation instruction is a scoped amendment for this compact operation-status component, including its draft consumer, not permission to animate every tracker or row; record that amendment during implementation.
Supplied design and interactive review — maintainer, 2026-11-02
The supplied StatusIndicator design is the current matrix/interaction/API review input. Do not request another generic design or reopen the selected compact-icon/hover-tap direction.
R1 — queued tone: selected A, neutral. Waiting on a known prerequisite uses a neutral tone with a distinct clock glyph and useful details, rather than gold caution. This keeps ordinary waiting calm and reserves caution for attention/unknown facts, accepting reduced visual prominence for pending work. Queued does not imply saved or successful; exact-acknowledgement requirements, consumer evidence and at-risk leave/recovery guards remain active.
R2 — draft-success visibility: selected A, persistent while the acknowledged draft remains nonempty and unchanged. Keep the static teal checkmark available for inspection instead of hiding it a few seconds after saving. Editing text/file bindings immediately invalidates that saved indication until the exact new revision is acknowledged. Hide the indicator for an empty draft while reserving its layout slot. This favors ongoing saved-state reassurance at the cost of a small persistent icon; no timer may manufacture success or preserve an outdated saved claim.
R3 — selected A: approve the shared status specification for implementation. The matrix, interaction, consumer-supplied data/actions and multi-operation presentation below are approved, incorporating R1 neutral queued tone and R2 persistent exact-acknowledgement success. The supplied design/mocks are layout references governed by this current specification; ordinary implementation/browser/accessibility proof remains required, not an unanswered design choice. Remove needs: decision and add agent-ready because no other prerequisite label remains. Runtime integrations stay with #3155/#3231, so their unfinished host contracts do not block this presentational component's fixture-driven implementation.
Scope
Design and implement one public ui-kit component, working name StatusIndicator, for compact operation state with a meaningful glyph/color and bounded activity animation. Selected consumers: acknowledged draft saving in #3155 and compact persistent Sessions deletion recovery in #3231. Demonstrate both in stories; their runtime integrations remain owned by those consumer issues. The component consumes host-supplied state/labels/details; it does not infer successful storage from elapsed time or animation.
Acceptance criteria
- Queued status uses the selected neutral tone and distinct clock glyph, with details explaining the known prerequisite. Keep unknown/attention/failure distinguishable; queued is not saved/success and never clears consumer recovery/leave guards by itself.
- A compact icon is the normal presentation, replacing a mandatory persistent status line in the draft consumer. Color and glyph/shape together distinguish active work, confirmed success, attention/offline/unknown, failure/refusal and appropriate idle states; do not encode meaning by color or motion alone. Reuse existing semantic kit tone tokens in both themes; unknown/unacknowledged is never success.
- Animate actual active/pending work using the kit's bounded activity treatment, not idle/saved/error states. Reduced motion provides a static, equally meaningful glyph, and state details remain available. No fabricated percentages or repeated animations implying fresh activity.
- Provide readable details on hover and keyboard focus; tap/click/Enter/Space opens persistent details through existing kit interaction/overlay conventions. Do not rely on a native title or hover alone. Show the state, useful reason/evidence/freshness where relevant and available recovery actions supplied by the consumer. Status activation reveals details, not an implicit retry/save/delete or other effect.
- Use a native focusable named control with an effective 44px touch target, no overlap with adjacent controls, Escape/dismiss behavior and reliable focus return. Keep hover details reachable/dismissible and within the viewport at 320px/text enlargement. State changes while details are open remain accurate; announce meaningful state transitions politely without per-frame/progress spam.
- Keep the draft consumer's static teal saved checkmark while the exact acknowledged draft remains nonempty and unchanged; do not hide it after a timer. Text/file edits invalidate saved immediately until the new exact revision/bindings are acknowledged. An empty draft hides the indicator but retains its slot.
- Document the presentational API/state vocabulary, truthful unknown cases and consumer responsibility for authoritative evidence. ui-react: offer a generic file picker with honest attachment lifecycle states #3155 may show saved only after acknowledgement of the exact text revision and original-file bindings. Its pending/refused/offline/unknown details preserve at-risk leave/recovery behavior. A compact icon must not swallow required action controls or falsely clear a blocking failure.
- Keep existing supported kit consumers compatible. Publish any new export additively with authoritative API/integration-contract updates and the appropriate minor changeset; load the release skill before changing the shipped API. Record the scoped animation/design ruling and chosen alternatives in the relevant design-kit records.
- Implement the approved R1/R2/R3 matrix, interaction and presentational API below, using the supplied phone/desktop mocks as layout references. Design review is complete for this scoped component; no
needs: decisionorneeds: designremains. Addagent-ready; real browser/accessibility/API proof is implementation work, not claimed completed by design approval.
Verification
Use keyless Odysseus fixtures, component/API checks and pinned actual-browser tests for hover/focus/tap/keyboard equivalence, persistent-detail dismissal/focus, touch-edge hit testing, dynamic state/reason changes, unknown versus success, both themes, 320px/desktop, text enlargement and reduced motion. Prove named mutations for lost keyboard/tap details, false success or broken reduced motion fail the intended assertions, restore and rerun. Run affected checks and required PR preflight; no external accounts/network are needed.
Contract impact
Planned additive public ui-kit component/props, contract documentation/API report and minor changeset during implementation. No current API is changed by filing. Wanted unscheduled work, priority p2; no release milestone selected. Referenced by #3155 and #3231 for consumer integration; this shared kit task remains standalone rather than being attached to an unrelated epic.
Design deliverable
The supplied design and the approved specification below complete the concrete design deliverable. Implement it with the linked phone/desktop dark/paper mocks as layout references and the stated real-browser cases; do not request another generic design or reopen the selected icon-versus-persistent-line, queued-tone or success-visibility choices. No implementation, pixel baseline or browser proof is claimed by this approval.
Second selected consumer — #3231 (maintainer, 2026-11-02)
The maintainer selected B: use this component for incomplete/unconfirmed chat-deletion recovery in Sessions. The indicator must remain discoverable after the chat row disappears and restore across reload until resolution. Tap/keyboard details expose safe state/remaining-store facts and authorized Check or Retry; hover/focus offers useful details. Opening details is not the action. Animate only actual activity, distinguish unknown from success and preserve current principal/operation identity. #3231 owns the host receipt/reconciliation/actions and non-content-only retention; this component does not infer deletion, retain titles/transcripts or introduce replay authority.
Add the selected recovery consumer to the design/state matrix and stories without a second status-component implementation or a broad migration. Exact operation facts and reasons are supplied by the owning consumer. R3 approves this consumer's presentational matrix as part of the shared specification; #3231 still owns its actual host reconciliation/integration. No separate design prerequisite remains on this shared component and no policy interview needs repeating.
2026-11-02 interactive queued-tone ruling: R1 A, neutral with a distinct clock glyph/details for ordinary prerequisite waiting. R2/R3 remain open; no whole-design approval, implementation, runtime evidence or release commitment is claimed.
2026-11-02 interactive success-visibility ruling: R2 A, persistent static teal saved checkmark while the exact acknowledged draft remains nonempty and unchanged. Edits invalidate it immediately; empty drafts hide it with the slot retained. R3 review remains open. No whole-design approval, implementation, runtime proof or release commitment is claimed.
Approved implementation specification — maintainer, 2026-11-02 (R3 A)
State, glyph, tone and motion
| State | Existing Icon key | Tone | Motion and meaning |
|---|---|---|---|
| active | loading | amber | Breathe while the consumer reports actual ongoing work |
| queued | later | neutral | Static; waiting on a known prerequisite, not success |
| success | finished | teal | Static; authoritative confirmation supplied by the consumer |
| attention | attention | gold | Static; known recoverable limitation such as offline/paused |
| unknown | unproven | gold | Static; outcome unconfirmed, never success |
| failed | stopped | red | Static; known failure |
| refused | unreachable | red | Static; known refusal, not inferred from a lost reply |
| idle | withdrawn | neutral | Static; no pending work; consumer may hide it |
Only active animates using the existing kit breathe treatment (2 seconds); do not restart it on progress events/re-renders. Reduced motion keeps a fully legible static active glyph and equivalent names/details. No elapsed-time transition can produce success or fresh evidence. Consumers own freshness and can supply unknown; this component is not an evidence timer/state engine. Preserve the scoped D52 animation amendment for this component and its selected consumers only.
Interaction, details and accessibility
- A 20px semantic glyph sits in a native named button with a 44px effective target. Adjacent targets cannot overlap. At 320px/200% text, allow the model label/details to wrap without hiding buttons or required recovery actions.
- Hover after 300ms or keyboard focus exposes the same useful summary in a hoverable/dismissible tooltip. Use the existing qualifier interaction pattern: viewport clamping, flip above/below as needed, Escape dismissal without moving focus and cleanup on unmount. No native-title-only explanation.
- Click/tap/Enter/Space opens persistent details using the existing Overlay dialog behavior: phone sheet presentation, desktop dialog. Initial focus goes to the details heading. Close/Escape/scrim follows existing topmost-overlay dismissal and returns focus to the trigger, with the consumer's returnFocus fallback if it vanished.
- Opening details has no storage, network or recovery effect. Any Check/Retry/Delete/other effect is a separate consumer-supplied named button and preserves that consumer's current authority/identity checks.
- Details show heading, state glyph/word, useful summary/explanation, key/value facts and each operation's own actions. Keep content accurate during updates; do not repeatedly focus the heading or displace an action the user is using. One coherent polite announcement path reports meaningful state changes without duplicate overlay/trigger messages or per-progress spam. Dedupe/coalesce routine updates without swallowing new attention/unknown/failure/refusal states.
- Accessible name describes consumer label, current state and Details, with expanded/dialog association. Color/motion never carries meaning alone. State/fact text wraps and details remain inside the viewport in both themes.
Multiple operations and presentational API
The proposed additive StatusIndicator accepts label, summary, title, operations and an optional returnFocus callback. Each operation carries its stable consumer id, state, stateLabel, optional explanation, key/value facts and ReactNode actions. Operations and all authority/evidence/persistence remain consumer-owned. This is the API shape to implement/document, not permission to create an operation service or change existing StatusDot semantics.
Derive the display priority/count only: refused → failed → unknown → attention → active → queued → success → idle. Show a count for two or more operations and list every operation separately in persistent details. A priority glyph never implies all operations share that outcome; summary/details preserve mixed unknown/failure/activity facts, and action identity cannot follow an array index or previous principal. An empty list is idle/hidden, not success.
Consumer matrix and layout references
Draft (#3155): icon after Attach and before the model label; held/returned-card indicators bind to that exact snapshot, including the selected multi-card design. A save in flight is active; uploading/awaiting admission is queued; offline is attention; lost acknowledgement is unknown; known file failure is failed; known space/admission refusal is refused. Show success only for the exact acknowledged text/file revision, keep it visible while nonempty/unchanged, invalidate immediately on edits and hide an empty draft with its slot retained. Keep existing at-risk leave/recovery guards. Consumer code owns all these mappings.
Deletion recovery (#3231): one Sessions-header summary, beside drawer close below 1280px and in the pane header at/above it, independent of removed chat rows. Facts are safe non-content operation facts only; no retained deleted title/transcript. Each operation's Check is read-only and Retry is authorized known remaining cleanup. The consumer owns receipt/persistence/principal clearing and the selected immediately closable 10-second checking presentation; this kit component does not implement it or infer retirement/completion.
Stories: both selected consumers plus a generic queued → active → success / unknown upload/sync example without product wiring. The supplied phone/desktop/matrix mocks are the reviewed layout input; apply the current state/interaction rules rather than treating every mock caption as runtime proof. At 320px show the compact composer icon and a readable bottom-sheet detail surface; on desktop show focus summary and persistent dialog. Both dark and paper use existing semantic tokens, wrapping facts and visible focus.
Source-qualified implementation notes and required proof
Source rechecked in this checkout at f7eb0e4: Icon has every selected semantic key; StatusDot supplies existing semantic tone/breathe precedent; TranscriptQualifiers supplies the native no-title composite trigger and tooltip/Overlay pattern. IconButton currently always emits a native title: do not assume an unsupported title-disable prop exists, change existing consumers or use it unchanged if it violates this component's no-native-title interaction. Compose a named native control through the established kit composite-control pattern. Overlay already supplies modal focus/dismissal; reuse it rather than inventing another overlay.
The shared reduced-motion keyframe can remain technically present while constant: prove no changing visual motion and unchanged legible glyph/name, rather than incorrectly asserting that the animation-name must disappear. Keep one actual announcement path and preserve action focus during updates. These are source/correctness clarifications inside the approved specification, not missing product choices.
Use actual pinned-browser tests for hover/focus/tap/Enter/Space equivalence; tooltip Escape/clamping/hover reach; persistent-detail dismissal/focus fallback and updates; distinct unknown versus success in both themes; reduced motion; 44px edge hit-testing with neighbouring controls at 320px/200% text; no effect on opening; and independent actions/summary/count for mixed operations. Mutate false success, lost keyboard/tap details, running visual motion or an effect-on-open, observe the named assertion fail, restore and rerun. Preserve complete browser descriptors and keyless/offline fixtures. Run relevant component/API checks and required preflight; add authoritative contracts/API reports/minor changeset and the scoped existing decision-record amendments during implementation.
2026-11-02 final shared-component ruling: R3 A, approve this specification for implementation with R1 neutral queued tone and R2 persistent exact-acknowledgement success. All design decisions on this issue are resolved; remove needs: decision and add agent-ready because no other needs label remains. Component runtime/browser/API proof and consumer integration remain future delivery work; no release milestone or implementation success is claimed by this tracker review.
Activity
schlessera commentedon Nov 2, 2026
The maintainer selected a compact animated, color-coded operation-status component with hover/tap details while reviewing #3155. Its state meaning and first consumer are settled; the exact glyphs, motion, detail surface and focus behavior need a reviewed design before implementation.
schlessera commentedon Nov 2, 2026
Second consumer selected (maintainer, 2026-11-02; #3231): compact persistent Sessions recovery indicator for incomplete/unconfirmed deletion, with hover/tap details and explicit authorized Check/Retry. Include it in the existing design prompt/matrix/stories alongside #3155 draft saving. It survives row removal/reload until resolved; actual host state/actions and principal-bound reconciliation stay with #3231. The deletion decision forbids surviving titles/content, so generic component details must not retain them. Do not infer host retirement from a local fence or make opening details trigger deletion/retry. This is reuse of the same component, not a new state engine. Retain
needs: design; no implementation or release is claimed.schlessera commentedon Nov 2, 2026
Design brief:
StatusIndicatorThis answers the design prompt and the second-consumer note. The direction (compact, animated, colour-coded, hover/tap details) is settled and not reopened here.
It's a composition of existing kit parts:
Icon(existing semantic keys only), theTranscriptQualifiershover/focus/tap pattern,Overlay variant="dialog", thebreathekeyframe, and Receipt-style key/value facts. No new icon, keyframe or overlay.Sources at
b228b1f:StatusDot.tsx,TranscriptQualifiers.tsx(tooltip delay, Escape, viewport clamp, focus return),Icon.tsx(the D52 ringed working-session family).1. State vocabulary
Every state has a distinct glyph, so neither colour nor motion carries the meaning alone. Tones are the existing
StatusDotsemantics: amber = acting, teal = ok, gold = caution, red = failed, neutral = idle.stateactiveloading(open ring)breathe2 s on glyph opacityqueuedlater(clock)successfinished(ring ✓)attentionattention(ring !)unknownunproven(dashed ring)failedstopped(ring ✕)refusedunreachable(ring ⁄)idlewithdrawn(ring −)Motion (scoped D52 amendment, recorded at implementation):
activeanimates, and only for this component and its two consumers. No other tracker or row changes.successappears without any animation.prefers-reduced-motion, the glyph is static. The open-ringloadingglyph still reads as "in progress", and the details stay the same.unknown. Elapsed time never producessuccess.Several operations (Sessions): the indicator shows the worst state, in the order refused › failed › unknown › attention › active › queued › success, plus a count when there are 2 or more.
2. Interaction
role="tooltip") with the one-sentencesummary. Hoverable, clamped 16px inside the viewport, flips below when there's no room above. Escape hides it without moving focus.Overlay variant="dialog"(a bottom sheet at phone widths, as the Overlay already does). Initial focus is on the heading.returnFocus().Details content:
title).summaryor a longerexplanation).If the state changes while details are open, the content updates in place and the heading keeps focus. The state line is
role="status".Announcements: one polite live region per indicator. It speaks only when
statechanges, debounced 1 s, never on progress or summary-text changes.active → activestays silent. Enteringattention,unknown,failedorrefusedalways speaks.Touch target:
<button>with a 44×44 box. The visual size is 20px; the effective target is 44px.Accessible name:
{label}: {state word}. Details.(for example Draft: couldn't confirm saved. Details.), witharia-haspopup="dialog"andaria-expanded. Nativetitleis never used.3. API proposal (additive, presentational)
statemust come from authoritative evidence. The component derives only the worst state and the count. It infers nothing from time, animation or the order of responses.StatusDotstays as it is, and no existing consumer migrates.4. Consumers
#3155: draft.
successonly when the host acknowledged this exact text revision together with its original-file bindings.queuedwhile files are uploading or not yet admitted.activewhile a save request is in flight.attentionwhen offline.unknownwhen the acknowledgement was lost.failedwhen a file wasn't stored.refusedwhen the draft hit the space or admission limit.successand hidden.#3231: deletion recovery.
Check nowis a read of the receipt.Retry removalis the authorized retry of known remaining cleanup. Both stay separate from opening details.Third story: a generic upload/sync example (
queued → active → success, thenunknown) with no product wiring.5. Browser acceptance (pinned real browser)
returnFocus().statewhile details are open: the content updates and exactly one polite announcement fires. 20 progress updates inactiveproduce no announcements.unknownandsuccessrender different glyphs and accessible names in both themes. A test fixture with no evidence never showsfinished.Mutations (each must fail):
finishedforunknown: case 4.Review asks
successvisibility. The teal ✓ stays while the draft is non-empty (proposed). The alternative is to hide it a few seconds after saving, which would bring back the "is it saved?" doubt.Design file:
Status Indicator 3281.dc.html.schlessera commentedon Nov 2, 2026
Decision (maintainer, 2026-11-02): R1 A — use a neutral tone for queued status. A distinct clock glyph and details explain the known prerequisite. This keeps ordinary waiting calm and reserves caution tones for attention/unknown facts, accepting that pending work is less visually prominent than gold.
Queued never means saved/success; authoritative evidence, exact-revision/file-binding acknowledgement and at-risk leave/recovery guards remain the consumer's responsibility. Folded the choice into the body and acceptance criteria. R2 draft-success visibility and R3 matrix/interaction/API review remain open, so retain
needs: decisionfor now. The concrete design has been supplied; no generic replacement proposal, whole-design approval or runtime proof is claimed.schlessera commentedon Nov 2, 2026
Decision (maintainer, 2026-11-02): R2 A — keep the static teal saved checkmark while the acknowledged draft remains nonempty and unchanged. Do not hide it a few seconds after saving. This keeps saved-state reassurance inspectable, accepting a small persistent icon.
Editing text/file bindings invalidates saved immediately until the exact new revision and bindings are acknowledged. An empty draft hides the indicator but retains its layout slot. Timers never infer success or retain a stale saved claim. Folded the choice into the body and acceptance criteria. R3 matrix/interaction/API review is still open, so retain
needs: decisionfor now. No whole-proposal approval, runtime evidence or release commitment is implied.schlessera commentedon Nov 2, 2026
Decision (maintainer, 2026-11-02): R3 A — approve the shared StatusIndicator specification for implementation. This incorporates R1 A (neutral queued clock) and R2 A (static teal saved checkmark while the exact acknowledged draft remains nonempty/unchanged).
Approved: distinct state/glyph/tone matrix; only actual active work breathes with static reduced motion; equivalent hover/focus summary and persistent tap/click/keyboard details; existing phone sheet/desktop dialog, dismissal/focus return; separate consumer-authorized action buttons with no effect on opening; consumer-owned authoritative states/facts/actions; and multiple-operation priority/count with individually targeted details. Folded the concrete specification, consumer mappings, source corrections and browser/mutation proof obligations into the body. The supplied mocks are layout references, not runtime evidence.
All current decision/design questions are answered. Remove
needs: decisionand addagent-ready: no other needs label or actual component prerequisite remains. #3155/#3231 own their host integration; their unfinished runtime does not block this presentational component's fixture-driven implementation. Preserve additive contract/API/minor-changeset and scoped D52 decision-record obligations during delivery. No implementation, completed runtime/browser proof or release commitment is claimed.schlessera commentedon Nov 3, 2026
Claiming for implementation (claim token
si-3281-7d3ea73). Branch:feat/3281-status-indicatorfromorigin/mainat 7d3ea73. Scope: the R1/R2/R3-approved presentationalStatusIndicatorplus ui-kit stories only; consumer wiring remains with #3155/#3231. Collision report: path overlap with #3466 onpackages/ui-kit/src/tokens.cssonly; the rest are closure overlaps.schlessera commentedon Nov 3, 2026
Implementation is up as draft PR #3471 (head
0dbf7e9f4), with milestone 0.45.0 on both the PR and this issue. It contains the presentationalStatusIndicatorwith the approved R1/R2/R3 matrix, interaction and API, plus ui-kit stories for the draft (#3155) and deletion-recovery (#3231) placements and a generic sync example. Consumer wiring stays with those issues.Proof so far:
check:prpassed (receipt in the PR body), unit and API tests, and pinned-Chromium browser tests (18 visual, 6 rail-pointer targets, 32 story cases in both themes). Seven named mutations each failed their intended assertion and were restored. Review captures at 320 and 1280px in both themes are attached to the PR.Remaining: hosted candidate confirmation and merge. I'm releasing my claim; the open PR carries the work.
CONTRACT: feat(ui-kit): add StatusIndicator, a compact operation stat…