Skip to content

fix(ai-credits-widget): compact G$ amounts from 1K, keep history and minimums exact (#<issue>) - #242

Merged
blueogin merged 1 commit into
mainfrom
fix/ai-credits-compact-g-amounts
Oct 8, 2026
Merged

blueogin merged 1 commit into
mainfrom
fix/ai-credits-compact-g-amounts

Conversation

@blueogin

@blueogin blueogin commented Oct 8, 2026

Copy link
Copy Markdown
Contributor

Description

Large G$ amounts in the summary card currently show as whole numbers (21,190.79 G$), which crowds the narrower layout. As agreed with Rael and Meri, G$ amounts now compact from 1,000 up, while the History tab and vault minimums keep exact amounts. All formatting still lives in one rule in format.ts.

Where 21,190.79 G$ renders as
Summary card (Deposited, Monthly Streaming) 21.2K G$ (exact amount in tooltip)
G$ balance in the hero / amount picker 21.2K
History entries and range total 21,190.79 G$
Vault minimums exact, still rounded up (1,549, not 1.5K)
Amounts under 1,000 are unchanged (950.5 G$). US$ formatting is unchanged.

About # (link your issue here)

How Has This Been Tested?

Please describe the tests that you ran to verify your changes.

Checklist:

  • PR title matches follow: (Feature|Bug|Chore) Task Name
  • My code follows the style guidelines of this project
  • I have followed all the instructions described in the initial task (check Definitions of Done)
  • I have performed a self-review of my own code
  • My changes generate no new warnings
  • I have added tests that prove my fix is effective or that my feature works
  • New and existing unit tests pass locally with my changes
  • I have added reference to a related issue in the repository
  • I have added a detailed description of the changes proposed in the pull request. I am as descriptive as possible, assisting reviewers as much as possible.
  • I have added screenshots related to my pull request (for frontend tasks)
  • I have pasted a gif showing the feature.
  • @mentions of the person or team responsible for reviewing proposed changes

…mums and history display

- Changed G$ formatting to use exact values instead of compacted for minimums and history.
- Introduced new `formatExactGValue` and `formatExactGAmount` functions for precise display.
- Updated relevant components to utilize the new formatting functions for consistency.
@blueogin
blueogin requested review from a team and L03TJ3 and a balanced review from Copilot and removed request for Copilot October 8, 2026 20:01
@blueogin
blueogin merged commit 5ca685e into main Oct 8, 2026
7 checks passed

This branch was successfully deployed

3 active deployments
preview-storybook — 5be58528 Deployed Oct 8, 2026 by blueogin via preview #410
preview-ai-credits — 5be58528 Deployed Oct 8, 2026 by blueogin via preview #360
internal — 5be58528 Deployed Oct 8, 2026 by blueogin via authorize-preview #360
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