-
Notifications
You must be signed in to change notification settings - Fork 563
[Refactor] Remove unused ConnectUIContext and refactor wallet connection components #3449
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 Git ↗︎
|
🦋 Changeset detectedLatest commit: eaa5093 The changes in this PR will be included in the next version bump. This PR includes changesets to release 8 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 |
Your org requires 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. |
This stack of pull requests is managed by Graphite. Learn more about stacking. |
CodSpeed Performance ReportMerging #3449 will not alter performanceComparing Summary
|
size-limit report 📦
|
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #3449 +/- ##
==========================================
- Coverage 61.14% 61.01% -0.14%
==========================================
Files 891 889 -2
Lines 67375 67693 +318
Branches 3498 3498
==========================================
+ Hits 41196 41301 +105
- Misses 25496 25709 +213
Partials 683 683
*This pull request uses carry forward flags. Click here to find out more.
|
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.
very nice, more in line with my react native impl too.
one thing i want to do in both react native and react is export every single one of our 'screens' and useful components we use in there. This will help a lot.
ex. SendFunds
- ReceiveFunds
- ViewFunds
should all be exported, embeddable components. So we need to make sure the inputs to these components make sense to be used standalone
7606df5
to
8629634
Compare
8629634
to
c6ce8c3
Compare
Merge activity
|
…ion components (#3449) This pull request aims to clean up the codebase by removing unused packages and files. The following tasks were carried out: ### What changed? 1. Deleted the `useWalletConnectionCtx.ts` file from the `thirdweb` package. 2. Deleted the `wallet-connection.tsx` file from the `thirdweb` package. 3. Updated `ConnectButton.tsx`, `AllWalletsUI.tsx`, `AnyWalletConnectUI.tsx`, `ConnectEmbed.tsx`, and other UI components to remove references to the deleted files. 4. Modified various other files in the `thirdweb` and `react` packages to ensure that no part of the codebase relies on the removed files. ### How to test? 1. Run the project and navigate through the UI to ensure that the wallet connection features are functioning as expected without any errors. 2. Check the console for any warnings or errors related to missing files or dependencies. ### Why make this change? Removing unused packages and files helps to streamline the codebase, improving maintainability, and potentially reducing build times. This cleanup is part of ongoing efforts to ensure the codebase remains clean and efficient. --- <!-- start pr-codex --> --- ## PR-Codex overview This PR refactors context usage in the connect wallet UI and updates locale types for in-app wallets. ### Detailed summary - Refactored context usage in connect wallet UI - Updated locale types for in-app wallets - Renamed functions for better clarity > The following files were skipped due to too many changes: `packages/thirdweb/src/react/web/wallets/shared/GetStartedScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/InjectedConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/shared/CoinbaseSDKConnection.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/useConnectModal.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/ConnectButton.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletSelectionUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AllWalletsUI.tsx`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/shared/SocialLogin.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/ecosystem/EcosystemWalletFormUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/screens/StartScreen.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModal.tsx`, `packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx`, `packages/thirdweb/src/react/web/wallets/shared/OTPLoginUI.tsx`, `packages/thirdweb/src/react/web/wallets/in-app/InAppWalletFormUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/SmartWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModalInline.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/AnyWalletConnectUI.tsx`, `packages/thirdweb/src/react/web/wallets/shared/WalletConnectConnection.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectModalContent.tsx`, `packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx` > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
c6ce8c3
to
eaa5093
Compare
This pull request aims to clean up the codebase by removing unused packages and files. The following tasks were carried out:
What changed?
useWalletConnectionCtx.ts
file from thethirdweb
package.wallet-connection.tsx
file from thethirdweb
package.ConnectButton.tsx
,AllWalletsUI.tsx
,AnyWalletConnectUI.tsx
,ConnectEmbed.tsx
, and other UI components to remove references to the deleted files.thirdweb
andreact
packages to ensure that no part of the codebase relies on the removed files.How to test?
Why make this change?
Removing unused packages and files helps to streamline the codebase, improving maintainability, and potentially reducing build times. This cleanup is part of ongoing efforts to ensure the codebase remains clean and efficient.
PR-Codex overview
This PR refactors context usage in the connect wallet UI, updates in-app wallet locale handling, and optimizes code structure.
Detailed summary