Commit Graph
10 Commits
Author SHA1 Message Date
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
Shroominic 9a52e30470 get api key link 2025-11-11 17:31:19 +08:00
9qeklajc 1b6188b130 better model update 2025-11-02 23:42:18 +01:00
Shroominic 6e7be9695e fetch provider-types from node api 2025-11-02 12:05:39 +08:00
9qeklajc 82e01e3e13 add temp balances 2025-10-24 21:31:35 +02:00
9qeklajc 307e81bd61 fix model update 2025-10-24 12:37:11 +02:00
9qeklajc 65c19bc375 clean up 2025-10-24 11:50:45 +02:00
9qeklajc 3420ac73d7 fmt 2025-10-23 20:09:07 +02:00
9qeklajc 45c8bfce1d merge 2025-10-21 23:21:03 +02:00
9qeklajc 4d28586d13 add ui code 2025-10-21 22:07:47 +02:00