apac-ops-bot/frontend
SamoilenkoVadym 2e6597ee08 Add admin analytics and update OpenAI integration
Backend changes:
- Add admin analytics endpoints for daily usage per user
- Add GET /tokens/daily-users endpoint with date/user breakdown
- Update OpenAI SDK from 1.58.1 to 2.6.1
- Switch from Assistants API to Responses API with file_search tool
- Implement strict RAG-only system instructions
- Add citation validation to prevent hallucinations
- Add get_daily_usage_by_user repository method
- Add DailyUserUsage schema for admin analytics

Frontend changes:
- Implement comprehensive admin usage dashboard
- Add overall system statistics (users, conversations, messages, tokens, cost)
- Add daily usage table with per-user breakdown
- Add chat state clearing on logout and user change for isolation
- Center welcome message and input field in chat interface
- Add admin-specific styling for usage analytics tables
- Fix useCallback dependencies to prevent infinite loops

Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
2026-01-27 21:36:36 +00:00
..
public Add comprehensive backend test suite and Phase 1 foundation 2026-01-27 14:24:59 +00:00
src Add admin analytics and update OpenAI integration 2026-01-27 21:36:36 +00:00
.env.example Add comprehensive backend test suite and Phase 1 foundation 2026-01-27 14:24:59 +00:00
Dockerfile Add comprehensive backend test suite and Phase 1 foundation 2026-01-27 14:24:59 +00:00
package-lock.json Add test user authentication and RBAC admin panel 2026-01-27 20:05:54 +00:00
package.json Add comprehensive backend test suite and Phase 1 foundation 2026-01-27 14:24:59 +00:00
tsconfig.json Add comprehensive backend test suite and Phase 1 foundation 2026-01-27 14:24:59 +00:00