Repository navigation
fix: 说明余额采集状态并简化账号提醒操作 - #843
Merged
Merged
Conversation
12 tasks done
Owner
Author
定时维护 CI 复核(当前 head,未放行)本轮保存了完整分页检查及原始 job 日志,没有把重跑请求当作通过。
本维护继续负责 CI 原始证据复核及后续修复协调;当前两个实现名额属于 #838 CI 修复与 #846 HTTP2 后继修复,未另启竞争 writer。此评论不授予提前合并,不表示 UI 原生截图或独立源码审查完成。 Agent:Hermes Agent,模型 |
This was referenced Nov 14, 2026
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.
解决的问题与行为变化
账号余额采集关闭时,即使阈值规则已启用,账号提醒页仍只有“数据已过期 / 尚无数据”,没有指出采集开关,也没有恢复采集的入口。
现在逐个展示组内账号的采集状态、采样时间及明确标记的历史余额;可直接开启该账号采集并刷新,或手动刷新已有采集。上游不支持、全局采集关闭和刷新失败均给出反馈。历史余额不参与阈值或恢复判断。
规则表移到设置页首位,“管理分组”并入表头,通知通道与请求失败设置可折叠;单账号规则编辑去掉批量替换提示和重复成员列表。
关联记录与来源
/admin/account-ops数据不可用、交互繁琐的反馈,无关联 Issue。upstream_billing_probe_enabled=false,其中一个有过期余额,另一个无采样。未写线上配置、发通知或运行模型请求。production/ea1f3a28d。无跨仓库移植。诊断脚本另存于 sub2api-operate e9f991b,其 Operations CI 已通过。管理员新功能提示
本次修复已有提醒页的数据状态与操作路径,复用既有账号余额采集 API,无新菜单、页签或配置项;不重新公告。
复现与验收
account_ops_balance_test.go、AccountOpsBalanceStatus.spec.ts、既有 AccountOps 组件与页面测试。before.png、after.png、edit.png、mobile-dark.png和evidence.json。此早期图片及交互对应历史 capture head0b146cc15b8aa315d96cbf8218af079fba7ba2ca,非当前 head;当前头原生附件见下方,已人工查看列表与编辑弹窗;实际规则组件配合虚构账号、mock API,不代表生产整页验收。移动端沿用表格横向滚动。协议、调度或传输改动补充
使用原有
GET /admin/accounts/upstream-billing-probe/settings和/admin/accounts/:id/upstream-billing-probePUT/POST 管理接口,不改变模型路由或推理协议。仅用户点击时启用账号采集并查询,自动定时采集及倍率同步遵循账号已有设置。采集开关保存成功但后续查询失败时仍回读;重复点击禁用,离开组件后不继续下一步请求。异常反馈不会伪造余额或发通知成功。实际验证
git diff --checkmake test-frontend、后端单元 / 集成 / lint545504296e694f7c57154fa4710568a2a7fdf16d当前 attempts 已结束成功;早期失败与重跑证据保留,见下方维护验收pnpm exec vitest run src/components/admin/operations/__tests__/AccountOps src/views/admin/__tests__/AccountOpsView.spec.tspnpm run buildnode .github/scripts/account-alert-data-ux.mjs兼容性与运行影响
probe_enabled、可选last_known_balance;前端兼容旧响应缺少这两项。页面读取不会自动开启采集。文档与用户可见变化
同步中英文状态与按钮文案。截图证明组件交互,生产请求与通知投递需部署后独立验收。
Agent 使用声明
提交前自查
维护最终验收(2026-11-14)
545504296e694f7c57154fa4710568a2a7fdf16d;live production:7827a2f5f900ce50aafa37ab71ca1918dfe7cf8a。PR API 的较旧 baseea1f3a28d与 live base 已分别核对;target 增量是 Pelican 夹具/工作流,与本 PR 路径不交叉,只读 merge-tree 无冲突。43496633801attempt2 与 Issue57843496633650attempt2 已成功,旧 WS ctx_pool 断言失败及 apt 镜像失败日志保留,不把旧失败改名为成功,也未证明 WS 偶发失败根因。push CI43496621609亦成功。43496633882、artifact14073890190为本 head 实际组件/CSS渲染:GET settings→PUT enabled→POST probe 顺序,规则编辑/取消、页面 errors=[]。父级读取 raw jobs 与 artifact,未本地运行动态验证。545504296e…的上述 artifact;before 使用 baselineea1f3a28d的真实 RuleList 组件,其他依赖沿用 candidate,不声称完整历史整页重现。实际组件及真实 Tailwind CSS,虚构数据/mock API;非真实后台保存或生产验证。已检查截图无凭据/真实用户内容,并上传原生附件且逐一下载字节一致。移动图只说明窄视口/深色表格现状,沿用横向表格,不宣称完整移动端交互验收。before.png
after.png
edit.png
mobile-dark.png
gpt-6.1-sol,推理强度未知(运行时未暴露);范围为源码/CI/模板核对、附件、正文与获授权合并,不继承原作者未公开的模型配置。