feat: 账号池支持批量开启和关闭选中账号 - #393
Open
agermel wants to merge 1 commit into
Open
Conversation
qxcnm
requested changes
Jul 28, 2026
Owner
There was a problem hiding this comment.
批量关闭目前会绕过单账号状态动作的语义,可能覆盖账号的原始异常状态,暂时不能合并。
canBulkDisableAccount(account) 目前只排除了 manual_disable,因此 banned、inactive 等状态也会进入批量关闭目标;但现有 getAccountStatusAction() 中,inactive 应执行恢复,banned 不允许操作。批量操作会把这些账号写为 disabled/manual_disable,导致原始状态原因丢失。
请让批量目标筛选复用单账号状态动作规则(或至少明确排除 banned、inactive 及其他不可 disable 的状态),并补充覆盖这些状态的回归测试。
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
变更摘要
改动范围
主要文件
apps/src/app/accounts/accounts-page-view.tsxapps/src/app/accounts/page.tsxapps/src/hooks/useAccounts.tsapps/src/lib/i18n/messages/sections/en-accounts.tsapps/src/lib/i18n/messages/sections/ko-accounts.tsapps/src/lib/i18n/messages/sections/ru-accounts.tsdocs/superpowers/plans/2026-07-27-accounts-bulk-status-pr-draft.md验证
pnpm -C apps run testpnpm -C apps run buildpnpm -C apps run test:uicargo test --workspace已执行的实际验证:
验证结果:
未执行的验证与原因:
风险与影响面
备注