Skip to content

test(desktop): enumerate failure and edge states for high-traffic surfaces #3944

Description

@Astro-Han

Problem

Storybook is where a surface's states become simultaneously visible, and most of ours are not in it: 27 files with stories against 189 product .tsx.

Depth is not the problem — 195 story variants across those 27 files, with settings-pages at 42, module-hubs 29, app-shell 24, session-workbar 23. The gap is breadth.

Three findings already report the same shape from different angles:

The states that never appear in normal use are the ones that never get tuned: empty, failed, loading, offline, unauthorised, very long text, very many rows.

Desired outcome

Not a repo-wide sweep. Take the surfaces #3893 already names and add stories for each one's failure and edge states, so both this gate and the a11y audit have something to run against. One surface per PR.

Open question for the thread: whether "a new surface enumerates its failure states" joins the review baseline, or stays a per-surface judgement. Better decided after the first few land.

AI use: Claude Code assisted with source and issue investigation; the analysis and conclusions are my own.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions