mirror of
https://github.com/bitbaum/substrata.git
synced 2026-12-04 05:07:46 +01:00
* feat(chartkit): the fleet's chart package @bitbaum/chartkit 0.1.0 in packages/chartkit, a standalone package the fleet creates a repo from (registers/package-repos.json). Seven charts — LineChart, BarChart, ShareBars, Sparkline, Meter, Timeline, StatTiles — rendered on the server as SVG + HTML with text in rem, a visually hidden table behind each, colours only from --ck-* tokens, labels that truncate instead of clipping and events that take a second lane instead of overprinting. findChartDefects (@bitbaum/chartkit/audit) measures that in a real browser; test/browser.mjs runs it over the demo at 320, 390 and 1280 in light and dark, after proving it fails on a broken figure. Same conventions as chatkit: tsc to dist/ (committed), node --test for the arithmetic and the server render, Playwright for layout, one verify. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE * feat(series): draw the series chart with chartkit The hand-rolled line chart (components/series/SeriesChart.tsx, lib/series-chart.ts, ~130 lines of series.css) is replaced by @bitbaum/chartkit's LineChart and Sparkline, consumed by path (workspace:*) until the package has its own repo. SeriesChart.tsx is now only the join between a Series and the package's contract; the geometry test moved with the geometry. Chart tokens map to Substrata's ink, line and status colours next to the chatkit mapping. The app's lint and tsc stop at packages/, which verify themselves; root verify runs the package's, and CI installs Chromium for its browser audit and checks the committed dist against the source. Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_018WZnBnaLP6RhwFkLxRTKgE --------- Co-authored-by: Claude <noreply@anthropic.com>
34 lines
663 B
JSON
34 lines
663 B
JSON
{
|
|
"compilerOptions": {
|
|
"target": "ES2022",
|
|
"lib": ["dom", "dom.iterable", "esnext"],
|
|
"allowJs": false,
|
|
"skipLibCheck": true,
|
|
"strict": true,
|
|
"noEmit": true,
|
|
"esModuleInterop": true,
|
|
"module": "esnext",
|
|
"moduleResolution": "bundler",
|
|
"resolveJsonModule": true,
|
|
"isolatedModules": true,
|
|
"jsx": "react-jsx",
|
|
"incremental": true,
|
|
"plugins": [
|
|
{
|
|
"name": "next"
|
|
}
|
|
],
|
|
"paths": {
|
|
"@/*": ["./*"]
|
|
}
|
|
},
|
|
"include": [
|
|
"next-env.d.ts",
|
|
"**/*.ts",
|
|
"**/*.tsx",
|
|
".next/types/**/*.ts",
|
|
".next/dev/types/**/*.ts"
|
|
],
|
|
"exclude": ["node_modules", "packages"]
|
|
}
|