Skip to content

Chart Extra credits on the usage plan card - #1481

Merged
AnthonyRonning merged 1 commit into
masterfrom
fix/usage-chart-extra-credits
Nov 6, 2026
Merged

AnthonyRonning merged 1 commit into
masterfrom
fix/usage-chart-extra-credits

Conversation

@AnthonyRonning

@AnthonyRonning AnthonyRonning commented Nov 6, 2026 •

Copy link
Copy Markdown
Contributor

Summary

The Usage chart plotted plan credits only, so the line flattened at the allowance while Extra credits kept being used.

  • Stack extra_credits on the plan line, including the Today point.
  • Project both pools in the dashed line.
  • Keep the meter, pace text and Team "You" share plan-only.
  • Change the exhausted-plan note to "Extra credits cover usage while your balance lasts. Plan credits reset on ." The old text promised they would last until the reset, even when the projection used them up.

Needs https://github.com/MaplePrivacyLabs/maple-billing-server/pull/159 for the chart to change. Safe in either order: a missing extra_credits reads as 0.

Testing

  • Pre-commit maple-research lane: 1,110 tests passed
  • tsc -b, ESLint and Prettier on the changed files
  • New buildPeriodProgress tests for Extra credits past the allowance and for a response without the field
  • Rendered CumulativeChart with sample data in headless Chrome; the line crosses the plan line and keeps rising

Not tested: the full Usage page against a linked Local billing server.

🤖 Generated with Claude Code


Autofix with [code]smith
Open in [code]smith · Need help on this PR? Tag @codesmith-bot with what you need.

The cumulative chart plotted plan credits only, so the line flattened
at the allowance while Extra credits kept being used. Stack Extra
credits on the plan line and project both pools. The meter and pace
text stay plan-only, and the note no longer promises Extra credits
last until the reset.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 6, 2026

Copy link
Copy Markdown
Contributor

Maple development preview: https://cbc6c462.maple-ca8.pages.dev

Commit: 89166b3be468e7265e0b9d5ed9676b8695fb3eee

Uses development API, billing, flags and PCR configuration. Cloudflare Access applies.

@AnthonyRonning
AnthonyRonning merged commit 663eb20 into master Nov 6, 2026
22 checks passed
@AnthonyRonning
AnthonyRonning deleted the fix/usage-chart-extra-credits branch November 6, 2026 19:54

This branch was successfully deployed

1 active deployment
pages-pr-1481 — 89166b3b Deployed Nov 6, 2026 by github-actions[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant