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

refactor: filter out the duplicate wallets when there is both injected and recent #3446

Conversation

enesozturk
Copy link
Contributor

@enesozturk enesozturk commented Dec 12, 2024

Description

There is a specific case for the wallets which have both extension and mobile options. When users select the wallet from "All Wallets" view and scan the QR code, we are saving that wallet into our local storage and next time when they open the connect view, they see that wallet with "Recent" tag. But if same wallet also available as extension, there is a duplication occurs.

This PR introduces changes to remove that duplication by filtering out the available connectors with recent list.

Type of change

  • Chore (non-breaking change that addresses non-functional tasks, maintenance, or code quality improvements)
  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Associated Issues

For Linear issues: Closes APKT-xxx
For GH issues: closes #...

Showcase (Optional)

If there is a UI change include the screenshots with before and after state.
If new feature is being introduced, include the link to demo recording.

Checklist

  • Code in this PR is covered by automated tests (Unit tests, E2E tests)
  • My changes generate no new warnings
  • I have reviewed my own code
  • I have filled out all required sections
  • I have tested my changes on the preview link
  • Approver of this PR confirms that the changes are tested on the preview link

Copy link

linear bot commented Dec 12, 2024

Copy link

changeset-bot bot commented Dec 12, 2024

🦋 Changeset detected

Latest commit: aee92df

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

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

vercel bot commented Dec 12, 2024

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

Name Status Preview Comments Updated (UTC)
appkit-builder ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 8:34am
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 8:34am
appkit-vue-solana ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 8:34am
appkit-wagmi-cdn-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 8:34am
vue-wagmi-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 12, 2024 8:34am

Copy link
Contributor

github-actions bot commented Dec 12, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 53.17% 14542 / 27347
🔵 Statements 53.17% 14542 / 27347
🔵 Functions 40.06% 1041 / 2598
🔵 Branches 75.12% 1812 / 2412
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/scaffold-ui/src/partials/w3m-connect-recent-widget/index.ts 94.87% 91.66% 75% 94.87% 55, 58
packages/scaffold-ui/src/views/w3m-connecting-wc-view/index.ts 12.02% 100% 0% 12.02% 34-41, 44-45, 49-57, 61-93, 96-114, 117-156, 159-179, 182-195, 198-212, 112
Generated in workflow #8067 for commit aee92df by the Vitest Coverage Report Action

@enesozturk enesozturk merged commit c1a641f into main Dec 12, 2024
19 checks passed
@enesozturk enesozturk deleted the enes/apkt-1734-trust-wallet-duplicate-wallet-when-using-wallet-button branch December 12, 2024 09:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants