-
Notifications
You must be signed in to change notification settings - Fork 461
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[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. |
packages/thirdweb/src/react/web/ui/prebuilt/Account/balance.tsx
Outdated
Show resolved
Hide resolved
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
packages/thirdweb/src/react/web/ui/prebuilt/Account/balance.tsx
Outdated
Show resolved
Hide resolved
|
||
const client = TEST_CLIENT; | ||
|
||
describe("SendFunds screen", () => { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thank you for the tests! 76% coverage really nice 👌
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yesser, just trying to push to 80% so we can get this PR merged!
Merge activity
|
43aeac4
to
d54a6d0
Compare
d54a6d0
to
a6c781c
Compare
a6c781c
to
f0111e7
Compare
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 -->
f0111e7
to
43fbcac
Compare
CNCT-2494
PR-Codex overview
This PR introduces significant enhancements to the
AccountBalance
andConnectButton
components, 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
showBalanceInFiat
prop toAccountBalance
andConnectButton
.formatFn
inAccountBalance
to acceptAccountBalanceInfo
.formatNumber
andshortenLargeNumber
.