Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented Dec 9, 2024

PR-Codex overview

This PR focuses on updating the LinkedProfilesScreen component to correctly display profile types, including a new label for "Custom Auth" profiles. It also enhances test coverage for different profile types.

Detailed summary

  • Updated LinkedProfilesScreen.tsx to return "Custom Profile" for custom_auth_endpoint.
  • Added tests in LinkedProfilesScreen.test.tsx for various profile types including email, google, phone, wallet, cognito, custom_auth_endpoint, and unknown.
  • Ensured guest profiles do not display in the UI.

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

@linear
Copy link

linear bot commented Dec 9, 2024

@gregfromstl gregfromstl self-assigned this Dec 9, 2024
@changeset-bot
Copy link

changeset-bot bot commented Dec 9, 2024

🦋 Changeset detected

Latest commit: 97357e4

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

This PR includes changesets to release 1 package
Name Type
thirdweb 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

@vercel
Copy link

vercel bot commented Dec 9, 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 10, 2024 2:14am
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 10, 2024 2:14am
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 10, 2024 2:14am
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Dec 10, 2024 2:14am

@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 9, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

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

@gregfromstl gregfromstl added Bug Something isn't working as intended in a provided reproduction. React SDK Involves changes to the React SDK. labels Dec 9, 2024
@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Dec 9, 2024
@gregfromstl gregfromstl force-pushed the greg/cnct-2607-fix-custom-auth-profile-label branch from 79464ba to 42796a7 Compare December 9, 2024 19:58
@github-actions
Copy link
Contributor

github-actions bot commented Dec 9, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.93 KB (0%) 899 ms (0%) 494 ms (+91.99% 🔺) 1.4 s
thirdweb (cjs) 110.71 KB (0%) 2.3 s (0%) 1.1 s (+8.79% 🔺) 3.3 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 26 ms (-25.18% 🔽) 138 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 27 ms (-9.37% 🔽) 37 ms
thirdweb/react (minimal + tree-shaking) 19.01 KB (0%) 381 ms (0%) 188 ms (+190.4% 🔺) 569 ms

@codecov
Copy link

codecov bot commented Dec 9, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 51.22%. Comparing base (dcd5822) to head (d5a68c8).
Report is 1 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #5660      +/-   ##
==========================================
+ Coverage   50.82%   51.22%   +0.39%     
==========================================
  Files        1092     1092              
  Lines       57334    57336       +2     
  Branches     4636     4676      +40     
==========================================
+ Hits        29142    29368     +226     
+ Misses      27476    27252     -224     
  Partials      716      716              
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from dcd5822
packages 47.83% <100.00%> (+0.48%) ⬆️

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

Files with missing lines Coverage Δ
.../ui/ConnectWallet/screens/LinkedProfilesScreen.tsx 82.06% <100.00%> (+80.67%) ⬆️

... and 5 files with indirect coverage changes

@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label Dec 10, 2024
Copy link
Contributor Author

gregfromstl commented Dec 10, 2024

Merge activity

  • Dec 9, 8:46 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Dec 9, 8:46 PM EST: A user added this pull request to the Graphite merge queue.
  • Dec 9, 9:15 PM EST: A user merged this pull request with the Graphite merge queue.

gregfromstl added a commit that referenced this pull request Dec 10, 2024
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on fixing the display of the "Custom Auth" profile type label in the `LinkedProfilesScreen` component and enhancing unit tests for various profile types.

### Detailed summary
- Updated `LinkedProfilesScreen.tsx` to return "Custom Profile" for `custom_auth_endpoint`.
- Added unit tests in `LinkedProfilesScreen.test.tsx` for:
  - Email, Google, Phone, Wallet, Cognito profiles.
  - Custom Auth profile type.
  - Handling of unknown and guest profile types.

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

<!-- end pr-codex -->
@gregfromstl gregfromstl force-pushed the greg/cnct-2607-fix-custom-auth-profile-label branch from 42796a7 to 97357e4 Compare December 10, 2024 01:46
<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on improving the display of linked profiles in the `LinkedProfilesScreen` component by correctly handling the "Custom Auth" profile type and enhancing unit tests for various profile types.

### Detailed summary
- Updated the label for the "Custom Auth" profile type to "Custom Profile".
- Added unit tests for various profile types including email, google, phone, wallet address, cognito, custom_auth_endpoint, and unknown types.
- Ensured guest profiles are not displayed.

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

Bug Something isn't working as intended in a provided reproduction. merge-queue Adds the pull request to Graphite's merge queue. packages React SDK Involves changes to the React SDK. SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants