fix(cost-insights): show spend in partial chart periods#4643
Conversation
Code Review SummaryStatus: No Issues Found | Recommendation: Merge Executive SummarySince the previous review, Files Reviewed (4 files)
Previous Review Summaries (2 snapshots, latest commit b856eca)Current summary above is authoritative. Previous snapshots are kept for context only. Previous review (commit b856eca)Status: No Issues Found | Recommendation: Merge Executive SummarySince the previous review, the only change is a single-line copy update in the anomaly tooltip label (removing the implication that a configured alert fired); no logic, security, or runtime issues found. Files Reviewed (4 files)
Previous review (commit f3d195d)Status: No Issues Found | Recommendation: Merge Executive SummaryReviewed the presenter/type/component changes that surface known spend for partially-covered chart periods; the discriminated-union change is consumed only within these files and the updated regression test matches the new behavior, with no security, runtime, logic, or breaking-API issues found in the changed lines. Files Reviewed (4 files)
Reviewed by claude-sonnet-5 · Input: 26 · Output: 5.1K · Cached: 509.1K Review guidance: REVIEW.md from base branch |
Summary
Show known Cost Insights spend when a chart period has incomplete rollup coverage.
Why this change is needed
Recent query optimizations stopped loading canonical data for hours before rollup coverage. Daily and weekly chart buckets can therefore contain both covered and unavailable hours.
The presenter treated those partial buckets as having no spend, so the chart rendered dashed zero-value bars even when captured spend appeared in the contributor list.
How this is addressed
Human Verification
Reviewer Notes
Human Reviewer Flags
Code Reviewer Agent
Code Reviewer Notes