Skip to content

Conversation

@panteliselef
Copy link
Member

@panteliselef panteliselef commented Apr 24, 2025

Description

  • Fixes CLS issues when rendering account funds
  • Renames "accounts funds" to "payment sources" for consistency
  • Auto opes the "Add a new payment source" drawer only if no payments sources exist

Checklist

  • pnpm test runs as expected.
  • pnpm build runs as expected.
  • (If applicable) JSDoc comments have been added or updated for any package exports
  • (If applicable) Documentation has been updated

Type of change

  • 🐛 Bug fix
  • 🌟 New feature
  • 🔨 Breaking change
  • 📖 Refactoring / dependency upgrade / documentation
  • other:

- Fixes CLS issues when rendering account funds
- Renames "accounts funds" to "payment sources" for consistency
- Auto opes the "Add a new payment source" drawer only if no payments sources exist
@changeset-bot
Copy link

changeset-bot bot commented Apr 24, 2025

🦋 Changeset detected

Latest commit: a2e5343

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 3 packages
Name Type
@clerk/clerk-js Patch
@clerk/chrome-extension Patch
@clerk/clerk-expo Patch

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

@vercel
Copy link

vercel bot commented Apr 24, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
clerk-js-sandbox ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 24, 2025 1:31pm

Comment on lines +34 to +42
useFetch(
__experimental_commerce?.getPaymentSources,
{
...(subscriberType === 'org' ? { orgId: organization?.id } : {}),
},
undefined,
'commerce-payment-sources',
);

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

basically prefetching from pricing table in order to avoid the layout shift.

>
{/* TODO(@Commerce): needs localization */}
<Disclosure.Trigger text='Account Funds' />
<Disclosure.Trigger text='Payment Sources' />
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In follow up ticket we will be handling localization for Checkout.

@panteliselef panteliselef requested review from a team and aeliox April 24, 2025 10:15
@panteliselef panteliselef merged commit da17a96 into main Apr 24, 2025
31 checks passed
@panteliselef panteliselef deleted the elef/com-523-iterate-on-account-funds branch April 24, 2025 14:09
@panteliselef panteliselef self-assigned this Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants