AIStudio2API icon indicating copy to clipboard operation
AIStudio2API copied to clipboard

[Feature] Add optional "Note" / remark field to AccountConfig for managing large pools (50+ accounts)

Open photobrand opened this issue 1 week ago • 0 comments

想要什么,用来做什么 / What you want and what for

What I want & Use Case

When managing a large pool (50–100+ accounts), remembering account-specific metadata (e.g. subscription renewal date, device used for QR verification, proxy provider, or team owner) is currently impossible because:

  1. account.json only contains label, enabled, proxy, locale, timezone, auth_user.
  2. internal/app/admin.go:795 explicitly forbids changing label: if !strings.EqualFold(input.Label, accountID) { return invalidAccount("账户邮箱不可修改") }

Adding an optional Note (or remark) string field to AccountConfig and exposing it in the edit dialog, account row, and search filter would make large-scale account management significantly easier.

Proposed Changes

  1. Config & Schema (internal/aistudio/accounts.go, internal/api/admin.go):
    • Add Note string json:"note,omitempty"`` to AccountConfig, AccountDraft, and AdminAccount.
    • Update saveAccountConfig to persist Note.
  2. Web UI (web/src/components/AccountsPanel.vue):
    • Add a Note text field in the Edit Account dialog (showEditor).
    • Display the note in the account row summary line (e.g. [email protected] · Pro · [Note text]).
    • Include account.note in the visibleAccounts search filter so typing a note keyword immediately filters matching accounts.

版本 / Version

v0.3.13

photobrand avatar Nov 21 '26 18:11 photobrand