Files
vitareba/package-plan.json
CatoandClaude 141f60e88c feat(charts): trends, check-in strip and meters on @bitbaum/chartkit 0.7 (#138)
ChartKit 0.7.0 closes the three gaps recorded in package-plan.json
(#136): LineChart labels days on short spans, Sparkline takes per-point
tones and null gaps, and Meter takes a tone and showValue={false}.

- CheckinTrendChart and AssessmentTrendChart render ChartKit's
  LineChart on the server, dated by ISO day in the app's en-GB locale.
  Callers pass the day instead of a pre-formatted label, and the
  assessments page drops its client wrapper.
- The patients table's 7-day strip is a Sparkline: one point a day,
  toned by wellness level (SPARK_LEVEL_TONES), a gap on a day without a
  check-in, and the counts in its accessible name.
- Dimension score bars (/assessments, the public results overlay) and
  the reports adherence bars are toned Meters; scoreColor becomes
  scoreTone. The overlay sets --ck-line to its own hairline.
- --ck-series-4 maps to the gold: it defaulted to --ck-up, the same
  teal as the accent, so Energy and Focus drew in one colour.
- recharts, the metric colour field, --purple and the bar/dot CSS are
  removed; the design gate's allowlist drops the three files that no
  longer need a style prop. All three exceptions leave package-plan.json.


Claude-Session: https://claude.ai/code/session_019MDtmuJhiHPASaR5k8raL9

Co-authored-by: Claude <noreply@anthropic.com>
2026-10-29 20:06:50 +01:00

34 lines
799 B
JSON

{
"blocks": {
"charts": {
"package": "@bitbaum/chartkit",
"bindings": [
{
"file": "app/(admin)/admin/reports/page.tsx",
"symbols": ["BarChart", "Meter"]
},
{
"file": "components/portal/CheckinTrendChart.tsx",
"symbols": ["LineChart"]
},
{
"file": "components/portal/AssessmentTrendChart.tsx",
"symbols": ["LineChart"]
},
{
"file": "app/(admin)/admin/patients/page.tsx",
"symbols": ["Sparkline"]
},
{
"file": "app/(portal)/assessments/page.tsx",
"symbols": ["Meter"]
},
{
"file": "components/Assessment/ResultsScreen.tsx",
"symbols": ["Meter"]
}
]
}
}
}