-
Notifications
You must be signed in to change notification settings - Fork 619
[SDK] Feature: Propagate error message from failed sign in #5621
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] Feature: Propagate error message from failed sign in #5621
Conversation
🦋 Changeset detectedLatest commit: 279cb6f 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 |
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
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. |
0ad7141 to
cf21e6a
Compare
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #5621 +/- ##
==========================================
+ Coverage 44.92% 45.89% +0.96%
==========================================
Files 1083 1083
Lines 56326 56333 +7
Branches 4061 4124 +63
==========================================
+ Hits 25306 25853 +547
+ Misses 30337 29788 -549
- Partials 683 692 +9
*This pull request uses carry forward flags. Click here to find out more.
|
joaquim-verges
left a comment
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.
ty!!
2bfc2ed to
b19f1b3
Compare
Merge activity
|
<!-- start pr-codex -->
## PR-Codex overview
This PR focuses on enhancing the user interface for error handling during the sign-in process in the `SignatureScreen` component of the `thirdweb` wallet. It propagates error messages to the UI, improving user feedback when sign-in fails.
### Detailed summary
- Updated `walletId` parameter to accept `Wallet` or `string` in `is-ecosystem-wallet.ts`.
- Changed state management in `SignatureScreen.tsx` to include an `error` state.
- Modified sign-in logic to set error messages on failure.
- Enhanced UI to display error messages and loading state.
- Added `data-testid` attributes for testing.
- Updated tests in `SignatureScreen.test.tsx` to cover new error handling scenarios and UI changes.
> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`
<!-- end pr-codex -->
b19f1b3 to
279cb6f
Compare
PR-Codex overview
This PR focuses on enhancing the user experience during the sign-in process by propagating error messages to the UI and improving the handling of wallet connection states.
Detailed summary
is-ecosystem-wallet.tsto acceptWalletorstringas a parameter.SignatureScreen.tsxto manage error states and display error messages.data-testidattributes for testing purposes.SignatureScreen.test.tsxto cover various scenarios including error handling and wallet disconnection.