Files
routstr-core/ui/components
Cursor Agentanddb2002dominic e85f7660ba feat: Add logs and usage tracking to admin UI
This commit introduces new endpoints and UI components for viewing system logs and usage metrics. It includes:

- **Backend changes:**
    - New API endpoints in `admin.py` for fetching logs, usage metrics, summary statistics, error details, and revenue by model.
    - A new `LogManager` class in `log_manager.py` to handle log file parsing and data aggregation.
    - Updates to `logging.py` to document critical log messages used for usage tracking.
    - Routing for the new UI pages in `main.py`.

- **Frontend changes:**
    - New pages for Logs (`ui/app/logs/page.tsx`) and Usage (`ui/app/usage/page.tsx`).
    - Components for displaying log entries, filters, details dialogs, usage charts, summary cards, error tables, and revenue tables.
    - Updates to `app-sidebar.tsx` to include links to the new pages.
    - Styling adjustments in `globals.css`.

These changes provide administrators with valuable insights into system activity and performance.

Co-authored-by: db2002dominic <db2002dominic@gmail.com>
2025-11-22 02:03:18 +00:00
..
2025-11-10 22:59:32 +01:00
2025-10-21 22:07:47 +02:00
2025-10-21 22:07:47 +02:00
fmt
2025-10-24 14:20:27 +02:00
2025-10-21 22:07:47 +02:00
2025-10-21 22:07:47 +02:00
2025-10-21 22:07:47 +02:00
2025-11-04 23:46:38 +01:00
2025-10-21 22:07:47 +02:00
fmt
2025-10-24 14:20:27 +02:00
2025-11-02 23:42:18 +01:00
2025-10-25 00:16:14 +02:00
2025-11-05 00:12:23 +01:00
2025-10-21 22:07:47 +02:00
2025-10-24 13:53:32 +02:00
2025-10-24 13:53:32 +02:00
2025-10-25 00:16:14 +02:00
2025-10-21 22:07:47 +02:00
2025-10-21 22:07:47 +02:00
2025-10-30 12:38:51 +08:00
2025-10-25 00:21:41 +02:00
2025-11-04 23:46:38 +01:00
2025-10-25 00:21:41 +02:00
2025-10-25 00:21:41 +02:00
2025-10-21 22:07:47 +02:00
2025-10-21 22:07:47 +02:00