feat(insights): analytics API + Insights page with charts & motif web (#7) #54
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/v6.2-data-viz"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Closes #7. Adds a dedicated Insights page with time-series charts and a motif network.
API —
/api/analytics(active-project scoped, parameterized)GET /overview— headline totals (entries/motifs/categories), monthly entry volume, certainty breakdownGET /motif-prevalence— monthly per-motif entry counts, shaped server-side into chart rows (top 8 motifs by total, with atruncatedflag)GET /network— motif co-occurrence: nodes (motifs + entry counts) and edges weighted by the number of shared entriesUI — new lazy-loaded Insights page
@xyflow/react: node size = entry count, edge thickness = shared-entry count ("how closely tied"); click a node to open the motifTests
analytics.test.ts— overview totals/volume/certainty, prevalence shaping, and network co-occurrence (nodes, entry counts, weighted edges). Full suite green on the dev server: 174 api / 63 app, both production builds.The Recharts dependency + lockfile were added on a Node host (I have no local Node) in a separate
build(app):commit. CHANGELOG entry will land with the v6.2.0 release notes.🤖 Generated with Claude Code