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

[SDK] Feature: Allow hiding the link profiles button #5799

Merged

Conversation

gregfromstl
Copy link
Member

@gregfromstl gregfromstl commented Dec 18, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR introduces the ability to hide the "Linked Profiles" button in the ConnectButton Details Modal by adding a configuration option. It also updates the ManageWalletScreen to reflect this change and includes tests to ensure the functionality works as expected.

Detailed summary

  • Added allowLinkingProfiles option to manageWallet in ConnectButtonProps.ts.
  • Updated ManageWalletScreen to conditionally render the linked profiles button based on allowLinkingProfiles.
  • Added tests for ManageWalletScreen to verify button visibility based on allowLinkingProfiles.

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

@gregfromstl gregfromstl requested review from a team as code owners December 18, 2024 22:57
Copy link

linear bot commented Dec 18, 2024

Copy link

changeset-bot bot commented Dec 18, 2024

🦋 Changeset detected

Latest commit: 90e2b97

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

This PR includes changesets to release 2 packages
Name Type
thirdweb Minor
@thirdweb-dev/wagmi-adapter 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 18, 2024

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 0:41am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 0:41am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 0:41am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 19, 2024 0:41am

Copy link

graphite-app bot commented Dec 18, 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.

Copy link
Contributor

github-actions bot commented Dec 18, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 45.02 KB (0%) 901 ms (0%) 659 ms (+30.51% 🔺) 1.6 s
thirdweb (cjs) 110.76 KB (0%) 2.3 s (0%) 1.1 s (-7.51% 🔽) 3.3 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 117 ms (+104.31% 🔺) 229 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 63 ms (+355.02% 🔺) 73 ms
thirdweb/react (minimal + tree-shaking) 19.1 KB (0%) 383 ms (0%) 250 ms (+191.06% 🔺) 632 ms

Copy link

codecov bot commented Dec 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.20%. Comparing base (46a426b) to head (90e2b97).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5799      +/-   ##
==========================================
+ Coverage   53.01%   53.20%   +0.19%     
==========================================
  Files        1101     1101              
  Lines       59096    59095       -1     
  Branches     4813     4816       +3     
==========================================
+ Hits        31329    31444     +115     
+ Misses      27049    26934     -115     
+ Partials      718      717       -1     
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 46a426b
packages 50.39% <100.00%> (+0.23%) ⬆️

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

Files with missing lines Coverage Δ
...eb/ui/ConnectWallet/screens/ManageWalletScreen.tsx 72.72% <100.00%> (+70.72%) ⬆️

... and 7 files with indirect coverage changes

Copy link

graphite-app bot commented Dec 18, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a feature to hide the "Linked Profiles" button in the `ConnectButton` Details Modal based on the `allowLinkingProfiles` option. It also includes tests for the `ManageWalletScreen` to ensure the button's visibility behaves as expected.

### Detailed summary
- Added `manageWallet` option in `ConnectButtonProps` to configure wallet management.
- Updated `ManageWalletScreen` to conditionally render the linked profiles button based on `allowLinkingProfiles`.
- Created tests for `ManageWalletScreen` to verify button visibility based on `allowLinkingProfiles` settings.

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

<!-- end pr-codex -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
packages SDK Involves changes to the thirdweb SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants