This repository was archived by the owner on Feb 18, 2026. It is now read-only.
feat: multi-account support and OAuth tokens management#17
Open
feat: multi-account support and OAuth tokens management#17
Conversation
- Add multi-account support to provider configuration with round-robin balancing - Implement account management UI in admin panel (add/edit/remove accounts) - Add UUID and atomic write dependencies for account ID generation and persistence - Pre-fill auth_type when editing providers to fix OAuth display bug - Show account count on provider cards in admin panel - Update README with multi-account features documentation - All changes follow existing localStorage-based state management pattern
- Create new 'OAuth Tokens' tab in admin UI navigation - Move OAuth token management to dedicated page for better organization - Keep OAuth tokens section in Settings tab as well (available in both places) - Update loadOAuthTokens() to populate both Settings and OAuth Tokens tabs - Add null check in handleRoute() to prevent errors when tab content doesn't exist - Both tabs show same token list with refresh and delete buttons
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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
This PR adds multi-account load balancing support and dedicated OAuth token management to the admin UI.
Changes
Commit 1: Multi-account load balancing with UI management
Commit 2: Dedicated OAuth Tokens management tab
Files Modified
Cargo.toml- Added UUID and atomic_write dependenciesREADME.md- Updated documentation with multi-account featuressrc/cli/mod.rs- CLI support for multi-account managementsrc/providers/mod.rs- Provider management with multi-account logicsrc/providers/registry.rs- Registry updates for account handlingsrc/server/admin.html- UI enhancements for accounts and OAuth tokensArchitecture
All changes follow the existing localStorage-based state management pattern: