Skip to content
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

fix: show user info for ecosystem wallets #4715

Merged
merged 1 commit into from
Sep 20, 2024

Conversation

joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Sep 19, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on fixing the display of user information for ecosystem wallets in the Thirdweb application.

Detailed summary

  • Renamed getEnclaveUserStatus to getUserStatus for consistency.
  • Updated functions to include ecosystem parameter for ecosystem wallets.
  • Modified user data retrieval logic for ecosystem wallets.
  • Added new function isEcosystemWallet for ecosystem wallet identification.
  • Updated InAppWalletUserInfo component to handle ecosystem wallet information retrieval.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

Copy link

vercel bot commented Sep 19, 2024

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 3:39am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 3:39am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 3:39am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 20, 2024 3:39am

Copy link

changeset-bot bot commented Sep 19, 2024

🦋 Changeset detected

Latest commit: 7d547a4

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

This PR includes changesets to release 1 package
Name Type
thirdweb 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

Copy link

graphite-app bot commented Sep 19, 2024

Your org has enabled the Graphite merge queue for merging into main

Add 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.

Copy link
Member Author

This stack of pull requests is managed by Graphite. Learn more about stacking.

Join @joaquim-verges and the rest of your teammates on Graphite Graphite

Copy link
Contributor

github-actions bot commented Sep 19, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43.67 KB (0%) 874 ms (0%) 545 ms (+112.78% 🔺) 1.5 s
thirdweb (cjs) 101.2 KB (0%) 2.1 s (0%) 563 ms (+47.3% 🔺) 2.6 s
thirdweb (minimal + tree-shaking) 4.85 KB (0%) 98 ms (0%) 98 ms (+218.64% 🔺) 195 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 77 ms (+810.32% 🔺) 87 ms
thirdweb/react (minimal + tree-shaking) 16.72 KB (0%) 335 ms (0%) 139 ms (+200.91% 🔺) 473 ms

Copy link

codecov bot commented Sep 19, 2024

Codecov Report

Attention: Patch coverage is 15.38462% with 22 lines in your changes missing coverage. Please review.

Project coverage is 50.61%. Comparing base (c1008a5) to head (7d547a4).
Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
...hirdweb/src/react/web/ui/ConnectWallet/Details.tsx 9.09% 20 Missing ⚠️
...dweb/src/wallets/in-app/core/wallet/in-app-core.ts 50.00% 1 Missing ⚠️
...irdweb/src/wallets/in-app/web/lib/web-connector.ts 50.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #4715      +/-   ##
==========================================
- Coverage   50.62%   50.61%   -0.02%     
==========================================
  Files        1024     1024              
  Lines       54559    54578      +19     
  Branches     3891     3891              
==========================================
- Hits        27623    27622       -1     
- Misses      26303    26323      +20     
  Partials      633      633              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from c1008a5
packages 46.85% <15.38%> (-0.03%) ⬇️

*This pull request uses carry forward flags. Click here to find out more.

Files with missing lines Coverage Δ
...eb/src/wallets/in-app/core/authentication/types.ts 100.00% <ø> (ø)
...dweb/src/wallets/in-app/core/wallet/in-app-core.ts 18.30% <50.00%> (-0.58%) ⬇️
...irdweb/src/wallets/in-app/web/lib/web-connector.ts 4.71% <50.00%> (ø)
...hirdweb/src/react/web/ui/ConnectWallet/Details.tsx 7.29% <9.09%> (+0.05%) ⬆️

... and 2 files with indirect coverage changes

Copy link
Member Author

joaquim-verges commented Sep 20, 2024

Merge activity

  • Sep 19, 8:05 PM EDT: Graphite disabled "merge when ready" on this PR due to: a merge conflict with the target branch; resolve the conflict and try again..
  • Sep 19, 11:34 PM EDT: joaquim-verges added this pull request to the Graphite merge queue.
  • Sep 19, 11:38 PM EDT: joaquim-verges merged this pull request with the Graphite merge queue.

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on fixing the display of user information for ecosystem wallets in the Thirdweb application.

### Detailed summary
- Updated function name from `getEnclaveUserStatus` to `getUserStatus` in multiple files.
- Modified parameters in functions to include `ecosystem` for ecosystem wallets.
- Updated caching mechanism for InAppWalletConnector.
- Added logic to handle ecosystem wallets in `InAppWalletUserInfo` component.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
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.

2 participants