Repository navigation
Fix dashboard sub-cent costs and the most-commented files label - #19
Merged
Merged
Conversation
Costs under one cent showed as $0.00; show two significant digits instead. The most-commented files count is reviews per file, not comments, so label the column Reviews and document it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01D8A4w121dBr3nYoutNLaV7 Signed-off-by: Claude <noreply@anthropic.com>
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.
Requested by Ziad · project thread
Two dashboard nits found during the 1.0.0 end-to-end test.
Summary
$0.00. A single review with a small model costs a fraction of a cent.formatUSDnow shows two significant digits below one cent ($0.0023) and<$0.0001for anything smaller. One cent and up is unchanged ($1,234.50). The same formatter feeds the stat tile, the cost chart, and the model and engine version tables.filesWithComments, a per-run list of paths, so the count is the number of reviews that commented on a file. The column header now says "Reviews" (its tooltip explains it), anddocs/metrics.mdand a comment onfileHotspot.Commentssay so too. The JSON field namecommentsis kept so the API doesn't change.[Unreleased]"Fixed" entries.Testing
go vet ./...andgo test ./internal/web/ ./internal/summary/pass on Go 1.27.formatUSDchecked in Node: 0 →$0.00, 0.0023 →$0.0023, 0.00004 →<$0.0001, 0.01 →$0.01, 1234.5 →$1,234.50.Generated by Claude Code