fix(mobile): usage chart bars round at the top on Android#25139

closed2
main
fix/issue-15811
openedOct 25, 2026byJJulius Marminge
View on GitHubTwo-way sync enabledPR last imported 26d ago

Problem

On Android, open Usage with daily activity and select 30d, Cost or Tokens. Short bars have square tops and rounded bottoms; the tallest bar is rounded at both ends.

Change

Let each bar wrapper size to its painted stack and round only its top corners. Segment heights, provider order and baseline alignment stay the same. The separate iOS chart is unchanged.

Scope and approval

Fixes pingdotgg/t3code#15811

Triaged bug via the automated issue flow. GitCafe: #15811. GitHub issue.

Verification

  • Reproduced on Android 16 with the real app and populated 30d Cost usage; verified the corrected corners in the integrated client.
  • vp run check:changed passed format, lint, knip and affected-package typechecks. No tests added for this purely visual fix.
  • Two independent code reviews returned MERGE. Independent proof audit passed all rows; its P1 rebuild matched exactly (0 changed pixels). Audit.
  • Static synthetic fixtures in the real Usage screen: Cost/Tokens × light/dark × 390/1440 dp; single/stacked maximum and short bars, blank days, empty activity, and positive-token/zero-cost controls. All 18 stills matched a second frame at least 500ms later.
  • Android 16 emulator; DPR 2, density 320dpi, font scale 1.0; windows 390×900dp and 1440×900dp. Fixed seven-day fixture dates and data, same scroll and theme per pair. No interaction behavior changed, so stills are the proof.

Full evidence index, fixture and capture bundle, synthetic driver.

Before source: b76a110aa4. After source: 9eac558122. Main was then merged into the fix branch as 86ad01fcfd; every file in the usage feature remains identical to the captured after source. Both captures use the identical temporary synthetic fixture; it is uploaded above and excluded from the commit.

FixtureBefore — b76a110aa4After — 9eac558122Zero threshold ×8Delta >8/255
P1: Cost, Light, 390 dp
P2: Tokens, Light, 390 dp
P3: Cost, Dark, 390 dp
P4: Tokens, Dark, 390 dp
P5: Cost, Light, 1440 dp
P6: Tokens, Light, 1440 dp
P7: Cost, Dark, 1440 dp
P8: Tokens, Dark, 1440 dp

What else changed: short bars gain rounded upper corners and all positive bars lose rounded lower corners. Heights, internal seams, provider order, blank days and layout remain visually unchanged. Full-frame differences outside the chart reach 5–7/255 and resemble rasterization variation; this is an inference. Above 8/255, differences are confined to chart corners except one navigation-rail pixel with delta 9 in each wide dark pair (P7/P8). Zero-threshold images retain those low-amplitude differences; the frames are not otherwise byte-identical.

Controls: empty window displays “No activity in this window”; positive tokens with zero cost has no stray bar. All required rows verified. iOS, web and desktop use unchanged chart implementations.

Models: Claude Opus 5.5 (implementation and review), GPT-6.1-Sol (triage, review and proof); T3 Code with Claude Code and Codex harnesses.

Checks

22 successful · 12 skipped
All checks passed
86ad01f

Added 2 commits

  • Merge main into fix/issue-1581186ad01f
  • fix(mobile): usage chart bars round only the top of the painted stack9eac558
Synced from GitHub

Approvability

Verdict: Approved at 86ad01f

Macroscope's review found this PR approvable — This is a one-line, self-contained Android chart styling fix that makes each bar wrapper fit its painted stack and rounds only the top corners. It leaves chart data, sizing calculations, baseline alignment, and the separate iOS implementation unchanged.

You can add or adjust custom eligibility rules. Learn more.

Synced from GitHub

Review in Change Stack →

No actionable comments were generated in the recent review.

Recent review info
Run configuration
Commits

Reviewing files that changed from the base of the PR and between 796fc0aef161e33d2fc4e98b3e13023341e005ee and 86ad01fcfd84c0cef7066b34f77aacae3424798b.

Files selected for processing: 1
  • apps/mobile/src/features/usage/UsageDailyChart.tsx

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 3 remain after this review.

Walkthrough

Daily usage chart columns drop the h-full class and change from rounding all corners to rounding only the top.

Changes: Mobile usage chart

Layer / File(s)Summary
Daily bar styling
apps/mobile/src/features/usage/UsageDailyChart.tsx
Daily chart columns drop h-full and use rounded-t-sm instead of rounded-sm.

Priority: Low

Estimated code review effort: 1 (Trivial) | ~4 minutes

Change: Bug fix · Severity of issue fixed: Low

Suggested labels: size:XS, 📱 Native Change

Suggested reviewers: maria-rcks

Merge Risk: Minimal · up to 86ad0

This Android-only visual adjustment is ready to merge with no identified merge-blocking risk.

Pre-merge checks: 4
Check nameStatusExplanation
Title checkThe title clearly and concisely describes the Android usage chart rounding fix and follows the repository's conventional commit format.
Description checkThe description covers the problem, change, scope and approval, verification steps, environment details, and before/after UI evidence. It also identifies the unchanged platforms and reports the releva…
Linked Issues checkIssue #15811 requires the Android/non-iOS daily Usage chart bars to end with rounded top corners and not rounded bottom corners. The whole-PR diff changes `apps/mobile/src/features/usage/UsageDailyCha…
Out of Scope Changes checkThe whole-PR diff contains one focused change in apps/mobile/src/features/usage/UsageDailyChart.tsx. It changes only the Android/non-iOS daily chart wrapper sizing and corner rounding required by is…
Full details: Description check

Explanation

The description covers the problem, change, scope and approval, verification steps, environment details, and before/after UI evidence. It also identifies the unchanged platforms and reports the relevant checks and limitations.

Full details: Linked Issues check

Explanation

Issue #15811 requires the Android/non-iOS daily Usage chart bars to end with rounded top corners and not rounded bottom corners. The whole-PR diff changes apps/mobile/src/features/usage/UsageDailyChart.tsx: it removes h-full, so each wrapper can size to its painted stack, and changes rounded-sm to rounded-t-sm. This matches the reported cause and expected behavior. The issue has no separate automated-test requirement; the PR reports affected checks and visual verification.

Full details: Out of Scope Changes check

Explanation

The whole-PR diff contains one focused change in apps/mobile/src/features/usage/UsageDailyChart.tsx. It changes only the Android/non-iOS daily chart wrapper sizing and corner rounding required by issue #15811. No unrelated product area or iOS chart change is present in the reviewed diff.

Finishing Touches
📝 Generate docstrings
  • Commit to this branch
  • Create a new PR
🧪 Generate unit tests (beta)
  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

Note

🤖 Claude Opus 5.5 responding on behalf of Theo

Closing: this is covered by #21383, which landed. Reopen if a needed part is still missing.