Skip to content

Conversation

@tomiir
Copy link
Collaborator

@tomiir tomiir commented Mar 26, 2025

Description

  • Filter all wallets by namespace to fix issue where all wallets from all namespaces would appear in all wallets if previously fetched

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)

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

@changeset-bot
Copy link

changeset-bot bot commented Mar 26, 2025

🦋 Changeset detected

Latest commit: 94f788a

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

This PR includes changesets to release 20 packages
Name Type
@reown/appkit-controllers Patch
@reown/appkit-adapter-bitcoin Patch
@reown/appkit-adapter-ethers Patch
@reown/appkit-adapter-ethers5 Patch
@reown/appkit-adapter-solana Patch
@reown/appkit-adapter-wagmi Patch
@reown/appkit Patch
@reown/appkit-utils Patch
@reown/appkit-cdn Patch
@reown/appkit-cli Patch
@reown/appkit-common Patch
@reown/appkit-core Patch
@reown/appkit-experimental Patch
@reown/appkit-polyfills Patch
@reown/appkit-scaffold-ui Patch
@reown/appkit-siwe Patch
@reown/appkit-siwx Patch
@reown/appkit-ui Patch
@reown/appkit-wallet Patch
@reown/appkit-wallet-button 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

@tomiir tomiir requested a review from enesozturk March 26, 2025 15:29
@vercel
Copy link

vercel bot commented Mar 26, 2025

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

Name Status Preview Comments Updated (UTC)
appkit-demo ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2025 7:13am
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 16, 2025 7:13am
12 Skipped Deployments
Name Status Preview Comments Updated (UTC)
appkit-basic-ep ⬜️ Ignored (Inspect) Apr 16, 2025 7:13am
appkit-basic-ep-example ⬜️ Ignored (Inspect) Apr 16, 2025 7:13am
appkit-basic-example ⬜️ Ignored (Inspect) Apr 16, 2025 7:13am
appkit-basic-sign-client-example ⬜️ Ignored (Inspect) Apr 16, 2025 7:13am
appkit-basic-up-example ⬜️ Ignored (Inspect) Apr 16, 2025 7:13am
appkit-ethers5-bera ⬜️ Ignored (Inspect) Apr 16, 2025 7:13am
appkit-nansen-demo ⬜️ Ignored (Inspect) Apr 16, 2025 7:13am
appkit-vue-solana ⬜️ Ignored (Inspect) Apr 16, 2025 7:13am
appkit-wagmi-cdn-example ⬜️ Ignored (Inspect) Apr 16, 2025 7:13am
ethereum-provider-wagmi-example ⬜️ Ignored (Inspect) Visit Preview Apr 16, 2025 7:13am
next-wagmi-solana-bitcoin-example ⬜️ Ignored (Inspect) Apr 16, 2025 7:13am
vue-wagmi-example ⬜️ Ignored (Inspect) Apr 16, 2025 7:13am

wallet.chains?.some(chain => caipNetworkIds.includes(chain))
)

state.wallets = state.wallets.filter(wallet =>
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should we clear the filtering on top if namespace is undefined?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And after filtering first time, how to remove filter as the state.wallets are filtered before, it doesn have all the wallets 🤔

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But isn't this reapplied every time the network specific button is clicked?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changed the aproach to filter on fetch instead of here

@github-actions
Copy link
Contributor

github-actions bot commented Mar 26, 2025

Warnings
⚠️ File packages/controllers/src/controllers/ApiController.ts contains a KEY or SECRET

Generated by 🚫 dangerJS against 94f788a

@github-actions
Copy link
Contributor

github-actions bot commented Mar 26, 2025

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 74.73% 25295 / 33846
🔵 Statements 74.73% 25295 / 33846
🔵 Functions 66.18% 2137 / 3229
🔵 Branches 83.09% 4885 / 5879
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/appkit/exports/constants.ts 100% 100% 100% 100%
packages/controllers/src/controllers/ApiController.ts 94.42% 89.88% 88.88% 94.42% 103-104, 165, 172-173, 353-361, 375, 379
Generated in workflow #11081 for commit 94f788a by the Vitest Coverage Report Action

Copy link
Contributor

@arein arein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you add a unit test Rocky for regressions?

@tomiir tomiir closed this Sep 17, 2025
auto-merge was automatically disabled September 17, 2025 09:16

Pull request was closed

@github-actions github-actions bot locked and limited conversation to collaborators Sep 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants