[SDK] USD balance for AccountBalance#5533
Conversation
🦋 Changeset detectedLatest commit: 43fbcac The changes in this PR will be included in the next version bump. This PR includes changesets to release 1 package
Not sure what this means? Click here to learn what changesets are. Click here if you're a maintainer who wants to add another changeset to this PR |
Your org has enabled the Graphite merge queue for merging into mainAdd the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
size-limit report 📦
|
1bf3114 to
c2329af
Compare
|
Don't forget a changeset but lgtm |
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5533 +/- ##
==========================================
+ Coverage 48.97% 50.62% +1.65%
==========================================
Files 1089 1091 +2
Lines 56891 57100 +209
Branches 4440 4590 +150
==========================================
+ Hits 27861 28908 +1047
+ Misses 28325 27478 -847
- Partials 705 714 +9
*This pull request uses carry forward flags. Click here to find out more.
|
dcd6b94 to
07afcee
Compare
c2329af to
4b66fbd
Compare
b31951c to
ebfc761
Compare
ebfc761 to
7beaa25
Compare
ace4abb to
e05ac7a
Compare
e05ac7a to
7d8d36b
Compare
joaquim-verges
left a comment
There was a problem hiding this comment.
just to remove the fiat fetching on connect button by default
|
|
||
| const client = TEST_CLIENT; | ||
|
|
||
| describe("SendFunds screen", () => { |
There was a problem hiding this comment.
thank you for the tests! 76% coverage really nice 👌
There was a problem hiding this comment.
yesser, just trying to push to 80% so we can get this PR merged!
Merge activity
|
CNCT-2494 <!-- start pr-codex --> --- ## PR-Codex overview This PR enhances the `AccountBalance` and `ConnectButton` components to support displaying balances in fiat currency (currently only USD). It also introduces new utility functions and improves test coverage across various components. ### Detailed summary - Added `showBalanceInFiat` prop to `AccountBalance` and `ConnectButton`. - Updated `formatFn` in `AccountBalance` to accept an object of type `AccountBalanceInfo`. - Introduced `shortenLargeNumber` and `formatNumber` utility functions. - Improved tests for `ConnectButton`, `AccountBalance`, and related components. - Enhanced rendering logic for displaying balances in both token and fiat. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->

CNCT-2494
PR-Codex overview
This PR introduces significant enhancements to the
AccountBalanceandConnectButtoncomponents, allowing them to display balances in fiat (USD) and improving formatting options. It also expands utility functions and adds test coverage for these features.Detailed summary
showBalanceInFiatprop toAccountBalanceandConnectButton.formatFninAccountBalanceto acceptAccountBalanceInfo.formatNumberandshortenLargeNumber.