"Add complete admin dashboard with Overview, Users, LLM Settings, and API Keys"#38
Open
makayo wants to merge 8 commits intoOC-Chatbot:mainfrom
Open
"Add complete admin dashboard with Overview, Users, LLM Settings, and API Keys"#38makayo wants to merge 8 commits intoOC-Chatbot:mainfrom
makayo wants to merge 8 commits intoOC-Chatbot:mainfrom
Conversation
- Removed next.config.ts and added next.config.mjs using ESM export style - Defined rewrites to proxy /api/* requests from Next.js frontend to FastAPI backend - Updated .gitignore to exclude Python cache files (__pycache__, *.pyc) and virtual environments - Ensured node_modules and .next remain ignored - Keeps repository clean by preventing build artifacts and compiled files from being tracked
- Introduced /admin/stats route with placeholder JSON for system metrics - Added /admin/users route returning empty user list - Added /admin/settings route returning empty settings object - Ensures admin endpoints are visible in FastAPI docs for future expansion
…agement, and user management - Add Overview, Users, LLM Settings, and API Keys tabs to admin dashboard - Implement LLM Control Settings: model dropdown, temperature slider, max tokens, rate limit, system prompt - Add API Key Management: secure key generation (sk_ prefixed), key hashing, masked display (last 4 chars) - Create API endpoints: /admin/stats, /admin/settings, /admin/users, /admin/api-keys - Implement mock auth bypass for development to prevent 401 errors - Fix race condition in ProtectedRoute to wait for auth initialization - Add recovery flows (password reset, username recovery) - Wire frontend API client to backend with proper error handling and confirmation messages - All settings persist in-memory on backend with optional usage logging
Consolidate to single test-user with admin role for consistent auth flow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Complete admin dashboard implementation with all core features.
Features Added
Overview Tab
Users Tab
LLM Settings Tab
API Keys Tab
Authentication & Security
UI/UX Improvements
Testing
Screenshots
(Optional: Add screenshots of the admin dashboard)