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

chore: remove "upgrade to smart account" screen #3375

Merged
merged 12 commits into from
Dec 4, 2024

Conversation

magiziz
Copy link
Contributor

@magiziz magiziz commented Dec 2, 2024

Description

Blocked by this PR #3372

Removed "active your account" tag

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-1183

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

Copy link

vercel bot commented Dec 2, 2024

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

Name Status Preview Comments Updated (UTC)
appkit-laboratory ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 10:11pm
appkit-vue-solana ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 10:11pm
appkit-wagmi-cdn-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 10:11pm
vue-wagmi-example ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 4, 2024 10:11pm

Copy link

changeset-bot bot commented Dec 2, 2024

🦋 Changeset detected

Latest commit: 8b92ea1

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

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

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
Contributor

github-actions bot commented Dec 2, 2024

Coverage Report for Coverage

Status Category Percentage Covered / Total
🔵 Lines 403.72999999999996% 5415 / 24304
🔵 Statements 403.72999999999996% 5415 / 24304
🔵 Functions 417.74000000000007% 414 / 1485
🔵 Branches 561.3500000000001% 831 / 1827
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/scaffold-ui/src/partials/w3m-account-wallet-features-widget/index.ts 0% 0% 0% 0% 1-243
Generated in workflow #7759 for commit 41de09a by the Vitest Coverage Report Action

Copy link
Contributor

github-actions bot commented Dec 4, 2024

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 47.72% 12267 / 25701
🔵 Statements 47.72% 12267 / 25701
🔵 Functions 34.26% 832 / 2428
🔵 Branches 76.89% 1308 / 1701
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/core/src/controllers/RouterController.ts 57.95% 100% 73.33% 57.95% 123-159, 199-206
packages/scaffold-ui/exports/index.ts 100% 100% 100% 100%
packages/scaffold-ui/src/modal/w3m-router/index.ts 10.97% 100% 0% 10.97% 28-30, 33-47, 50-52, 56-59, 63-169, 172-186, 189-190
packages/scaffold-ui/src/partials/w3m-account-wallet-features-widget/index.ts 54.96% 52.38% 46.66% 54.96% 53-61, 71-73, 135, 140, 148-149, 160, 169-170, 172-173, 175-176, 183-187, 193-194, 197-198, 201-202, 205-225, 228-229, 232-243, 221-240
packages/scaffold-ui/src/partials/w3m-header/index.ts 13.33% 100% 0% 13.33% 24-90, 117-130, 133-134, 138-143, 149-151, 154-161, 164-178, 181-189, 192-207, 210-243, 246-250, 253-258, 261-266, 269-277, 280-308, 311-312
Generated in workflow #7847 for commit 8b92ea1 by the Vitest Coverage Report Action

Comment on lines +14 to +18
vi.spyOn(CoreHelperUtil, 'isMobile').mockReturnValue(false)
vi.spyOn(AccountController, 'state', 'get').mockReturnValue({
...AccountController.state,
address: undefined
})
Copy link
Contributor Author

Choose a reason for hiding this comment

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

There were some issues with valtio proxy states and web components when trying to use vi.mock('@reown/appkit-core', ()=> ...), instead i used vi.spyOn which works for now 🙏

@@ -265,10 +241,6 @@ export class W3mAccountWalletFeaturesWidget extends LitElement {
})
RouterController.push('WalletSend')
}

Copy link
Collaborator

Choose a reason for hiding this comment

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

given we are removing access to the route, we shuold remove all unnecessary views and specific components to reduce bundle

@magiziz magiziz changed the title [BLOCKED] chore: remove "active your account" tag chore: remove "active your account" tag Dec 4, 2024
@magiziz magiziz force-pushed the chore/remove-smart-account-tag branch from 873c275 to b0af6d9 Compare December 4, 2024 14:31
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.

2 participants