-
Notifications
You must be signed in to change notification settings - Fork 627
[MNY-322] SDK: Update success message shown in SwapWidget component #8509
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
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
|
🦋 Changeset detectedLatest commit: 7b873d3 The changes in this PR will be included in the next version bump. This PR includes changesets to release 4 packages
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 |
WalkthroughAdds a discriminating Changes
Estimated code review effort🎯 3 (Moderate) | ⏱️ ~20 minutes
Pre-merge checks and finishing touches❌ Failed checks (2 warnings)
✅ Passed checks (3 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Warning Review ran into problems🔥 ProblemsErrors were encountered while retrieving linked issues. Errors (1)
Comment |
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 Report❌ Patch coverage is Additional details and impacted files@@ Coverage Diff @@
## main #8509 +/- ##
==========================================
- Coverage 54.66% 54.65% -0.02%
==========================================
Files 920 920
Lines 61105 61114 +9
Branches 4142 4145 +3
==========================================
- Hits 33404 33399 -5
- Misses 27599 27613 +14
Partials 102 102
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
…8509) <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR updates the success messages in the `SuccessScreen` component across various widgets in the `thirdweb` package, specifically for payment and swap transactions. ### Detailed summary - Updated success message type in `SwapWidget` to `"swap-success"`. - Updated success message type in `BuyWidget` and `CheckoutWidget` to `"payment-success"`. - Added a new story `BasicSwapSuccess` in `SuccessScreen.stories.tsx`. - Modified `SuccessScreen` to handle different message types. - Updated displayed titles and descriptions based on the success type. - Changed button text from "View Payment Receipt" to "View Transaction Receipt". > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Success screens now display dynamic, context-appropriate messaging tailored to transaction type, with distinct titles and descriptions for swap versus payment transactions. * Enhanced user experience with improved terminology—the option to "View Transaction Receipt" now displays consistently across all payment flows for better clarity and consistency. <sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub> <!-- end of auto-generated comment: release notes by coderabbit.ai -->
fa5e039 to
7b873d3
Compare

PR-Codex overview
This PR updates the success messages displayed in various components of the
thirdweblibrary to provide clearer feedback for users after completing transactions.Detailed summary
typeforSuccessScreeninSwapWidgetto"swap-success".typeprop handling inSuccessScreenfor distinguishing between"swap-success"and"payment-success".SuccessScreenbased on thetype.BasicSwapSuccessinSuccessScreen.stories.tsxto showcase the swap success scenario.Summary by CodeRabbit
✏️ Tip: You can customize this high-level summary in your review settings.