Skip to content

Commit 52a7e65

Browse files
ryan-williamsclaude
andcommitted
refactor: migrate aggregation logic to @rdub/agg-plot
Replace custom aggregation/smoothing implementations with `@rdub/agg-plot`: - `useDataAggregation`: use `aggregate()`, `rollingRaw()`, `flattenDateAll()` - `useMultiDeviceAggregation`: use `useMultiSeriesAggregation()` hook This reduces awair's hook code from 627 to 326 lines (-301 lines) while moving reusable aggregation logic to a shared library. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 36351b8 commit 52a7e65

File tree

4 files changed

+1256
-757
lines changed

4 files changed

+1256
-757
lines changed

www/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,8 @@
3939
"uplot": "^1.6.32",
4040
"use-kbd": "github:runsascoded/use-kbd#caa1afd04827fe79ff3f313cd7e01b2c08372f78",
4141
"use-prms": "github:runsascoded/use-prms#cf28edc59fea41899aca2ada69499cd11604f60e",
42-
"use-session-storage-state": "^19.0.1"
42+
"use-session-storage-state": "^19.0.1",
43+
"@rdub/agg-plot": "https://gitlab.com/runsascoded/js/agg-plot/-/archive/e9087eda0724f058d4d2657afd51d0c3f59193e6/agg-plot-e9087eda0724f058d4d2657afd51d0c3f59193e6.tar.gz"
4344
},
4445
"devDependencies": {
4546
"@eslint/js": "^9.30.1",

0 commit comments

Comments
 (0)