Skip to content

Remove duplicated in-app-wallet and account-abstraction settings UI from /connect layout #5748

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

MananTank
Copy link
Member

@MananTank MananTank commented Dec 16, 2024

Problem solved

Fixes: DASH-630

In-App wallet and Account abstraction settings are already available in project settings layout


PR-Codex overview

This PR primarily focuses on removing the Configuration section from the in-app wallets feature and refactoring the AccountAbstractionPage and SmartWallets components to eliminate the dependency on Account and ApiKeyService, streamlining the code.

Detailed summary

  • Deleted page.tsx and loading.tsx from connect/in-app-wallets/config.
  • Removed the Configuration entry from the routing setup.
  • Eliminated twAccount from AccountAbstractionPage props.
  • Simplified data fetching in page.tsx by removing getValidAccount.
  • Removed twAccount from SmartWalletsProps interface and its usage in SmartWallets.
  • Deleted Sponsorship Policies tab from SmartWallets component.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@vercel vercel bot temporarily deployed to Preview – docs-v2 December 16, 2024 16:01 Inactive
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)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 16, 2024 6:51pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Dec 16, 2024 6:51pm
thirdweb_playground ⬜️ Skipped (Inspect) Dec 16, 2024 6:51pm
wallet-ui ⬜️ Skipped (Inspect) Dec 16, 2024 6:51pm

Copy link

changeset-bot bot commented Dec 16, 2024

⚠️ No Changeset found

Latest commit: b173ad2

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

Click here if you're a maintainer who wants to add a changeset to this PR

Copy link
Member Author

MananTank commented Dec 16, 2024


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

Copy link

linear bot commented Dec 16, 2024

@MananTank MananTank marked this pull request as ready for review December 16, 2024 16:01
Copy link

codecov bot commented Dec 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.01%. Comparing base (f1cf2fa) to head (b173ad2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5748   +/-   ##
=======================================
  Coverage   53.01%   53.01%           
=======================================
  Files        1101     1101           
  Lines       59079    59079           
  Branches     4806     4806           
=======================================
  Hits        31318    31318           
  Misses      27043    27043           
  Partials      718      718           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from f1cf2fa
packages 50.14% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

Copy link
Contributor

github-actions bot commented Dec 16, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.94 KB (0%) 899 ms (0%) 407 ms (+15.53% 🔺) 1.4 s
thirdweb (cjs) 110.78 KB (0%) 2.3 s (0%) 713 ms (-6.07% 🔽) 3 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 75 ms (+13.5% 🔺) 186 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 24 ms (+77.29% 🔺) 34 ms
thirdweb/react (minimal + tree-shaking) 19.03 KB (0%) 381 ms (0%) 161 ms (+36.72% 🔺) 541 ms

@MananTank MananTank changed the base branch from 12-16-fix_api_key_redirect_url_on_in-app_wallet_settings_and_unresponsive_general_project_settings_page to graphite-base/5748 December 16, 2024 16:59
@MananTank MananTank force-pushed the 12-16-remove_duplicated_in-app-wallet_and_account-abstraction_settings_ui_from__connect_layout branch from b5a841c to 9e731be Compare December 16, 2024 17:09
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 16, 2024 17:09 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 16, 2024 17:09 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 16, 2024 17:09 Inactive
@MananTank MananTank changed the base branch from graphite-base/5748 to main December 16, 2024 17:09
@MananTank MananTank force-pushed the 12-16-remove_duplicated_in-app-wallet_and_account-abstraction_settings_ui_from__connect_layout branch from 9e731be to cf93956 Compare December 16, 2024 17:09
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 16, 2024 17:09 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 16, 2024 17:09 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 16, 2024 17:09 Inactive
Copy link
Contributor

graphite-app bot commented Dec 16, 2024

Merge activity

…rom /connect layout (#5748)

## Problem solved

Fixes: DASH-630

In-App wallet and Account abstraction settings are already available in project settings layout

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on refactoring the `AccountAbstractionPage` and `SmartWallets` components by removing the `twAccount` property and associated logic, along with deleting unused configuration files. It streamlines the code and improves maintainability.

### Detailed summary
- Deleted files: `page.tsx` and `loading.tsx` in `connect/in-app-wallets/config`.
- Removed `twAccount` property from `AccountAbstractionPage` and `SmartWallets` components.
- Updated `AccountAbstractionPage` to only fetch `team` and `project` data.
- Removed `getValidAccount` function call.
- Deleted `Sponsorship Policies` tab and related logic from `SmartWallets`.

> ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}`

<!-- end pr-codex -->
@MananTank MananTank force-pushed the 12-16-remove_duplicated_in-app-wallet_and_account-abstraction_settings_ui_from__connect_layout branch from cf93956 to b173ad2 Compare December 16, 2024 18:48
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 16, 2024 18:48 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 16, 2024 18:48 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 December 16, 2024 18:48 Inactive
@graphite-app graphite-app bot merged commit b173ad2 into main Dec 16, 2024
32 checks passed
@graphite-app graphite-app bot deleted the 12-16-remove_duplicated_in-app-wallet_and_account-abstraction_settings_ui_from__connect_layout branch December 16, 2024 18:52
@vercel vercel bot temporarily deployed to Production – wallet-ui December 16, 2024 18:52 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground December 16, 2024 18:52 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 December 16, 2024 18:52 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dashboard Involves changes to the Dashboard.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants