-
Notifications
You must be signed in to change notification settings - Fork 619
[Checkout] Add theme support and improve client configuration #6958
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
[Checkout] Add theme support and improve client configuration #6958
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has enabled the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #6958 +/- ##
=======================================
Coverage 55.03% 55.03%
=======================================
Files 898 898
Lines 57342 57342
Branches 3967 3967
=======================================
Hits 31558 31558
Misses 25687 25687
Partials 97 97
🚀 New features to boost your workflow:
|
size-limit report 📦
|
485b7fe to
0bba535
Compare

PR-Codex overview
This PR introduces a new type,
CheckoutParams, to define parameters for the checkout process and enhances theThemeHandlercomponent to manage themes based on URL search parameters. It also updates theCheckoutLayoutandCheckoutEmbedcomponents to support the new parameters.Detailed summary
CheckoutParamstype intypes.tsfor checkout parameters.ThemeHandlerinThemeHandler.client.tsxto set themes based on URL search parameters.CheckoutLayoutto useasyncand includeThemeHandlerwithin aSuspensecomponent.CheckoutEmbedto accepttheme,name, andimagefromCheckoutParams.RoutesPageto utilizeCheckoutParamsfor parameter validation and extraction.