[repo-assist:issue-fix] githubnext/gh-cao issue 20097 fix review
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 3/5
- 预计耗时
- 半天
- 新手友好度
- 25/100
- Issue 类型
- 缺陷
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- javascript
调研方向
Start with the formatNumber function in dashboard/site/src/view-formatters.js, which now formats the unrounded AIC value, and with the DLS-UNIT-004 entry in docs/dashboard-language-specification.md, whose spec change needs maintainer sign-off. The matching test is in dashboard/site/test/unit/view-formatters.test.js. Done means npm test and npm run lint pass in dashboard/site and the Cost page per-repository slices sum to the total.
由索引模型根据 Issue 内容生成。
描述
The Cost page rounded aicc values to 2 AIC before dividing by 100, so per-repository slices ($0.40 each) disagreed with the total ($1.18). The attached patch formats the unrounded AIC value (rounded to cents by Intl), giving $0.39 each and $1.17, and updates DLS-UNIT-004 and its unit test. Validation: direct formatNumber check passed (341→$3.41, 39→$0.39, 117→$1.17); vitest/eslint could not run because dashboard/site dependencies failed to install.
Action: A maintainer should review the attached review bundle and confirm the spec change to DLS-UNIT-004 is acceptable; acceptance: npm test and npm run lint pass in dashboard/site/ and the Cost page totals reconcile.
Agent prompt
Apply the patch from the repo-assist-issue-fix-issue-20097 review bundle to githubnext/gh-cao (base f8b2fc99), then run npm ci && npm test && npm run lint && npm run typecheck in dashboard/site and npm run docs:build; fix any failures without weakening tests, then open a PR that Closes #20097.
Changed files
- dashboard/site/src/view-formatters.js
- dashboard/site/test/unit/view-formatters.test.js
- docs/dashboard-language-specification.md
Control Plane
cao: githubnext/gh-cao, correlation: 41444087799-128
Generated by :tools: Repo Assist / Issue Fix · copilot · auto · ~28 AIC · ⌖ ~1 AIC · ⊞ 14.2K · ◷
- expires on Nov 16, 2026, 12:34 PM UTC
- 主要语言
- JavaScript
- 星标
- 14
- 派生
- 5
- 平均合并
- 3 小时 24 分钟
- 30 天内合并 PR
- 796
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 没有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
githubnext/gh-cao 的其他 Issue
-
agentic-workflows
难度 1/5 1 小时以内 新手友好度 68/100
githubnext/gh-cao#20168 ·
维护者通常 1 天内回复
-
repo-assist repo-assist:issue-triage
难度 2/5 1-3 小时 新手友好度 70/100
githubnext/gh-cao#20041 ·
维护者通常 1 天内回复
-
agentic-workflows self-care self-care:pages-health
难度 2/5 1-3 小时 新手友好度 85/100
githubnext/gh-cao#20028 ·
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 70/100
githubnext/gh-cao#19959 ·
维护者通常 1 天内回复
-
agentic-workflows self-care self-care:reactive-ui-expert
难度 2/5 1 小时以内 新手友好度 85/100
githubnext/gh-cao#19923 ·
维护者通常 1 天内回复
查看 githubnext/gh-cao 的全部 Issue
相似的 Issue
-
curriculum documentation quality
难度 2/5 1-3 小时 新手友好度 77/100
githubnext/gh-aw-workshop#5367 ·
维护者通常 3 天内回复
-
难度 2/5 1-3 小时 新手友好度 60/100
HeyPuter/everything#187 ·
维护者通常 1 天内回复
-
channels:add check:passed
难度 2/5 1-3 小时 新手友好度 63/100
维护者通常 4 天内回复
-
beginner blocked
难度 2/5 1-3 小时 新手友好度 82/100
hiero-ledger/hiero-sdk-js#4670 ·
维护者通常 1 天内回复
-
难度 1/5 1 小时以内 新手友好度 61/100
维护者通常 1 天内回复