-
Notifications
You must be signed in to change notification settings - Fork 0
Add support for multiple GitHub accounts #14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Conversation
Co-authored-by: friuns <7095563+friuns@users.noreply.github.com>
…nsistency Co-authored-by: friuns <7095563+friuns@users.noreply.github.com>
Co-authored-by: friuns <7095563+friuns@users.noreply.github.com>
Co-authored-by: friuns <7095563+friuns@users.noreply.github.com>
Co-authored-by: friuns <7095563+friuns@users.noreply.github.com>
🚀 Netlify DeploymentDeploy URL: https://694a48d39cd2d1b2b243fe48--my-test-site3.netlify.app Branch: |
🚀 Netlify DeploymentDeploy URL: https://694a607a37cac130d5849ce9--my-test-site3.netlify.app Branch: |
🚀 Netlify DeploymentDeploy URL: https://694a6082b304bb17e1ec2c1b--my-test-site3.netlify.app Branch: |
🚀 Netlify DeploymentDeploy URL: https://694a6084bb74ee3333919118--my-test-site3.netlify.app Branch: |
🚀 Netlify DeploymentDeploy URL: https://694a6086648826350a20ad77--my-test-site3.netlify.app Branch: |
Implements multiple account management, allowing users to sign in with multiple GitHub accounts and switch between them without logging out.
Changes
Account Management Service
services/accountService.ts: Centralized account operations (add, remove, switch, get active){ accounts: Account[], activeAccountId: string }in localStoragegh_token,gh_user) on first loadUI Components
components/AccountSwitcher.tsx: Dropdown in header showing all accountsfocus:opacity-100Cache Scoping
services/cacheService.ts: Added optionalaccountIdparameter togetCached/setCachevibe_github_cache_{accountId}_{resource}prevents data leakage between accountsaccountIdfor cache operationsApplication Flow
App.tsx: Account state management replaces direct localStorage accessviews/TokenGate.tsx: "Add Account" mode with cancel flowviews/Dashboard.tsx: Renders AccountSwitcher, reloads data on account changeviews/RepoDetail.tsx,views/IssueDetail.tsx: Account-scoped cachingExample
Screenshot
Account switcher appears in header once logged in, displaying avatar/username with dropdown for account operations.
Original prompt
💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.