mirror of
https://github.com/purrgrammer/grimoire.git
synced 2026-04-11 07:56:50 +02:00
91afc1b25176accffe2f75b8a904e45bf13e98e5
Account Management Improvements:
- Auto-switch to another account when logging out (instead of leaving no active account)
- If other accounts exist, automatically activates the first one before removing current
Account Type Badges:
- Added visual badges to distinguish account types in user menu
- 'Read-only' badge with eye icon for read-only accounts
- 'Extension' badge with puzzle icon for extension accounts
- Badges appear in both user menu and account manager
Auth Prompt Protection:
- Read-only accounts no longer receive relay auth prompts
- Auto-reject all auth challenges when active account is read-only
- Prevents confusing prompts for accounts that cannot sign
Type Safety:
- Proper TypeScript casting for account.constructor.type access
- Used 'as unknown as { type: string }' pattern for type narrowing
Languages
TypeScript
98.9%
CSS
0.8%
JavaScript
0.3%