Files
google-labs-jules[bot] 28d5ef301b feat(core): implement Admin Analytics dashboard (#120)
- Create `templates/admin/index.html` extending Unfold base layout to display custom dashboard.
- Add Chart.js visualization for "Bandwidth Saved" metric.
- Display key stats: CPU, RAM, Bandwidth Saved, Revenue, Anime/Episode counts.
- Utilize existing `core.dashboard.dashboard_callback` logic.
- Ensure safe data passing using `json_script`.
- Verified with unit tests in `core/tests/test_dashboard.py`.

Current Focus Mode: C (The Architect)
Changes Made:
- Added `templates/admin/index.html` with Chart.js integration.
- Fixed template to use `json_script` for safe JSON handling.
- Verified backend logic in `core/dashboard.py`.
Impact on System:
- Admins now see a visual dashboard with real-time stats and bandwidth savings graph upon login.

Co-authored-by: google-labs-jules[bot] <161369871+google-labs-jules[bot]@users.noreply.github.com>
2026-01-22 13:22:22 +00:00
..