basalt-ui 2.28.0 → 2.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (229) hide show
  1. package/CHANGELOG.md +461 -401
  2. package/MIGRATING.md +202 -12
  3. package/agent/skills/basalt-app/SKILL.md +3 -3
  4. package/agent/skills/basalt-charts/SKILL.md +1 -1
  5. package/agent/skills/basalt-design/SKILL.md +11 -5
  6. package/agent/skills/basalt-design/references/catalogue.md +3 -1
  7. package/agent/skills/basalt-design/references/recipes.md +1 -1
  8. package/agent/skills/basalt-design/references/states.md +1 -1
  9. package/configs/oxlint-plugin.js +2 -1
  10. package/configs/oxlint.json +1 -0
  11. package/dist/charts/ChartCard.d.ts +9 -5
  12. package/dist/charts/ChartCard.d.ts.map +1 -1
  13. package/dist/charts/ChartCard.js +68 -12
  14. package/dist/charts/Sparkline.d.ts +5 -0
  15. package/dist/charts/Sparkline.d.ts.map +1 -1
  16. package/dist/charts/Sparkline.js +53 -5
  17. package/dist/charts/chart-box.module.css +9 -2
  18. package/dist/charts/chart-card.module.css +16 -13
  19. package/dist/charts/chart-card.module.css.d.ts +2 -0
  20. package/dist/charts/compile.d.ts +1 -1
  21. package/dist/charts/compile.d.ts.map +1 -1
  22. package/dist/charts/compile.js +18 -9
  23. package/dist/charts/ref-label.d.ts +6 -0
  24. package/dist/charts/ref-label.d.ts.map +1 -1
  25. package/dist/charts/ref-label.js +19 -5
  26. package/dist/charts/sparkline.module.css +44 -0
  27. package/dist/charts/sparkline.module.css.d.ts +3 -0
  28. package/dist/charts/state.d.ts +1 -1
  29. package/dist/charts/state.d.ts.map +1 -1
  30. package/dist/charts/state.js +3 -3
  31. package/dist/cli/doctor-upgrade.d.ts +11 -0
  32. package/dist/cli/doctor-upgrade.d.ts.map +1 -1
  33. package/dist/cli/doctor-upgrade.js +54 -0
  34. package/dist/cli/doctor.d.ts.map +1 -1
  35. package/dist/cli/doctor.js +32 -0
  36. package/dist/cli/help.d.ts.map +1 -1
  37. package/dist/cli/help.js +8 -3
  38. package/dist/cli/index.d.ts +13 -13
  39. package/dist/cli/index.d.ts.map +1 -1
  40. package/dist/cli/index.js +36 -2
  41. package/dist/cli/init.d.ts +6 -0
  42. package/dist/cli/init.d.ts.map +1 -1
  43. package/dist/cli/init.js +118 -27
  44. package/dist/cli/router-wiring.d.ts +3 -0
  45. package/dist/cli/router-wiring.d.ts.map +1 -1
  46. package/dist/cli/router-wiring.js +2 -0
  47. package/dist/cli/shot/capture.d.ts +28 -1
  48. package/dist/cli/shot/capture.d.ts.map +1 -1
  49. package/dist/cli/shot/capture.js +77 -7
  50. package/dist/cli/shot/detect.d.ts +4 -1
  51. package/dist/cli/shot/detect.d.ts.map +1 -1
  52. package/dist/cli/shot/detect.js +38 -16
  53. package/dist/cli/shot/index.d.ts.map +1 -1
  54. package/dist/cli/shot/index.js +9 -2
  55. package/dist/cli/shot/measure.d.ts.map +1 -1
  56. package/dist/cli/shot/measure.js +11 -2
  57. package/dist/cli/shot/types.d.ts +4 -1
  58. package/dist/cli/shot/types.d.ts.map +1 -1
  59. package/dist/cli/sync.d.ts.map +1 -1
  60. package/dist/cli/sync.js +10 -2
  61. package/dist/common/could-not-load.d.ts +13 -0
  62. package/dist/common/could-not-load.d.ts.map +1 -0
  63. package/dist/common/could-not-load.js +14 -0
  64. package/dist/common/index.d.ts +1 -0
  65. package/dist/common/index.d.ts.map +1 -1
  66. package/dist/common/index.js +3 -0
  67. package/dist/common/props.d.ts +20 -0
  68. package/dist/common/props.d.ts.map +1 -1
  69. package/dist/common/props.js +13 -1
  70. package/dist/common/retry-button.module.css +7 -3
  71. package/dist/dashboard/bar-list.d.ts +4 -4
  72. package/dist/dashboard/bar-list.d.ts.map +1 -1
  73. package/dist/dashboard/bar-list.js +10 -7
  74. package/dist/dashboard/bar-list.module.css +21 -3
  75. package/dist/dashboard/board.d.ts +2 -2
  76. package/dist/dashboard/board.d.ts.map +1 -1
  77. package/dist/dashboard/board.js +31 -12
  78. package/dist/dashboard/board.module.css +19 -0
  79. package/dist/dashboard/board.module.css.d.ts +2 -0
  80. package/dist/dashboard/empty-state.d.ts +3 -3
  81. package/dist/dashboard/empty-state.d.ts.map +1 -1
  82. package/dist/dashboard/empty-state.js +4 -2
  83. package/dist/dashboard/event-list-model.d.ts +3 -0
  84. package/dist/dashboard/event-list-model.d.ts.map +1 -1
  85. package/dist/dashboard/event-list-model.js +5 -1
  86. package/dist/dashboard/event-list-rows.d.ts.map +1 -1
  87. package/dist/dashboard/event-list-rows.js +2 -6
  88. package/dist/dashboard/event-list-scroll.d.ts +32 -4
  89. package/dist/dashboard/event-list-scroll.d.ts.map +1 -1
  90. package/dist/dashboard/event-list-scroll.js +117 -4
  91. package/dist/dashboard/event-list-skeleton.d.ts.map +1 -1
  92. package/dist/dashboard/event-list-skeleton.js +2 -4
  93. package/dist/dashboard/event-list.d.ts +4 -4
  94. package/dist/dashboard/event-list.d.ts.map +1 -1
  95. package/dist/dashboard/event-list.js +53 -23
  96. package/dist/dashboard/event-list.module.css +90 -37
  97. package/dist/dashboard/event-list.module.css.d.ts +1 -0
  98. package/dist/dashboard/meter-model.d.ts +6 -3
  99. package/dist/dashboard/meter-model.d.ts.map +1 -1
  100. package/dist/dashboard/meter-model.js +9 -4
  101. package/dist/dashboard/meter-parts.d.ts +3 -0
  102. package/dist/dashboard/meter-parts.d.ts.map +1 -1
  103. package/dist/dashboard/meter-parts.js +32 -4
  104. package/dist/dashboard/meter.d.ts +3 -3
  105. package/dist/dashboard/meter.d.ts.map +1 -1
  106. package/dist/dashboard/meter.js +10 -2
  107. package/dist/dashboard/meter.module.css +18 -11
  108. package/dist/dashboard/meter.module.css.d.ts +0 -1
  109. package/dist/dashboard/page-summary.d.ts +3 -3
  110. package/dist/dashboard/page-summary.d.ts.map +1 -1
  111. package/dist/dashboard/page-summary.js +7 -2
  112. package/dist/dashboard/page-summary.module.css +5 -2
  113. package/dist/dashboard/query-state.d.ts +9 -8
  114. package/dist/dashboard/query-state.d.ts.map +1 -1
  115. package/dist/dashboard/query-state.js +28 -10
  116. package/dist/dashboard/section.d.ts +11 -3
  117. package/dist/dashboard/section.d.ts.map +1 -1
  118. package/dist/dashboard/section.js +34 -7
  119. package/dist/dashboard/settings-section.d.ts +4 -4
  120. package/dist/dashboard/settings-section.d.ts.map +1 -1
  121. package/dist/dashboard/settings-section.js +11 -7
  122. package/dist/dashboard/settings-section.module.css +6 -0
  123. package/dist/dashboard/settings-section.module.css.d.ts +1 -0
  124. package/dist/dashboard/stat-card.d.ts +3 -3
  125. package/dist/dashboard/stat-card.d.ts.map +1 -1
  126. package/dist/dashboard/stat-card.js +24 -8
  127. package/dist/dashboard/stat-card.module.css +11 -0
  128. package/dist/dashboard/stat-group.d.ts +2 -2
  129. package/dist/dashboard/stat-group.d.ts.map +1 -1
  130. package/dist/dashboard/stat-group.js +10 -3
  131. package/dist/dashboard/stat-strip.d.ts +5 -4
  132. package/dist/dashboard/stat-strip.d.ts.map +1 -1
  133. package/dist/dashboard/stat-strip.js +41 -31
  134. package/dist/dashboard/stat-strip.module.css +4 -5
  135. package/dist/dashboard/visual-slot.d.ts +4 -0
  136. package/dist/dashboard/visual-slot.d.ts.map +1 -1
  137. package/dist/dashboard/visual-slot.js +2 -0
  138. package/dist/dashboard/widget-header.d.ts +6 -6
  139. package/dist/dashboard/widget-header.d.ts.map +1 -1
  140. package/dist/dashboard/widget-header.js +4 -2
  141. package/dist/dashboard/widget-header.module.css +6 -25
  142. package/dist/format/shared.d.ts.map +1 -1
  143. package/dist/format/shared.js +24 -1
  144. package/dist/guard/index.d.ts +1 -1
  145. package/dist/guard/index.d.ts.map +1 -1
  146. package/dist/guard/index.js +2 -1
  147. package/dist/styles.css +23 -0
  148. package/dist/table/cell-kinds.d.ts +10 -7
  149. package/dist/table/cell-kinds.d.ts.map +1 -1
  150. package/dist/table/cell-kinds.js +18 -7
  151. package/dist/table/data-table-fold.d.ts +13 -5
  152. package/dist/table/data-table-fold.d.ts.map +1 -1
  153. package/dist/table/data-table-fold.js +48 -16
  154. package/dist/table/data-table.d.ts +2 -2
  155. package/dist/table/data-table.d.ts.map +1 -1
  156. package/dist/table/data-table.js +16 -9
  157. package/dist/table/data-table.module.css +74 -2
  158. package/dist/table/data-table.module.css.d.ts +4 -0
  159. package/dist/theme/controls.module.css +23 -2
  160. package/llms.txt +263 -2
  161. package/package.json +1 -1
  162. package/src/charts/ChartCard.tsx +98 -16
  163. package/src/charts/Sparkline.tsx +84 -5
  164. package/src/charts/chart-box.module.css +9 -2
  165. package/src/charts/chart-card.module.css +16 -13
  166. package/src/charts/chart-card.module.css.d.ts +2 -0
  167. package/src/charts/compile.ts +37 -15
  168. package/src/charts/ref-label.ts +36 -9
  169. package/src/charts/sparkline.module.css +44 -0
  170. package/src/charts/sparkline.module.css.d.ts +3 -0
  171. package/src/charts/state.tsx +4 -3
  172. package/src/cli/doctor-upgrade.ts +75 -0
  173. package/src/cli/doctor.ts +36 -0
  174. package/src/cli/help.ts +16 -6
  175. package/src/cli/index.ts +73 -67
  176. package/src/cli/init.ts +157 -36
  177. package/src/cli/router-wiring.ts +2 -2
  178. package/src/cli/shot/capture.ts +109 -10
  179. package/src/cli/shot/detect.ts +46 -22
  180. package/src/cli/shot/index.ts +8 -2
  181. package/src/cli/shot/measure.ts +11 -2
  182. package/src/cli/shot/types.ts +4 -1
  183. package/src/cli/sync.ts +12 -2
  184. package/src/common/could-not-load.ts +22 -0
  185. package/src/common/index.ts +1 -0
  186. package/src/common/props.ts +30 -0
  187. package/src/common/retry-button.module.css +7 -3
  188. package/src/dashboard/bar-list.module.css +21 -3
  189. package/src/dashboard/bar-list.tsx +46 -41
  190. package/src/dashboard/board.module.css +19 -0
  191. package/src/dashboard/board.module.css.d.ts +2 -0
  192. package/src/dashboard/board.tsx +69 -48
  193. package/src/dashboard/empty-state.tsx +5 -2
  194. package/src/dashboard/event-list-model.ts +13 -1
  195. package/src/dashboard/event-list-rows.tsx +3 -6
  196. package/src/dashboard/event-list-scroll.ts +154 -8
  197. package/src/dashboard/event-list-skeleton.tsx +5 -1
  198. package/src/dashboard/event-list.module.css +90 -37
  199. package/src/dashboard/event-list.module.css.d.ts +1 -0
  200. package/src/dashboard/event-list.tsx +92 -65
  201. package/src/dashboard/meter-model.ts +16 -7
  202. package/src/dashboard/meter-parts.tsx +45 -13
  203. package/src/dashboard/meter.module.css +18 -11
  204. package/src/dashboard/meter.module.css.d.ts +0 -1
  205. package/src/dashboard/meter.tsx +36 -18
  206. package/src/dashboard/page-summary.module.css +5 -2
  207. package/src/dashboard/page-summary.tsx +13 -6
  208. package/src/dashboard/query-state.tsx +54 -29
  209. package/src/dashboard/section.tsx +83 -41
  210. package/src/dashboard/settings-section.module.css +6 -0
  211. package/src/dashboard/settings-section.module.css.d.ts +1 -0
  212. package/src/dashboard/settings-section.tsx +11 -6
  213. package/src/dashboard/stat-card.module.css +11 -0
  214. package/src/dashboard/stat-card.tsx +31 -8
  215. package/src/dashboard/stat-group.tsx +22 -14
  216. package/src/dashboard/stat-strip.module.css +4 -5
  217. package/src/dashboard/stat-strip.tsx +29 -20
  218. package/src/dashboard/visual-slot.ts +5 -0
  219. package/src/dashboard/widget-header.module.css +6 -25
  220. package/src/dashboard/widget-header.tsx +8 -5
  221. package/src/format/shared.ts +30 -1
  222. package/src/guard/index.ts +5 -1
  223. package/src/styles.css +23 -0
  224. package/src/table/cell-kinds.tsx +42 -13
  225. package/src/table/data-table-fold.tsx +65 -12
  226. package/src/table/data-table.module.css +74 -2
  227. package/src/table/data-table.module.css.d.ts +4 -0
  228. package/src/table/data-table.tsx +34 -13
  229. package/src/theme/controls.module.css +23 -2
package/MIGRATING.md CHANGED
@@ -32,6 +32,8 @@ catch a shape it cannot rewrite), and it FAILS rather than doing nothing when th
32
32
  it. If you are reading a heading that still says `Unreleased` in an installed tarball, that is a
33
33
  bug, not an authoring slip.
34
34
 
35
+ **Each release's `### Visible without code change` subsection lists what a consumer sees with no edit of its own** (`basalt-ui doctor --from <version>` prints it). Standing for every release: `tokens:css --check` is byte-exact, so it fails after each bump until the sheet is re-emitted; `doctor` prints the command.
36
+
35
37
  **Skipping that step is what this file's worst defect was.** 1.27.0, 1.28.0 and 1.29.0 all shipped
36
38
  under one `## Unreleased` heading — ~1000 lines, two of its subsections still titled "targeting
37
39
  1.29.0" weeks after 1.29.0 was on npm. Four of five consumer migrations off 1.25.0/1.27.0 named it
@@ -66,18 +68,18 @@ There is one row per SURFACE, not per export, and a surface earns a row once any
66
68
  shipped lefthook preset both changed in 1.30.0 with no row that owned them — which is how a
67
69
  consumer read this index, found nothing, and diffed a KPI row that had silently gone 4-up → 2-up.
68
70
 
69
- | Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | 2.2.0 | 2.3.0 | 2.4.0 | 2.5.0 | 2.6.0 | 2.6.1 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.8.0 | 2.8.1 | 2.9.0 | 2.9.1 | 2.10.0 | 2.11.0 | 2.11.1 | 2.12.0 | 2.13.0 | 2.13.1 | 2.13.2 | 2.13.3 | 2.14.0 | 2.15.0 | 2.16.0 | 2.17.0 | 2.18.0 | 2.19.0 | 2.20.0 | 2.21.0 | 2.22.0 | 2.23.0 | 2.24.0 | 2.25.0 | 2.26.0 | 2.27.0 | 2.27.1 | 2.27.2 | 2.28.0 | Unreleased |
70
- | ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
71
- | **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | spacing, radius, type and the dense tier (§ 2.16.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
72
- | **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BandSpan.absentFraction` + `absentState` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `Lines` linear curve, `naming`, no lone-series legend, locale tooltip header, y gutter, `RefLine.labelPosition`, `StackedArea.fillOpacity` (§ Chart chrome) | — | error fallback `The request failed.` (§ State defaults) | — | — | — | — | — | — | — |
73
- | **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltProvider` embedded mode, `spotlight` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | expanded gutter 24 (§ 2.16.0) | — | — | light/outline Buttons ink, no status edges (§ 2.19.0) | — | — | — | — | — | — | — | — | — | — | — | — |
74
- | **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | dense 28 tier at a fine pointer (§ 2.16.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
75
- | **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
76
- | **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltDataTable` error title `Could not load rows` (§ State defaults) | — | — | — | — | — | — | — |
77
- | **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | card inset 12/16, `kpi` 22 / 500 (§ 2.16.0) | — | — | StatCard status dot, Meter/BarList refinements (§ 2.19.0) | — | plain `Meter` value bar fill muted (`tone="ink"` to opt out); `BarList` default `thin`, `variant="default"` → `inline` (§ 2.21.0) | — | — | `LoadingState` section skeleton, page spinner neutral (§ State defaults) | — | — | — | — | — | — | — |
78
- | **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
79
- | **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `doctor`: CSS + forced dropped subpaths, `oxlint-floor`, Start wiring (§ 2.8.0) | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
80
- | **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | `inline-spacing` steps, `card-inset` accepts both pairs (§ 2.16.0) | — | — | — | — | `series-palette` at `warn` (§ 2.21.0) | — | `series-palette` → `error` (§ Guards) | `raw-spacing`, `inline-spacing` → `error` (§ Guards) | — | `basalt/card-inset` → `error` (§ Guards) | — | — | — | — | — |
71
+ | Surface | 1.27.0 | 1.28.0 | 1.29.0 | 1.30.0 | 1.30.1 | 1.30.2 | 1.31.0 | 1.32.0 | 1.32.1 | 1.33.0 | 1.34.0 | 1.34.1 | 1.35.0 | 1.36.0 | 1.36.1 | 1.37.0 | 1.37.1 | 1.38.0 | 1.38.1 | 1.39.0 | 1.40.0 | 1.40.1 | 1.40.2 | 1.40.3 | 1.41.0 | 2.0.0 | 2.0.1 | 2.0.2 | 2.0.3 | 2.0.4 | 2.0.5 | 2.1.0 | 2.2.0 | 2.3.0 | 2.4.0 | 2.5.0 | 2.6.0 | 2.6.1 | 2.7.0 | 2.7.1 | 2.7.2 | 2.7.3 | 2.8.0 | 2.8.1 | 2.9.0 | 2.9.1 | 2.10.0 | 2.11.0 | 2.11.1 | 2.12.0 | 2.13.0 | 2.13.1 | 2.13.2 | 2.13.3 | 2.14.0 | 2.15.0 | 2.16.0 | 2.17.0 | 2.18.0 | 2.19.0 | 2.20.0 | 2.21.0 | 2.22.0 | 2.23.0 | 2.24.0 | 2.25.0 | 2.26.0 | 2.27.0 | 2.27.1 | 2.27.2 | 2.28.0 | 2.29.0 | Unreleased |
72
+ | ----------------------------- | ------------------------------------------------------------ | -------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------- | --------------------------------------------------------------------- | ------ | ----------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------- | ----------------------------------------------------------------------------- | ---------------------------------- | ------ | ------ | -------------------------------------------------------------------------------------------- | ------ | ------ | ------ | ------ | ------ | ----------------------------------------------- | ------ | ------ | ------ | ------ | ------------------------------------------------------------ | ---------- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- | --- |
73
+ | **tokens** (`./tokens`) | — | `--vx-divider` → `rgba()` on both schemes (§ Shell) | `--vx-space-touch-target` added (§ Additions) | eight spacing numbers (§ Chrome) | — | — | `--vx-hit` replaces the touch vars; `SIZE_CLASSES` (§ 1.31.0) | — | `SIZE_CLASSES`/`CONTAINER_CLASSES` actually exported (§ Fixes) | `CONTAINER_GRID_BREAKPOINTS`; `raw-breakpoint` trusts it (§ 1.33.0) | `CONTAINER_KEYS` (§ 1.34.0) | — | — | — | — | — | — | — | | `appShellInset` 20 → 16 (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | spacing, radius, type and the dense tier (§ 2.16.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
74
+ | **charts** (`./charts`) | — | phone tier, `curve`, formatters, `state`, log axis (§ preamble) | `ChartState.empty: string`, `AxisBottomNumeric` (§ Additions) | responsive `height`, `legend.maxRows` (§ Charts) | `height` reaches the kinds; `maxRows` beats the `fill` fit (§ Charts) | — | container-class tier + `height` keys (§ 1.31.0) | — | `ResponsiveChartHeight` `sm` → key (§ Container recipes) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BandSpan.absentFraction` + `absentState` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `Lines` linear curve, `naming`, no lone-series legend, locale tooltip header, y gutter, `RefLine.labelPosition`, `StackedArea.fillOpacity` (§ Chart chrome) | — | error fallback `The request failed.` (§ State defaults) | — | — | — | — | — | — | — | — |
75
+ | **shell** (`.`) | — | scrollport, region seams, **the brand left the sidebar** (§§ scrollport, brand, Shell) | `PageTitle`, `BasaltDevDock`, `useBreakpoint` (§ Additions) | More popover, aside pill, the responsive gutter, `useBasaltSpacing` (§ Chrome) | — | — | `theme.breakpoints` derived, `useSizeClass`, `data-basalt-host`, `useBreakpoint` on notice (§ 1.31.0) | `useBreakpoint` removal → 1.33.0; `useSizeClass` is shell-only (§ 1.32.0) | shell-less `shell/` gutter, `AppShell` breakpoints, `useSizeClass` for overlays (§§ Shell-less, `useSizeClass`) | — | `useBreakpoint` removed (§ 1.34.0) | — | — | `useCoarsePointer()` (§ `useCoarsePointer()`) | — | — | — | — | | content gutter 16, block 8 from `sm` (§ 1.38.1) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltProvider` embedded mode, `spotlight` (§ 2.8.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | expanded gutter 24 (§ 2.16.0) | — | — | light/outline Buttons ink, no status edges (§ 2.19.0) | — | — | — | — | — | — | — | — | — | — | — | — | — |
76
+ | **controls** (`./controls`) | `NumberFilter`, `field.number` (§ Controls) | sheet renders panel rows; `PanelRow`, `SliderControl` (§ `basalt-ui/controls`) | — | — | — | — | — | — | — | `NumberFilter clearable`; `createSearchStore` `resets` (§ State and controls) | — | — | — | `FormSection`/`FormRow`/`FormGroup`/`FormActions` move here (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | dense 28 tier at a fine pointer (§ 2.16.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
77
+ | **forms** (`./forms`) | — | `field` → `inputProps`, **`inputProps` drops `key`**, the layout tier (§ `inputProps`) | `field` DELETED — and the `--fix` recipe no longer works (§ Consolidation) | — | — | — | — | — | `FormGroup` row no longer stretches (§ Fixes) | — | — | — | — | the layout + `useForm`/`schemaResolver` deprecated, removed 1.37.0 (§ The form layout moves) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
78
+ | **data** (`./data/table`) | — | root is a `<div>`, row selection, `getItemKey` required (§ `basalt-ui/data`) | `./data` + `./query` + `./connectivity` dropped (§ Consolidation) | — | — | — | — | — | `renderCard` documented (§ `renderCard`) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `BasaltDataTable` error title `Could not load rows` (§ State defaults) | — | — | — | — | — | — | — | — |
79
+ | **dashboard** (`.`) | `StatCard`: `unit`, `breakdown`, delta format (§ `StatCard`) | `StatGroup`, `WidgetGrid`, query-aware `StatCard` — additive | — | **the column law keys on the CONTAINER; `cols={4}` is 2-up at `sm`** (§ Dashboard) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | card inset 12/16, `kpi` 22 / 500 (§ 2.16.0) | — | — | StatCard status dot, Meter/BarList refinements (§ 2.19.0) | — | plain `Meter` value bar fill muted (`tone="ink"` to opt out); `BarList` default `thin`, `variant="default"` → `inline` (§ 2.21.0) | — | — | `LoadingState` section skeleton, page spinner neutral (§ State defaults) | — | — | — | — | — | — | — | — |
80
+ | **toolchain** (`./configs/*`) | — | — | the shipped lefthook preset's `check-theme` BROKE — the CLI resolver stopped ascending (§ CLI) | the preset's default bin, and the `root:` recipe (§ Toolchain) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
81
+ | **CLI** (`basalt-ui`) | — | — | **resolver stops relocating; `doctor` loses 6 of 10 checks** (§ CLI) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | the managed block moves `CLAUDE.md` → `AGENTS.md` (§ 1.41.0) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | `doctor`: CSS + forced dropped subpaths, `oxlint-floor`, Start wiring (§ 2.8.0) | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — |
82
+ | **guards** | five rules → `error` (§ Guards) | six new ids at `warn` (§ preamble) | `query-dual-import` retired in 1.29.1 (§ Guards) | four rules → `error` (§ Guards) | — | — | — | `raw-breakpoint`: the container-grid answer, `error` at 1.33.0 (§ 1.32.0) | `FormRow`/`FormGroup` homes in both lanes; `basalt-main` dropped (§ Fixes) | C1 + breakpoint pairs → `error`; `unknown-vx-token` `warn` (§ Guards) | — | — | — | `unknown-vx-token` → `error`; the token factories throw (§ Guards) | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | — | § 1.x compatibility layer removed | — | — | — | — | — | — | — | — | — | — | — | `inline-spacing` steps, `card-inset` accepts both pairs (§ 2.16.0) | — | — | — | — | `series-palette` at `warn` (§ 2.21.0) | — | `series-palette` → `error` (§ Guards) | `raw-spacing`, `inline-spacing` → `error` (§ Guards) | — | `basalt/card-inset` → `error` (§ Guards) | — | — | — | — | — | — |
81
83
 
82
84
  ---
83
85
 
@@ -1046,6 +1048,173 @@ The `basalt-ui/router-tanstack` subpath is **removed** in 2.x, not moved: an imp
1046
1048
  _Nothing yet. Author the next section under this heading as `## Unreleased — <title>`; the
1047
1049
  release renames it and opens a new one here._
1048
1050
 
1051
+ ## 2.29.0 — the 2.28 bump friction (Wave 48)
1052
+
1053
+ ### CLI and guards (argo-friction rows 168–179)
1054
+
1055
+ Nothing to change unless a script parses `shot detect` output or runs `oxlint .` inside a checkout that holds agent
1056
+ worktrees.
1057
+
1058
+ - **`oxlint` and agent worktrees.** A `.claude/worktrees/<name>` checkout inside a live one made `oxlint .` fail with
1059
+ "Plugin name basalt is already registered": oxlint loads the worktree's nested `.oxlintrc.json` whatever
1060
+ `ignorePatterns` says. `init` now writes `oxlint --ignore-pattern '.claude/worktrees/**' .` into `lint:basalt` and
1061
+ the CI lint step. **Fix** for an existing app (`sync` does not rewrite scripts): add the flag to every `oxlint .`
1062
+ you run (`package.json`, `make check`, CI).
1063
+ - **`sync` below the repo root** reports the repo root's `lefthook.yml` and `check.yml` as in sync, drifted or absent
1064
+ (read-only) instead of two skip lines on every run.
1065
+ - **`doctor --from <x.y.z>`** prints the guard, token and visible-without-code-change lines of every release after
1066
+ that version, and `doctor` names the re-emit command for a `tokens:css`/`fonts:css` sheet another version wrote.
1067
+ - **Guard messages.** `raw-spacing` lists the scale it wants (`8 → "xs"`, `12 → "sm"` …); `card-inset` names the
1068
+ older `py="xs" px="sm"` idiom as off-idiom.
1069
+ - **`shot`.** A route containing whitespace is refused (zsh does not word-split `$ROUTES`); the `--out` errors name
1070
+ the project dir; `--auto-anchors` falls back to `main`/`section`/`header`/`form` when no Card, Paper or table
1071
+ qualifies; a warning fires when every route renders the same content (a lock screen). **`shot detect`** writes
1072
+ `score: null` and prints "nothing measured" when no anchor resolved (a parser of `detect.json` or `history.json`
1073
+ must accept null), shows the finding count beside each trend score, chains a trend only within one `--out` dir,
1074
+ and names the contrast threshold it applied (`needs 4.5:1 at 22px regular`).
1075
+
1076
+ ### The trial and audit gaps (Wave 49, argo-friction rows 180–189)
1077
+
1078
+ Nothing to change unless a test asserts the old copy or geometry below.
1079
+
1080
+ - **Error titles name the thing.** `StatCard`, a strip cell, `ChartCard` and the data table fall back to their own title
1081
+ or caption: "Could not load revenue" instead of a bare "Could not load". `stateNoun`/`errorTitle` still win. A bare
1082
+ title remains only where the host has no name at all.
1083
+ - **`ChartCard` empty default** reads "Nothing plotted in this range. Widen the range or check the source." (cause and
1084
+ next step); `state.empty` as a string still overrides it.
1085
+ - **`Meter`.** Adjacent categorical parts are split by a 2px separator in the track colour (muted parts keep their one
1086
+ shared fill; three or more all-muted parts log a dev warning pointing at per-part colours). The forecast caption ends
1087
+ at the forecast end, with a tick there, and falls back to the boundary only when the end cannot hold it. Captions
1088
+ keep at least one gap step apart at 390. The bar fills its container's width; the reading marker is Wave 50's
1089
+ ring below.
1090
+ - **`EventList`.** The note still wraps, never truncates (D52); where the chips sit is Wave 50's line below. A scroll box shows a bottom fade while rows remain below. A skeleton that replaces
1091
+ loaded rows keeps their height.
1092
+ - **`BarList`** reserves a gap between a truncated name and its value; the delta aligns with the value. The folded table's header text is Wave 50's `+N cols` below; its title and screen-reader text read
1093
+ "N more columns: …".
1094
+ - **Charts.** A reference label sits a full font size off its line; the keyboard focus ring is inset so a card's
1095
+ overflow cannot clip it (sparklines keep the outer ring); a fixed domain's raw end is a tick only when its label
1096
+ carries something the round ticks do not (a unit), so a uniform formatter no longer prints 77 above 76; a sparkline
1097
+ label stays inside its plot. A `Slider` fills in ink unless `color` is set; a browser-autofilled field keeps the field
1098
+ surface.
1099
+ - **CLI.** `init` on a stock Vite app wires `tanstackRouter()` before `react()`, adds `@tanstack/router-plugin`, runs
1100
+ the install and a first build for `routeTree.gen.ts`, and repeats the advice on every run until the artifacts exist;
1101
+ `--no-install` prints the commands instead. `llms.txt` expands the option types a signature names
1102
+ (`DateOptions`, `ChartLegendConfig`, `ResponsiveChartHeight`, …). `shot` clears the previous anchor's tooltip before
1103
+ a hover crop. **`shot detect`** `craft-7/no-declared-states` is per anchor: every anchor that renders a state surface
1104
+ needs its own `data-shot-states` (or `data-shot-absent`), so a route that declared states on one anchor only now
1105
+ reports the others.
1106
+ - **Skills.** `/basalt-design` checks four repeated defects before round 1 and shoots each round to a fresh `--out`;
1107
+ the parts row says each part takes a series colour; `/basalt-charts` names `other` as the neutral series key.
1108
+
1109
+ ### The second layer (Wave 50, argo-friction rows 190–197)
1110
+
1111
+ Nothing to change unless a test, a selector or a style depends on the old copy or geometry below. Each line names its
1112
+ opt-out.
1113
+
1114
+ - **`EventList`.** The chips take one fixed place: their own line under the time, at the row's left edge, whatever the
1115
+ note holds (they no longer follow the note's last word; `data-chips-only` and the note/chips nowrap run are gone).
1116
+ A row with chips is about one micro line taller. Chip `Badge`s render at the micro size whatever `size` they ask
1117
+ for, so the list uses two type rungs. `chips={[]}` renders no chips line.
1118
+ - **List skeletons.** `EventList` and `BarList` skeletons default to the row count `items` holds while refetching
1119
+ (capped at 30), else 5; pass `loadingRows` to set it. A `DeltaBadge` in a `BarList` secondary is a two-track cell
1120
+ (glyph, then a figure slot of at least four digits), so glyphs and right edges align across rows.
1121
+ - **Section error titles.** A `QueryState` inside a titled `Section` defaults its error title to "Could not load
1122
+ <section title>"; `StatCard`, `ChartCard` and the data table set their own title for what they wrap, so a card names
1123
+ itself, not the section around it. `errorTitle` still wins. New optional `Section` prop `loadingHeight` (px): the
1124
+ pending skeleton fills it.
1125
+ - **Header scope at 390.** `WidgetHeader`/`Section`/`StatCard` subtitles no longer fold into the info glyph below
1126
+ 480px; they wrap under the title (only a card shorter than 280px keeps the fold). No opt-out.
1127
+ - **Strips and figures.** A one-cell `StatGroup variant="strip"` is full width whatever `cols` it states (the Meter in
1128
+ a lone cell no longer stops at half the card). The `Meter` reading marker is a panel core in an ink ring, readable on
1129
+ any fill. In a strip cell narrower than 240px the qualifier sits under its caption; a footer `under` a cell keeps the
1130
+ cell's bottom inset.
1131
+ - **`Sparkline` `window?: string | false`.** A sparkline in a `StatCard` bleed slot or a strip cell with day-dated data
1132
+ states its window at rest (`1 Oct – 22 Oct`); `window="12 wk"` words it, `window={false}` drops it. A stated window
1133
+ moves a `referenceLabel` out of the plot into that caption row, and a bleed `StatCard` grows by that line.
1134
+ - **Data table.** The fold header reads `+N cols` (`+1 col`). A loading table plans its fold from kind floors (`text`
1135
+ 4.5rem, a kindless column 8rem; the select and actions columns none), so it folds the same columns as the loaded
1136
+ rows more often. The keyboard focus ring on a folded table is an overlay closed on all four sides.
1137
+ - **`Board`.** A column that clips its cards shows the bottom fade cue.
1138
+ - **CLI and agent layer.** `llms.txt` expands generic and `Pick`/`Omit` option types (`ChartSeries<T>`,
1139
+ `StatStripCell`, `MeterSegment`, `QueryStateLike<TData>`, …), up to 30 per subpath. A `shot` hover crop hides every
1140
+ other anchor's tooltip while it is taken. `/basalt-design`'s pre-round check has a fifth item: each figure once per
1141
+ surface.
1142
+
1143
+ ### Anchors, host titles and the fixes that did not land (Wave 51, argo-friction rows 198–204)
1144
+
1145
+ Nothing to change unless a test, a selector or a style depends on the old markup, copy or geometry below. Each line
1146
+ names its opt-out.
1147
+
1148
+ - **`data-*` on the root.** Every composite (`Section`, `ChartCard`, `StatCard`, `StatGroup`, `StatStrip`, `Board`,
1149
+ `EventList`, `BarList`, `Meter`, `PageSummary`, `SettingsSection`, `DangerZone`, `WidgetHeader`, the state
1150
+ components, `QueryState`'s drawn branches, `BasaltDataTable`) forwards `data-*` attributes to its root element in
1151
+ every state. A `data-shot` anchor that `Section` and `ChartCard` used to pass to their header now lands on the root.
1152
+ A ready `QueryState` has no root of its own: anchor its host.
1153
+ - **Host-titled tables.** An untitled `BasaltDataTable` inside a titled `Section` reads "Could not load <section
1154
+ title>"; give the table a `title` to name it yourself.
1155
+ - **Fold header.** The `+N cols` header is a `<button>`: tap, Enter or Space opens a popover listing the folded column
1156
+ names (Escape and an outside click close it); the `title` stays for the mouse. `FoldHeaderLabel` takes `names`.
1157
+ - **Table width.** In a kinded table the slack goes to the last `text` column, else the last `entity` column, else
1158
+ the trailing spacer; the slack `entity` column loses `data-fit` and no spacer cell renders. Mark a column
1159
+ `kind: 'text'` to choose it.
1160
+ - **`PageSummary`.** The `aside` follows its sentence and wraps under it, no longer at the row's far edge.
1161
+ - **`ChartCard`.** Fills its grid cell (`height: 100%`), so two cards in a row end level. The default empty copy is
1162
+ the cause only ("Nothing plotted in this range."); pass `state.empty` for a next step. `ChartFact.tone` inks the
1163
+ comparison, with ▲/▼ on a signed plain-text comparison, not the value, unit or period; a fact with no comparison
1164
+ still inks its value. A card-mode tooltip stays inside the plot rect, clear of the tick labels, when it fits.
1165
+ - **`BarList`.** The delta column is start-aligned: one glyph x and a fixed gap, figures ragged right (was a shared
1166
+ right edge with a hole after the glyph).
1167
+ - **`EventList`.** "Show earlier" is a default-variant (bordered) button. An oldest-first box with `height` trims
1168
+ itself by up to one row so its first visible row is whole under the sticky day header.
1169
+ - **`Board`.** A clipped column dissolves its cards with a mask (2 × stack-lg) instead of a page-colour gradient, so
1170
+ the cue shows on a panel surface.
1171
+ - **Dates and inputs.** English dates print `Sep` everywhere (en-GB printed `Sept` on chart axes); other languages
1172
+ keep their own abbreviation. A selected input value takes the accent tint instead of the UA colour. The stat-card
1173
+ sparkline caption sits at the card inset. Small reference-label and key spacing changes on charts.
1174
+ - **CLI.** A `shot` hover crop marks every tooltip outside its own trigger as seen, so a tooltip woken on the way to
1175
+ the trigger no longer shows in the crop.
1176
+
1177
+ ### The trial's P2s, the timeline cue, the fold label (Wave 52, argo-friction rows 205–211)
1178
+
1179
+ Nothing to change unless a test, a selector or a style depends on the old markup, copy or geometry below. Each line
1180
+ names its opt-out.
1181
+
1182
+ - **`ChartCard` headline.** `value`/`delta`/`deltaPeriod` render as one fact row under the title (the `facts`
1183
+ anatomy), no longer at the title row's far right with the period wrapped below; at error/empty the figure hides and
1184
+ pending shows a skeleton, as `facts` does. Prefer `facts`; no prop was removed. A short card (under 280 px) keeps
1185
+ the full 12 px header inset at 480 px and wider, so a row of cards shares one title baseline.
1186
+ - **Chart tooltips.** The in-plot fence applies per axis, so the first-point tooltip on hover and keyboard focus stays
1187
+ off the tick labels; a `BandStrip` tooltip opened below the strip starts under its x tick labels.
1188
+ - **`Section` loading.** A `Section` with a `query` and no `loadingHeight` over a lone `BarList`, `EventList` or
1189
+ `Meter` loads as that figure's own skeleton (the child's `loadingRows`, default 5). Keep the old skeleton by
1190
+ declaring `loadingHeight`. A wrapped or memoised figure falls back to it.
1191
+ - **`Meter` empty.** `emptyText` draws the shared `EmptyState` tile (the `BarList` box) with no track; a blank string
1192
+ is ignored. Omit `emptyText` for the blank track at loaded height. A `readingAt="start"` start caption sits at the
1193
+ track start.
1194
+ - **Retry.** The shared Retry button has a visible border (≥ 3:1 against its surface); box size unchanged.
1195
+ - **`EventList`.** A bounded box that cuts rows says so: `↑ N above` on the sticky day header and `↓ N below` over the
1196
+ bottom fade. Non-rail rows take an even vertical gap (~3 px taller). The relative-time tooltip opens to the right.
1197
+ - **Tables.** The fold header shows the first folded name under `+N cols`. The slack goes to the last data column
1198
+ when it is `text`, `entity` or kindless, else to the last `text` column holding a long cell (> 32 chars), else to a
1199
+ trailing spacer; an `entity` followed by figures no longer takes it, and an all-short `text` column fits its
1200
+ content on one line.
1201
+ - **`Board`.** Column scroll thumbs are thin (6 px) and quiet.
1202
+
1203
+ ### Visible without code change
1204
+
1205
+ - Error titles, the chart empty copy, the Meter separators/forecast caption/full width, the EventList chip flow and
1206
+ fade, the chart ticks, label offset and focus ring, the slider fill: all render differently with no edit.
1207
+ - `shot detect` may report `craft-7/no-declared-states` on anchors it passed before.
1208
+ - Wave 50: the EventList chips line and two type rungs, list and table skeleton counts and fold floors, named
1209
+ Section errors, visible subtitles at 390, the full-width lone strip cell, the Meter ring marker, the sparkline window
1210
+ caption, the `+N cols` header and the Board fade: all render differently with no edit.
1211
+ - Wave 51: anchors on composite roots (more crops per page), host-named table errors, the fold-header button and
1212
+ popover, table slack, level chart cards, fact tone on the comparison, the BarList delta track, the earlier button,
1213
+ the Board mask, `Sep`, the selection tint: all render differently with no edit.
1214
+ - Wave 52: the `ChartCard` headline row and short-card inset, chart tooltip fences, `Section` figure skeletons,
1215
+ the `Meter` empty tile, the Retry border, the `EventList` above/below cue and row gap, the fold hint, table slack and
1216
+ the Board rails: all render differently with no edit.
1217
+
1049
1218
  ## 2.28.0
1050
1219
 
1051
1220
  ### Data tables (Wave 42)
@@ -1670,6 +1839,10 @@ A row that is genuinely too narrow still hides a name (argo's ACWR at 390 has 22
1670
1839
 
1671
1840
  Opt-out: none for the zone names; a zone that must keep to its span sets a `short` that fits it, and a page that does not want a footer entry's shot anchor omitted declares no `shotAbsent`.
1672
1841
 
1842
+ ### Visible without code change
1843
+
1844
+ - **`basalt/raw-spacing` and `basalt/card-inset` are `error`.** `gap={8}` is `gap="xs"` and `py={8}` is `py="xs"` (the scale moved in 2.16.0). The `py="xs" px="sm"` card idiom is now a `card-inset` error: the theme sets the Card inset itself (12 / 16, density-scaled), so drop the padding props. A deliberately denser card has no compact tier; it becomes a visible density change.
1845
+
1673
1846
  ## 2.23.0 — Wave 37, argo's friction II
1674
1847
 
1675
1848
  No export is removed. `MeterTick` gains an optional `caption`; five Meter defaults move.
@@ -1845,6 +2018,10 @@ series file. Measured before flipping: argo `apps/dashboard` on 2.22.0 reports 0
1845
2018
  Opt-out: `"basalt": { "severity": { "series-palette": "warn" } }` keeps it a warning;
1846
2019
  `"basalt": { "exemptRules": { "series-palette": ["<series file>"] } }` silences it for the file.
1847
2020
 
2021
+ ### Visible without code change
2022
+
2023
+ - **`Badge` is sentence case, not upper case.** `DIFFICULTY 2` → `Difficulty 2`. Opt in per Badge with `tt="uppercase"`.
2024
+
1848
2025
  ## 2.22.0 — Wave 37, argo's friction II
1849
2026
 
1850
2027
  No export is removed. Five defaults move and one export is new.
@@ -2110,6 +2287,11 @@ clears 4.5:1 on both. At the default config three status hexes moved to clear th
2110
2287
  `faint` ink `#a1a1a4` → `#a7a7aa` (tone 66.24 → 68.5). **Opt out:** none for the hexes; a consumer
2111
2288
  that pinned them reads them from `VX.status.*` / `VX.faint`.
2112
2289
 
2290
+ ### Visible without code change
2291
+
2292
+ - **`--vx-status-bad` (dark) is pink-leaning.** `#f97d74` → `#fe8178` (the status text solve against the row surfaces). Chart bars and badges that read `VX.status.bad` shift with it; no opt-out for the hex.
2293
+ - **`Lines` and `Bars` line overlays are straight segments, not a smoothed curve.** The default became `curve: 'linear'`: a monotone curve drew crossings between daily or monthly points that never happened. A continuous measure (a speed trace) opts back in with `curve: 'monotone'` on the series. `StackedArea` and `Sparkline` are unchanged.
2294
+
2113
2295
  ## 2.21.0 — strip cell state, one Retry, and the marker reading
2114
2296
 
2115
2297
  ### One Retry in the shared error anatomy
@@ -2389,6 +2571,10 @@ size in muted ink, not the mono: it is a sentence fragment, not an UPPERCASE cap
2389
2571
  `StatCard` tone word, `BarList` secondaries that use it, and the notification centre. **Opt out:** pass
2390
2572
  `className` with `font-family: var(--basalt-font-mono)`.
2391
2573
 
2574
+ ### Visible without code change
2575
+
2576
+ - **The active nav row has no accent tint.** `NavLink[data-active]` is a neutral ink fill (10 %, 14 % on hover); the accent stays on the active icon. Opt out with a consumer class that sets `background-color` on the row.
2577
+
2392
2578
  ## 2.19.0 — the status dot, ink buttons and Meter refinements
2393
2579
 
2394
2580
  ### Status is a dot and a word, not an edge stripe (`StatCard`, `Callout`, notification centre)
@@ -2633,6 +2819,10 @@ number below changes at level 0**, so a layout that was tuned against the old sc
2633
2819
  | Faint chart ink | none | `derive` retunes the whole neutral ramp; there is no separate knob for the axis ink, and a lighter axis fails the 4.5:1 gate by construction. |
2634
2820
  | Page gutter | none | The expanded gutter is a constant; `density` scales it (`-1` gives 22). |
2635
2821
 
2822
+ ### Visible without code change
2823
+
2824
+ - **The spacing scale moved: `xs` 11 → 8 px** (`xs / sm / md / lg / xl` = 8 / 12 / 16 / 20 / 24). Spacing props and `--mantine-spacing-*` reads shrink; hand-written `gap={8}` is now `gap="xs"`.
2825
+
2636
2826
  ## 2.15.0 — the reviewer subagent and the ViewTabs law
2637
2827
 
2638
2828
  - **Behaviour: `basalt/bound-control-outside-home` now reports a `ViewTabs` in every `PageBar` slot except `tabs` (`actions`, `filters`, `filtersEnd`, `sync`), in `Section.actions`, or inside a `FilterSet`.** It was accepted there (any slot was a home). A `ViewTabs` that switches a page or a section belongs in a `tabs` slot (`PageBar.tabs`, `Section.tabs`); one that switches only a card's view belongs in that `ChartCard` / `WidgetHeader` `actions` slot (still allowed). **Fix: move it to `tabs`.** The lint is structural: only a `ViewTabs` written inside the slot (JSX attribute or object spread) is seen; one passed through a hoisted `const` is not.
@@ -279,13 +279,13 @@ export function Chat() {
279
279
 
280
280
  ## Verify
281
281
 
282
- 1. `./node_modules/.bin/basalt-ui doctor`; read to the last line. `SKIPPED` exits non-zero.
283
- 2. Fix every finding doctor prints, then rerun until it is clean.
284
- 3. Run the repo's own gate (e.g. `make check`), which runs lint, the theme guard (`basalt-ui check-theme`) and typecheck; fix every finding at its source, and every type error without `as never` or `any`.
282
+ 1. `./node_modules/.bin/basalt-ui doctor`; read to the last line (`SKIPPED` exits non-zero); fix every finding it prints and rerun until it is clean.
283
+ 2. Run the repo's own gate (e.g. `make check`), which runs lint, the theme guard (`basalt-ui check-theme`) and typecheck; fix every finding at its source, and every type error without `as never` or `any`.
285
284
 
286
285
  ## Refresh after any upgrade
287
286
 
288
287
  1. `./node_modules/.bin/basalt-ui sync` (`--check` in CI, `--force` overwrites local edits); read its output: edited files are skipped, retired files are deleted, the AGENTS.md block is rewritten.
288
+ 2. A bump with a board: build the OLD version first (`vite build --outDir /tmp/before-dist`; the new CLI shoots it), bump, build, read `basalt-ui doctor --from <old version>`, then `shot /a /b --dist /tmp/before-dist --out <app-dir>/.shots/before` and the same with `--dist dist --out <app-dir>/.shots/after` (`--out` inside the app dir; each route its own argument). `shot` finds `playwright` in any ancestor `node_modules`: `bun add --cwd "$(dirname "$PWD")" playwright` keeps it out of the repo's manifest. A locked or API-backed app shoots its lock screen on every route: serve fixtures on `127.0.0.1` and pass `--api /api=http://127.0.0.1:<port>` (read-only unless `--api-allow-writes`) plus `--local-storage key=@env:NAME`.
289
289
 
290
290
  ## Upgrade 1.x to 2.x
291
291
 
@@ -9,7 +9,7 @@ Procedure only; the contract is `.claude/rules/basalt-charts.md`.
9
9
  ## Steps
10
10
 
11
11
  1. Pick the path: a shipped kind fits (`Lines`, `Bars`, `Sparkline`, `StackedArea`, `DualPanel`, `MirroredBars`, `BandStrip`, `Donut`, `Heatmap`) → use it. A second chart of a shape with no kind → extract a kind and migrate both call sites. Otherwise compose `CartesianChart` in the page's own chart file.
12
- 2. Register each new series color in the app's one series file (exempt from `check-theme`): `groupTokens('health', defineSeries({ hrv: { light, dark } }))` from `basalt-ui/tokens` (lighter on dark, deeper on light), then pass the group as `<BasaltProvider paletteOptions={{ groups: [SERIES] }} />` (or `buildPaletteCss` for SSR).
12
+ 2. Register each new series color in the app's one series file (exempt from `check-theme`): `groupTokens('health', defineSeries({ hrv: { light, dark } }))` from `basalt-ui/tokens` (lighter on dark, deeper on light), then pass the group as `<BasaltProvider paletteOptions={{ groups: [SERIES] }} />` (or `buildPaletteCss` for SSR). A neutral grey comparison series (prior period, "everything else") must be keyed `other`: the one key exempt from the series guard's chroma floor; it still needs the ΔE separation from its neighbours.
13
13
  3. Compose the chart; import marks from the allowed `@tanstack/charts/*` subpaths:
14
14
 
15
15
  ```tsx
@@ -13,11 +13,17 @@ Method only; the law is `.claude/rules/basalt-*.md` and `./DESIGN.md`. Each step
13
13
  3. **Encoding: is it even a chart?** Run the router, then pick each encoding from the data's shape, then the shipped composite. A gap is reported, not routed around; no row fits the data → say so, never default to a number in a box. `references/catalogue.md`. A metric tile follows the slot contract in `references/stat-tile.md`; a record page, decision card, entity card, list row or page summary follows `references/recipes.md`.
14
14
  4. **Build** with Mantine primitives and the composites; every color from `VX.*` or a series token. Chart kinds and `ChartCard` import from `basalt-ui/charts`, `BasaltDataTable` from `basalt-ui/table`, `FilterSet` and the other filters from `basalt-ui/controls`, the rest from `basalt-ui`. Hold the encoding law (`references/encoding-rules.md`: axes, color, tooltips, refetch, filters, number typography) and avoid the dashboard tells (`references/anti-defaults.md`: fact-only copy, uniform cards, one radius). Empty, loading and error copy follows `references/states.md`. Tune by eye in the theme lab (`dev.theme` Spotlight command, dev only) in both schemes, then bake values into the `derive` knobs of `createBasaltTheme` and series colors into `src/lib/series.ts`.
15
15
  5. **Mark up for the board.** Tag each scored component `data-shot="<name>"`; hover and tooltip targets inside it get `data-shot-hover` / `data-shot-tooltip`; when the target's centre paints no readout (a donut's hole), add `data-shot-at="x,y"` (fractions of its box, e.g. `0.25,0.2`) and the shot hovers there. Declare supported states with `data-shot-states="empty loading error"` and render them when the `shot-state` URL param asks; a route declaring none is a P2 (`craft-7/no-declared-states`), raised only when an anchor renders a state surface. An anchor legitimately absent in some states declares them with `data-shot-absent="empty error"`.
16
- 6. **Rounds, at least three.** Playwright is the app's dev dependency: `bun add -d playwright && bunx playwright install chromium`. Then:
17
- - `basalt-ui shot <routes> --dist <built app>` (or `--base <url>` for a running server); a real, signed-in app (live data, no `data-shot` yet): `basalt-ui shot /overview --dist dist --api /api=https://app.example.com --local-storage auth-token=@env:APP_TOKEN --auto-anchors` seeds the token (app origin only; `@env:`/`@file:`, never inline), proxies GET/HEAD under `/api` (writes get 405 unless `--api-allow-writes`) and crops every large Card, Paper and table. One `--header authorization=@env:NAME` goes to EVERY `--api` origin (https required for any secret), never on a navigation. A redirect, 401/403/404, 5xx or dead API fails every shot of that page; a key the app already holds is never overwritten. These shots reach the reviewer subagent's model provider, the session's own: an app holding third parties' data should point `--api` at staging or synthetic data;
18
- - review with TWO isolated passes: (A) hand the out dir (`.basalt/shots`) to the `basalt-design-reviewer` subagent by name; it reads each component's contact sheet (`png/*__sheet.png`) and every page shot; (B) run the deterministic detector `basalt-ui shot detect` on the same out dir (exit 0 clean / 2 findings / 1 scan failure). A review the builder runs inline instead of the subagent starts with a `DEGRADED` banner and does not count as done;
16
+ 6. **Before round 1, check the five defects earlier builds shipped with:**
17
+ - every anchor with a state surface declares `data-shot-states` (step 5), not just one: one declaring anchor leaves every other state crop identical to rest;
18
+ - no fixed-height feed or list: one beside a taller column takes its natural height (or scrolls with a visible cue), never a height that clips its last row;
19
+ - the page title names the subject and its scope ("Roastery · October"), never a generic "Overview" or "Dashboard";
20
+ - a qualifier never runs into the next sentence: a period or scope ("7 days", "to date") is its own caption or joined with `·`; read the 390 crops for it.
21
+ - each figure appears once per surface: a strip, a meter and a chart never restate the same number, and a target is answered by one encoding, not two.
22
+ 7. **Rounds, at least three.** Playwright is the app's dev dependency: `bun add -d playwright && bunx playwright install chromium`. Then:
23
+ - `basalt-ui shot <routes> --dist <built app> --out .basalt/shots/r<n>` (or `--base <url>` for a running server). Every invocation takes a fresh `--out` per round: `shot` empties its out dir, so reusing one wipes the board the reviewer is still reading. A real, signed-in app (live data, no `data-shot` yet): `basalt-ui shot /overview --dist dist --out .basalt/shots/r<n> --api /api=https://app.example.com --local-storage auth-token=@env:APP_TOKEN --auto-anchors` seeds the token (app origin only; `@env:`/`@file:`, never inline), proxies GET/HEAD under `/api` (writes get 405 unless `--api-allow-writes`) and crops every large Card, Paper and table. One `--header authorization=@env:NAME` goes to EVERY `--api` origin (https required for any secret), never on a navigation. A redirect, 401/403/404, 5xx or dead API fails every shot of that page; a key the app already holds is never overwritten. These shots reach the reviewer subagent's model provider, the session's own: an app holding third parties' data should point `--api` at staging or synthetic data;
24
+ - review with TWO isolated passes: (A) hand this round's out dir to the `basalt-design-reviewer` subagent by name; it reads each component's contact sheet (`png/*__sheet.png`) and every page shot; (B) run the deterministic detector `basalt-ui shot detect` on the same out dir (exit 0 clean / 2 findings / 1 scan failure). A review the builder runs inline instead of the subagent starts with a `DEGRADED` banner and does not count as done;
19
25
  - judge content first, then layout, then style; rank findings P0–P3;
20
26
  - revise every failing item at its source, rebuild, and shoot again.
21
27
  Boards stay local (gitignored); the scored verdict and notes are worth committing.
22
- 7. **Done** only when both passes are clean (the reviewer passes every component, `basalt-ui shot detect` exits 0), and never before round three: a pass earlier does not end the loop. After five failed rounds stop and show the owner the boards and the failing items.
23
- 8. Run the repo's own gate (e.g. `make check`); fix every finding at its source. `shot` captures desktop (1440) and mobile (390) in both schemes; check both.
28
+ 8. **Done** only when both passes are clean (the reviewer passes every component, `basalt-ui shot detect` exits 0), and never before round three: a pass earlier does not end the loop. After five failed rounds stop and show the owner the boards and the failing items.
29
+ 9. Run the repo's own gate (e.g. `make check`); fix every finding at its source. `shot` captures desktop (1440) and mobile (390) in both schemes; check both.
@@ -26,7 +26,7 @@ Run this first. A "yes, chart" answer sends you to § 2.
26
26
  | Committed vs forecast | Two segments, the forecast lighter, a tick and a caption at the boundary | `Meter` `segments`, `forecastCaption` | Two cards |
27
27
  | Headline ratio where the shape is the message | Ring, value centred, one per row | `Meter shape="ring"` | A donut plus a total card |
28
28
  | Reading in named bands (low / ok / high) | Zoned bar with the reading as a marker; each zone names its `short` label for a narrow track; `ticks` mark cut-offs or a window mean | `Meter` `zones`, `ticks` | Colour-only thresholds |
29
- | Part of a whole, 2–6 parts | One segmented bar, parts in order, captions under the segments | `Meter` `segments`; `Bars` stacked | A row of N `StatCard`s; a donut |
29
+ | Part of a whole, 2–6 parts | One segmented bar, parts in order, a series `color` per part (`tone: 'muted'` is one shared fill: an "Other" tail only), captions under the segments | `Meter` `segments`; `Bars` stacked | A row of N `StatCard`s; a donut |
30
30
  | Part of a whole when the parts are the page's subject | Donut | `Donut` (`basalt-ui/charts`) | Donut beside a total card |
31
31
  | Ranked list, top N (5–10) | Label, bar on a shared scale, right-aligned value | `BarList` (`basalt-ui`), its default thin-track rows | A table with a `%` column |
32
32
  | Event sequence (activity, history) | Day groups, actor and sentence, then a line leading with the time; a rail for a record's timeline | `EventList` (`basalt-ui`), `density="feed"` or `"timeline"` | A table with a date column |
@@ -47,6 +47,8 @@ Run this first. A "yes, chart" answer sends you to § 2.
47
47
 
48
48
  Sections that sit side by side use one title size; a `Section` beside a `ChartCard` does not step a size down.
49
49
 
50
+ A `Section` has no surface of its own. A lone `BarList`, `EventList` or `Meter` in a grid beside `ChartCard`s goes in a `ChartCard` (`placeholderHeight="content"`), so the row reads as one surface level; a `Section` holding several figures or cards stays flat.
51
+
50
52
  ## Not shipped — report the gap, don't hand-roll
51
53
 
52
54
  | Shape | Missing |
@@ -27,7 +27,7 @@ Not this: a bespoke facts layout per entity kind.
27
27
 
28
28
  ## Distribution in a card
29
29
 
30
- One `Bars` in a `ChartCard`: one bar per level on a shared scale, the level's series colour as the swatch, the count right-aligned at the bar's end. 2–6 parts of one whole: `Meter` `segments` with captions instead.
30
+ One `Bars` in a `ChartCard`: one bar per level on a shared scale, the level's series colour as the swatch, the count right-aligned at the bar's end. 2–6 parts of one whole: `Meter` `segments` with captions instead, each part a series `color` (muted parts share one fill and read as one slab).
31
31
 
32
32
  Not this: a hand-built swatch-and-count list, or a donut when the parts are not the page's subject.
33
33
 
@@ -12,7 +12,7 @@ Every empty, loading and error state answers two things: why, and what the reade
12
12
 
13
13
  One wording per repeated gap: the same missing source reads the same on every card that depends on it. Write it once and pass it to each (`emptyText`, `ChartCard` `state`), never rephrase per card.
14
14
 
15
- The default error title is a bare "Could not load" and relies on the host's title naming the thing; outside a titled host the title must name it ("Could not load <thing>"): `QueryState.errorTitle` / `QueryState.errorFallback`, `ErrorState.title` / `ErrorState.fallback`, and `ChartCard` `stateNoun` on a chart. "The request failed." is the fallback only, never a cause: the real cause is the server message or the fallback prop. The table's empty default ("No data to display.") is a fallback too; pass `emptyState` with the cause and the next step.
15
+ A titled host names the thing itself (`StatCard`, a strip cell, `ChartCard`, the data table: "Could not load revenue" from the title). A `Section` names a nested error too (its `query`, or a `QueryState.errorTitle`-less one in its body); outside a titled host the title must name it ("Could not load <thing>"): `QueryState.errorTitle` / `QueryState.errorFallback`, `ErrorState.title` / `ErrorState.fallback`, and `ChartCard` `stateNoun` on a chart. "The request failed." is the fallback only, never a cause: the real cause is the server message or the fallback prop. The table's empty default ("No data to display.") is a fallback too; pass `emptyState` with the cause and the next step.
16
16
 
17
17
  ## Do / don't, on three shapes
18
18
 
@@ -601,7 +601,8 @@ export const CARD_INSET_PX = 'md'
601
601
  const CARD_INSET_MESSAGE =
602
602
  'Card/Paper is off the card idiom — the theme owns the 12/16 inset and radius, so write no ' +
603
603
  'p/padding/py/px/radius. Flush whole card: variant="flush"; full-bleed region in a padded card: ' +
604
- '<Card.Section>; a deliberate exception: {/* theme-allow card-inset — reason */}. (basalt/card-inset)'
604
+ '<Card.Section>; a deliberate exception: {/* theme-allow card-inset — reason */}. The older ' +
605
+ 'py="xs" px="sm" idiom is off-idiom too — delete it. (basalt/card-inset)'
605
606
  const CARD_INSET_REDUNDANT_MESSAGE =
606
607
  'Card/Paper inset is redundant — the theme owns it (12/16, density-scaled); delete ' +
607
608
  'py="sm" px="md". (basalt/card-inset)'
@@ -33,6 +33,7 @@
33
33
  "react/set-state-in-effect": "error",
34
34
  "no-constant-binary-expression": "error"
35
35
  },
36
+ "ignorePatterns": [".claude/worktrees/**"],
36
37
  "overrides": [
37
38
  {
38
39
  "files": ["**/*.{ts,tsx}"],
@@ -1,5 +1,5 @@
1
1
  import type { ReactElement, ReactNode } from 'react';
2
- import type { BasaltProps, SlotStylesProps } from '../common/props.js';
2
+ import type { BasaltProps, DataAttributes, SlotStylesProps } from '../common/props.js';
3
3
  import type { DeltaPolarity } from '../dashboard/delta-badge.js';
4
4
  import type { ChartState, ResponsiveChartHeight } from './types.js';
5
5
  /** One headline figure: the value is the hero, then its unit, a comparison node and the period. */
@@ -11,14 +11,16 @@ export type ChartFact = {
11
11
  /** Plain text the figure covers, e.g. `last 30 d`. A list is joined by ` · ` (`['last entry 3 d
12
12
  * ago', '12 entries']`) and, behind a `unit`, led by one. */
13
13
  period?: string | readonly string[] | undefined;
14
- /** Ink for the whole fact (text only, never a fill): a stale or off-target figure reads `warn`. */
14
+ /** Ink for the comparison, with its direction glyph (text only, never a fill): an off-target
15
+ * change reads `warn`. A fact with no comparison inks its value instead. A `DeltaBadge` comparison keeps
16
+ * its own polarity ink (it is inline), so `tone` is for plain-text comparisons. */
15
17
  tone?: ChartFactTone | undefined;
16
18
  };
17
19
  /** The status inks a fact can take, plus the muted one. */
18
20
  export type ChartFactTone = 'good' | 'warn' | 'bad' | 'muted';
19
21
  /** The three boxes a `ChartCard` paints. */
20
22
  export type ChartCardSlot = 'root' | 'header' | 'body';
21
- type ChartCardBaseProps = BasaltProps & SlotStylesProps<ChartCardSlot> & {
23
+ type ChartCardBaseProps = BasaltProps & DataAttributes & SlotStylesProps<ChartCardSlot> & {
22
24
  title?: string | undefined;
23
25
  icon?: ReactNode;
24
26
  /** A muted line below the title row; does not by itself render the header. With `facts` it is the
@@ -57,7 +59,9 @@ type ChartCardBaseProps = BasaltProps & SlotStylesProps<ChartCardSlot> & {
57
59
  ghost?: 'bars' | 'line' | 'band' | number | undefined;
58
60
  /** Placeholder data is showing: the facts row dims with the plot (a strip cell's `stale`). */
59
61
  stale?: boolean | undefined;
60
- /** What an errored `state` names: "Could not load {stateNoun}". Default: no noun. */
62
+ /** What an errored `state` names: "Could not load {stateNoun}". Default: the card's `title`; with
63
+ * neither, the title is a bare "Could not load". A leading capital is lowercased unless the next
64
+ * character is a capital or a non-letter ("Revenue" → "revenue", "KPI" and "2024 sales" stay). */
61
65
  stateNoun?: string | undefined;
62
66
  /** An errored `state` shows the shared Retry button (the one `ErrorState` renders). */
63
67
  onRetry?: (() => void) | undefined;
@@ -82,6 +86,6 @@ export type ChartCardProps = ChartCardBaseProps & ({
82
86
  } | {
83
87
  facts?: undefined;
84
88
  });
85
- export declare function ChartCard({ actions, state, placeholderHeight, stateAction, stale, stateNoun, ghost, onRetry, retrying, className, classNames, style, children, facts, ...header }: ChartCardProps): ReactElement;
89
+ export declare function ChartCard({ actions, state, placeholderHeight, stateAction, stale, stateNoun, ghost, onRetry, retrying, className, classNames, style, children, facts, ...headerAndData }: ChartCardProps): ReactElement;
86
90
  export {};
87
91
  //# sourceMappingURL=ChartCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"ChartCard.d.ts","sourceRoot":"","sources":["../../src/charts/ChartCard.tsx"],"names":[],"mappings":"AAWA,OAAO,KAAK,EAAiB,YAAY,EAAE,SAAS,EAAE,MAAM,OAAO,CAAA;AAGnE,OAAO,KAAK,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAA;AACnE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAA;AAS7D,OAAO,KAAK,EAAE,UAAU,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAA;AAkFhE,mGAAmG;AACnG,MAAM,MAAM,SAAS,GAAG;IACtB,KAAK,E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