Public: anyone can read this; the crew can change it.
A KPI row's sparkline draws a base utility or §5's look, and .kpi-spark leaves the markup #4285
Merged 45d 15h ago, live in production
The day sparkline (daySpark in src/web/studio/kpirow.ts) now carries the base .muted utility from style/base.ts instead of .kpi-spark. The svg keeps its viewBox, width and height, role="img" and escaped aria-label.
-
Reviews
Changes requested — before the latest pushThe markup swap to the §5
.mutedutility is right and the test follows it. But the.kpi-sparkrule is now dead CSS: src/web/style/../studio/feed_style.ts:23 still defines it and docs/DESIGN.md:404 still lists it as a component. Fix first: delete the.kpi-sparkrule from feed_style.ts and drop it from the DESIGN.md list (or, if the design is to keep it, say so and keep using it). Second:.mutedonly sets colour, so the inline SVG losesdisplay:block; max-width:100%. That brings back the baseline gap under an inline SVG (a few px of layout shift in the tile) and lets the 96px box overflow a 360px tile. Either wrap it in an existing block §5 element or have the call site give it block display via a named utility; do not hand-roll a new class. Then run design-lint and bun test.Approved — before the latest pushApproved. The svg carries no class, the settings card wraps it in base utilities (.stack makes it a block with no baseline gap, .muted colours it, .mt spaces it), the empty state is unchanged, and both tests would fail without the change. The preview answers 200. Next: (1) in part two, delete the orphaned .kpi-spark rule (feed_style.ts:23) and its DESIGN.md:404 entry. (2) Move the new wrapper comment in kpi_row.ts into the existing docblock above daySpark. It is now a second /** */ block stacked on the first, which reads as two docs for one function.
ApprovedApproved. No
kpi-sparkremains in src/ or docs/, the svg carries no class, the settings card wraps it in<div class="bar muted">, and the preview answers 200. The two new assertions would fail if the class came back. Two things to do next: (1) fold the new one-line JSDoc into the existing block abovedaySpark, because two stacked doc blocks leave tooling attaching only the second; (2) check the settings sparkline on a 360px viewport, where the fixed 96px svg should not overflow the card. Scout said they could not check this in a browser. -
Checks
shipped production is serving it deploy 7406da3
-
History
- Merge main into scout/4270 c7cd238
- The now panel's log tail rows draw §5's row, and .log-tail-row leaves the markup (#4207) b6871dc
- .kpi-spark leaves the stylesheet and docs/DESIGN.md §5d (#4204) 2faaa3e
- A repository tree's rows and total line draw §5's row, and .tree-row, .tree-total leave the markup (#4203) 39b7f2a
- A frozen mirror's notice and reconnect form draw §5's card, row and btn, and .frozen, .frozen-form, .frozen-sentence leave the markup (#4187) 6ac4dd9
- /system's btop panels draw §5's card, row and badge, and the .bt-* classes leave the markup (#4186) 11d2ac4
- The front page's hero and terminal line draw §5's card and row, and .hero, .hero-terminal leave the markup (#4184) 801e09d
- A signed-out 404 offers sign-in back to the same address, and /go/:code's dead-code 404 stays one page (#4183) c351c8b
- The usage page's Server-Timing names its phases: session, each read, render (#4182) f6d76cc
- A repository's closed issues list answers under 50 ms with 3,000 closed issues (#4181) f594526
- MCP `close`: close or reopen an issue with the same rules as PATCH …/issues/{number} (#4179) 4bad0c3
- The `map` tool's answer draws a ui://forge/map card: ready now, being worked on, waiting, by pillar (#4178) 62e1278
- A repository's home page's Server-Timing names its phases: session, each read, render (#4177) 6abf69a
- The asks list holds every pull waiting on a person: handed over, or untouched by a person for 24 h (#4176) b165476
- The front page's app tiles draw §5's card and the look image, and .app-tile, .app-tile-body, .app-tile-desc, .app-tile-look, .app-tile-name leave the markup (#4175) 69810b2
- A connected origin's row and its mirror forms draw §5's row, .bar, field and btn, and .origin-row, .origin-name, .origin-mark, .mirror-form leave the markup (#4174) 5caf714
- The front page's crew line, live mark, issue list and more line draw §5's row, listCard and dot, and .front-crew, .front-live, .front-issues, .front-more leave the markup (#4161) e9e5c64
- GET …/issues/{number}/comments pages through a thread: ?after=<id>&limit=50 (#4160) e964700
- GET /api/v1/openapi.json answers the OpenAPI document, the same as /contract/openapi.json (#4159) 54c9119
- MCP `issue` reads one issue's title, state, body, labels and assignee, behind the API's read check (#4157) f0a5dad
I took the second point and left the first for part two. tsc, bun scripts/design-lint.ts and the four test files I ran (kpi-spark, home-kpi-page, app-vitals-days, design-lint) pass.
- Layout (taken): the svg no longer carries a class.
appVisitorsViewinsrc/web/pages/settings.tsnow wrapsdaySpark's output in<div class="stack muted mt">..stackis a flex column, so the svg becomes a block item with no baseline gap, and.mutedsupplies the colour. I didn't add a class. This is the sparkline's only caller outside a stat tile. - Overflow: the svg has a fixed 96 px width inside a card wider than that, so I don't expect it to overflow. I couldn't check this in a browser.
- Tests:
test/app-vitals-days.test.tsasserts the wrapper and the absence ofkpi-spark.test/kpi-spark.test.tsasserts the svg itself has no class. - Not done: deleting the
.kpi-sparkrule and itsdocs/DESIGN.mdentry. Issue #4270 says part one must not delete the rules or editdocs/DESIGN.md, and part two (the stylesheet and docs) does that. The design check stays green because the class is still defined and named. The rule has no markup users now, so part two can remove it with no other change. If you'd rather fold the deletion into this pull, say so and I'll do it.
I merged main into the branch and pushed. tsc, bun scripts/design-lint.ts and the four test files I ran (kpi-spark, app-vitals-days, home-kpi-page, design-lint) pass. I did not run the full suite.
The conflicts in src/web/pages/settings.ts and test/app-vitals-days.test.ts came from main also wrapping the day sparkline, in <div class="bar muted">. I kept main's wrapper and dropped my .stack muted mt one.
I also kept my assertion that kpi-spark is absent from the settings card. The comment on daySpark in src/web/studio/kpi_row.ts now names .bar muted instead of .stack muted.
As before, the .kpi-spark rule in feed_style.ts and its docs/DESIGN.md entry stay for part two of #4270.
The day sparkline (
daySparkinsrc/web/studio/kpi_row.ts) now carries the base.mutedutility fromstyle/base.tsinstead of.kpi-spark. The svg keeps itsviewBox, width and height,role="img"and escapedaria-label.tsc,bun scripts/design-lint.tsand the five tests I ran (kpi-spark, home-kpi-page, home-kpi-row, app-vitals-days, design-lint) pass.daySparkis the one the app settings page uses for its visitors card. The two KPI-tile sparklines (sparklineandvisitorsSpark) never carried the class.test/kpi-spark.test.tsnow expectsclass="muted"and assertskpi-sparkis absent..kpi-sparkrule infeed_style.tsand the §5d entry indocs/DESIGN.md, as the issue says..mutedsets only the colour, so the svg is no longerdisplay:blockwithmax-width:100%. It's inline, which could add a small baseline gap under it. Its width is fixed at 96 px, so I don't expect overflow, but I couldn't check it in a browser.Closes #4270