Files
doona/package.json
T
Zakk 632be8d6e1 refactor(charts): draw the activity charts with d3-shape and drop recharts
recharts cost 110 KB gzip, 16% of the JS budget, for the Activity page's
two area charts, three sparklines and the outbound donut. They are now
small components beside the repo's other charts: AreaChart, Sparkline
and Donut. They share the palette, tooltip store, legends and sizing
hook.

The geometry comes from d3-shape (line, area, curveMonotoneX, arc,
pie), the functions recharts itself used, so the curves and sectors are
the same and none of that math is ours to maintain. The linear scale
stays a two-line interpolation, since d3-scale would add 7.5 KB.
Gradients, pointer placement, keyboard selection and the layout helpers
each have one implementation, shared with the existing charts. The
entry point now states the rule: charts live in src/ui/charts on
d3-shape and the shared helpers, and pages never draw ad-hoc SVG charts
or import chart libraries.

Nothing changes for the user: 372 before/after screenshot pairs over
every palette at 1440 and 390 px, both Chinese locales, and hover and
keyboard focus on each chart show only antialiasing differences, and
the SVG geometry matches in all of them. The shapes were never
animated. The tooltip transition stays and respects reduced motion.

js total: 656318 -> 555880 B gzip. shell: 243008 -> 231325 B.
recharts, react-redux and the chart-only d3 packages are gone.
2026-09-26 02:45:06 +10:00

89 lines
2.9 KiB
JSON

{
"name": "doona",
"private": true,
"version": "0.1.0-beta.4",
"description": "Web UI for the daeuniverse engines (honk, and dae once it speaks the same API).",
"repository": {
"type": "git",
"url": "https://github.com/Zakkaus/doona.git"
},
"config": {
"engineOrg": "https://github.com/daeuniverse"
},
"engines": {
"node": "^22.13.0 || ^24.0.0 || >=26.0.0"
},
"type": "module",
"license": "GPL-3.0-only",
"packageManager": "pnpm@11.15.1",
"scripts": {
"dev": "vite",
"build": "vite build",
"package": "tools/package.sh",
"preview": "vite preview",
"test": "vitest run",
"test:coverage": "vitest run --coverage",
"conformance": "node tools/conformance.mjs",
"e2e:live": "pnpm build && DOONA_LIVE_OBSERVE=1 playwright test e2e/a11y.spec.ts e2e/mobile.spec.ts e2e/keyboard.spec.ts",
"gen:locales": "node tools/gen-locales.mjs",
"gen:api": "openapi-typescript contract/api-standardize/openapi.yaml -o \"${OPENAPI_OUTPUT:-src/api/types.ts}\"",
"lint": "eslint .",
"format": "prettier --write .",
"format:check": "prettier --check .",
"typecheck": "tsc --noEmit -p . && tsc --noEmit -p e2e",
"check:gen": "tools/check-gen.sh",
"check:i18n": "node tools/check-i18n.mjs",
"check:size": "node tools/check-size.mjs",
"perf": "node tools/perf.mjs",
"e2e": "pnpm build && playwright test",
"e2e:install": "playwright install chromium webkit",
"check": "pnpm typecheck && pnpm lint && pnpm check:i18n && pnpm format:check && pnpm test && pnpm check:gen"
},
"sizeBudget": {
"js": 680000,
"shell": 275000,
"css": 240000
},
"dependencies": {
"@codemirror/autocomplete": "^6.20.3",
"@codemirror/commands": "^6.11.1",
"@codemirror/language": "^6.12.4",
"@codemirror/lint": "^6.9.7",
"@codemirror/search": "^6.7.2",
"@codemirror/state": "^6.7.5",
"@codemirror/view": "^6.43.12",
"@lezer/highlight": "^1.2.3",
"d3-shape": "^3.2.0",
"react": "^19.2.0",
"react-aria": "3.52.1",
"react-aria-components": "1.21.1",
"react-dom": "^19.2.0"
},
"devDependencies": {
"@axe-core/playwright": "4.13.0",
"@playwright/test": "1.63.0",
"@react-aria/optimize-locales-plugin": "^1.1.4",
"@types/d3-shape": "^3.2.0",
"@types/react": "^19.2.0",
"@types/react-dom": "^19.2.0",
"@vitejs/plugin-react": "^4.7.0",
"@vitest/coverage-v8": "5.0.0",
"ajv": "^8.20.0",
"ajv-formats": "^3.0.1",
"eslint": "^10.10.0",
"eslint-config-prettier": "^10.1.8",
"eslint-plugin-jsx-a11y": "^6.10.2",
"eslint-plugin-react-hooks": "^7.1.1",
"globals": "^17.12.0",
"lightningcss": "^1.30.1",
"openapi-fetch": "^0.17.0",
"openapi-typescript": "^7.13.0",
"prettier": "^3.9.6",
"typescript": "^5.8.0",
"typescript-eslint": "^8.70.0",
"vite": "^6.3.0",
"vitest": "^5.0.0",
"yaml": "^2.9.1"
}
}