[repo-assist:issue-fix] githubnext/gh-cao issue 20097 fix review
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- Half a day
- Newbie friendliness
- 25/100
- Issue type
- Bug
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- javascript
- Domain
- documentation, frontend
Research direction
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.
Written by the indexing model from the issue text.
Description
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
- Dominant language
- JavaScript
- Stars
- 14
- Forks
- 5
- Avg merge
- 3h 24m
- Merged PRs (30d)
- 796
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from githubnext/gh-cao
-
agentic-workflows
Difficulty 1/5 Under an hour Newbie friendliness 68/100
githubnext/gh-cao#20168 ·
Maintainers usually reply within 1 day
-
repo-assist repo-assist:issue-triage
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
githubnext/gh-cao#20041 ·
Maintainers usually reply within 1 day
-
agentic-workflows self-care self-care:pages-health
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
githubnext/gh-cao#20028 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
githubnext/gh-cao#19959 ·
Maintainers usually reply within 1 day
-
agentic-workflows self-care self-care:reactive-ui-expert
Difficulty 2/5 Under an hour Newbie friendliness 85/100
githubnext/gh-cao#19923 ·
Maintainers usually reply within 1 day
All issues in githubnext/gh-cao
Similar issues
-
needs-area-label
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 2 days
-
serienstream.toOpenN: AdGuard for Windows P2: High T: Annoyance
Difficulty 2/5 1-3 hours Newbie friendliness 61/100
AdguardTeam/AdguardFilters#246310 ·
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
liberation-data/drivine#615 ·
Maintainers usually reply within 1 day
-
bug dependencies known-issue
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
-
unreleased dependencies
Difficulty 1/5 Under an hour Newbie friendliness 72/100
cloudfour/eslint-config#760 ·
Maintainers usually reply within 1 day