Skip to content

feat: 账号池支持批量开启和关闭选中账号#393

Open
agermel wants to merge 1 commit into
qxcnm:mainfrom
agermel:feature/select
Open

feat: 账号池支持批量开启和关闭选中账号#393
agermel wants to merge 1 commit into
qxcnm:mainfrom
agermel:feature/select

Conversation

@agermel

@agermel agermel commented Jul 26, 2026

Copy link
Copy Markdown
Contributor

变更摘要

  • 在账号池账号操作新增“批量状态”分组,支持对选中账号批量开启或关闭。
  • 批量操作只作用于当前状态需要变更的账号,并在菜单快捷区域显示实际目标数量。

改动范围

  • Frontend
  • Desktop / Tauri
  • Service
  • Gateway / Protocol Adapter
  • Docs / Governance
  • Workflow / Release

主要文件

  • apps/src/app/accounts/accounts-page-view.tsx
  • apps/src/app/accounts/page.tsx
  • apps/src/hooks/useAccounts.ts
  • apps/src/lib/i18n/messages/sections/en-accounts.ts
  • apps/src/lib/i18n/messages/sections/ko-accounts.ts
  • apps/src/lib/i18n/messages/sections/ru-accounts.ts
  • docs/superpowers/plans/2026-07-27-accounts-bulk-status-pr-draft.md

验证

  • pnpm -C apps run test
  • pnpm -C apps run build
  • pnpm -C apps run test:ui
  • cargo test --workspace
  • 其他本地验证已说明

已执行的实际验证:

pnpm -C apps run test:runtime
pnpm -C apps run lint
pnpm -C apps run build:desktop

验证结果:

test:runtime: 189 passed
lint: passed
build:desktop: passed

未执行的验证与原因:

pnpm -C apps run test:ui 留给发布前全量 UI 验收;本次已覆盖前端 runtime、lint 和桌面静态构建。
cargo test --workspace 留给后端或发布前全量验收;本次改动范围集中在 apps 前端、账号页 hook 和 i18n 文案。

风险与影响面

  • 批量开启只处理手动关闭状态的账号,批量关闭只处理当前可关闭账号。
  • 单个账号失败时,其他账号继续处理;toast 会展示首个失败账号和原因。
  • 批量操作期间会禁用单账号状态切换,避免同一批账号状态并发变更。
  • 当前实现复用现有单账号启用/禁用 API,批量数量很大时请求会按账号数增长。

备注

  • 提交前请确认未包含敏感 token、cookie、API key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant