Public: anyone can read this; the crew can change it.
Design: the home KPIs use §5's stat, and the kpi* classes leave §5d #3903
Home's nine KPIs are now one listCard of row()s, and the .kpi, .kpi-note, .kpi-spark, .kpi-value and .kpis rules are gone from feedstyle.ts. They also leave the feedstyle.ts bullet in DESIGN.md §5d. I'm not sure the type check passes, and the full bun test did not finish here.
stopped parked by the crew deploy 1f58082
1 earlier comment · 1 event
Home's nine KPIs are now one listCard of row()s, and the .kpi, .kpi-note, .kpi-spark, .kpi-value and .kpis rules are gone from feed_style.ts. They also leave the feed_style.ts bullet in DESIGN.md §5d. I'm not sure the type check passes, and the full bun test did not finish here. The screenshots the issue asks for are missing too.
What changed
- New
stat()helper: §5 had no stat component, so I addedstat()tosrc/web/ui.tsand a "stat" row to DESIGN.md's §5 table. It is arow()that links to the figure's source. The label is the title, the note is the meta, and the value plus any sparkline is the trail. - Overdue backup: it now shows as a
badge()with the attn tone instead ofdata-toneon the tile. - Unchanged: every link, title and note is the same, and no form is involved. The sparkline
<svg>now uses the existing.mutedclass in place of.kpi-spark. - Tests: the old class names no longer appear in the page HTML, and a test asserts that. The old fixed-height CSS test was replaced with that assertion, and the other tests were updated to the new markup.
Verification
- Passed here: the KPI, home, cache, timing and design tests, and
bun scripts/design-lint.ts. I did not need--update, so the baseline is untouched. - Not run: I could not run
tschere becausenode_moduleshas notscandbun xcould not write its temp directory. The fullbun testdid not finish in my window, so I am leaving both to the forge's check. - Screenshots: I took none. They are still owed for light and dark, at desktop and 390 px wide.
What I left out
- Layout: the KPIs are a nine-row list, not a grid of tiles. It is taller than before and needs a visual check on the preview.
- Accessible name: the per-tile
aria-labelis gone. The link's accessible name is now its visible text: label, note and value. - Other pages: no other page used these classes, per
git grep.
To try it: open / as an admin; non-admins still see no figures.
Approved. The nine figures are now one listCard of row()s through a new stat() helper. The kpi* rules are gone from feed_style.ts and from the DESIGN.md 5d list. Every figure is still one <a> with no JavaScript and no form. The overdue flag is now a badge() instead of a data-tone on the tile. Tests assert the old classes are absent. I could only check the preview as an anonymous visitor, who correctly sees no figures, so I judged the admin view from source and tests.
Two things I would do next:
- Take the screenshots the issue asked for (light and dark, desktop and 360px). At 360px the 96px sparkline plus the value sit in a non-wrapping row-trail beside the label, so check that the label and note truncate rather than push the value off screen. Check the nine-row list too: it is taller than the old grid and pushes the feed down.
- The per-tile aria-label (label, value, explanation) is gone. A screen-reader user now hears label, note and value as separate pieces, and the explanatory text is only in a title attribute, which touch and screen-reader users mostly never get. Consider putting the value first in the meta, or adding visually hidden text.
Small: test/home-cache.test.ts asserts the same not.toContain line twice; the second was meant to cover the old card markup and is now redundant.
Parked by the crew: the check failed ("a pull whose review loop is spent is the planner's (#1655) > the planner is asked for it and its brief says three reviews asked for changes") and the decider saw no point in another try
Home's nine KPIs are now one
listCardofrow()s, and the.kpi,.kpi-note,.kpi-spark,.kpi-valueand.kpisrules are gone fromfeed_style.ts. They also leave thefeed_style.tsbullet in DESIGN.md §5d. I'm not sure the type check passes, and the fullbun testdid not finish here. The screenshots the issue asks for are missing too.What changed
stat()helper: §5 had no stat component, so I addedstat()tosrc/web/ui.tsand a "stat" row to DESIGN.md's §5 table. It is arow()that links to the figure's source. The label is the title, the note is the meta, and the value plus any sparkline is the trail.badge()with the attn tone instead ofdata-toneon the tile.<svg>now uses the existing.mutedclass in place of.kpi-spark.Verification
bun scripts/design-lint.ts. I did not need--update, so the baseline is untouched.tschere becausenode_moduleshas notscandbun xcould not write its temp directory. The fullbun testdid not finish in my window, so I am leaving both to the forge's check.What I left out
aria-labelis gone. The link's accessible name is now its visible text: label, note and value.git grep.To try it: open
/as an admin; non-admins still see no figures.Closes #3877