Initiated the obsidian vault

This commit is contained in:
Mohammed Abad committed 2026-04-22 02:09:10 +01:00
1 parent 3c4958df50
commit 1058274a6a
13 files changed
+262

No files matched your search

+26
View File
@@ -0,0 +1,26 @@
# Statistics
## Overview
Dashboard charts powered by [[Backend]] statistics endpoints and the library store.
## Charts
### CouchDayChart
- Shows watch distribution by day of week (bar chart)
- Endpoint: `GET /statistics/watch-weekday`
- **Only counts records with `accuracy = 'EXACT'`** (Milestone 001)
- Queries both `EpisodeSeen` and `EntrySeen` tables
### LibraryGrowthChart
- Shows cumulative library growth over time (area chart)
- Data source: Library store entries (client-side computation)
- Uses `createdAt` field as the entry date (Milestone 001)
- Includes all entries (library + watchlist)
- Supports year filter with "All" option
## Important Files
- `react_frontend/src/components/dashboard/CouchDayChart.tsx`
- `react_frontend/src/components/dashboard/LibraryGrowthChart.tsx`
- `backend/controllers/statisticsController.js` — `getWatchdayDistribution` method