Skip to content

fix(dashboard): show remaining totals in usage donuts#303

Open
Daltonganger wants to merge 1 commit intoSoju06:mainfrom
Daltonganger:fix/dashboard-remaining-total
Open

fix(dashboard): show remaining totals in usage donuts#303
Daltonganger wants to merge 1 commit intoSoju06:mainfrom
Daltonganger:fix/dashboard-remaining-total

Conversation

@Daltonganger
Copy link
Copy Markdown
Contributor

Summary

  • use aggregate remaining credits instead of aggregate capacity for the dashboard 5h and weekly usage donut totals
  • keep the donut center value aligned with the existing per-account remaining slices and the visible “Remaining” label
  • add a focused frontend regression test so the dashboard view does not fall back to capacity totals again

Testing

  • bun run test -- src/features/dashboard/utils.test.ts src/features/dashboard/components/usage-donuts.test.tsx
  • bun run lint -- src/features/dashboard/components/dashboard-page.tsx src/features/dashboard/utils.ts src/features/dashboard/utils.test.ts
  • bun run typecheck

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