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: make the wallet image listen state updates for embedded use case #3466

Merged
merged 3 commits into from
Dec 16, 2024

Conversation

enesozturk
Copy link
Contributor

@enesozturk enesozturk commented Dec 16, 2024

Description

  • Refactors the connectorImages object state update instead to trigger Valtio life cycle
  • Refactors w3m-list-wallet element to watch connectorImages changes to render some connector images properly for embedded mode use case

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 16, 2024

Copy link

changeset-bot bot commented Dec 16, 2024

🦋 Changeset detected

Latest commit: 23526a9

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

This PR includes changesets to release 18 packages
Name Type
@reown/appkit-scaffold-ui Patch
@reown/appkit-core 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-experimental Patch
@reown/appkit-polyfills 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

Copy link

vercel bot commented Dec 16, 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 16, 2024 8:04pm
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 8:04pm
appkit-vue-solana ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 8:04pm
appkit-wagmi-cdn-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 8:04pm
vue-wagmi-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 8:04pm

@enesozturk enesozturk changed the title enes/apkt 1728 walletconnect icon is not showing enes/apkt 1728 walletconnect icon is not showingarefactor: make the wallet image listen state updates for embedded use case Dec 16, 2024
@enesozturk enesozturk changed the title enes/apkt 1728 walletconnect icon is not showingarefactor: make the wallet image listen state updates for embedded use case refactor: make the wallet image listen state updates for embedded use case Dec 16, 2024
@enesozturk enesozturk requested review from tomiir and svenvoskamp and removed request for tomiir December 16, 2024 08:48
Copy link
Contributor

github-actions bot commented Dec 16, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 53.98% 14804 / 27424
🔵 Statements 53.98% 14804 / 27424
🔵 Functions 40.8% 1063 / 2605
🔵 Branches 75.33% 1885 / 2502
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/core/src/controllers/AssetController.ts 92.68% 100% 58.82% 92.68% 35, 39, 51
packages/scaffold-ui/src/partials/w3m-connect-walletconnect-widget/index.ts 30% 100% 0% 30% 27-32, 35-36, 40-67, 71-73
Generated in workflow #8142 for commit 23526a9 by the Vitest Coverage Report Action

public constructor() {
super()
this.unsubscribe.push(
ConnectorController.subscribeKey('connectors', val => (this.connectors = val))
ConnectorController.subscribeKey('connectors', val => (this.connectors = val)),
AssetController.subscribeKey('connectorImages', val => (this.connectorImages = val))
Copy link
Collaborator

Choose a reason for hiding this comment

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

just confirming these are automatically fetched during initialization

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