fix(mail): account creation form - add username and is_shared fields

- Add username field to account creation form (defaults to email if empty)
- Add is_shared checkbox toggle for shared mailboxes
- Update CreateAccountPayload type with optional username and is_shared
- The infinite re-render fix (previous commit) resolves the main issue:
  accounts were not shown in settings because loadAccounts was looping,
  flooding the browser with requests and preventing API calls from completing
This commit is contained in:
Agent Zero
2026-07-16 22:41:44 +02:00
parent 68a9415e99
commit 5b3e874cf2
2 changed files with 21 additions and 0 deletions
+2
View File
@@ -192,7 +192,9 @@ export interface CreateAccountPayload {
imap_port: number;
smtp_host: string;
smtp_port: number;
username?: string;
password: string;
is_shared?: boolean;
}
export interface UpdateAccountPayload {