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

[React SDK] Fix: Hides custom_jwt profiles from UI #5802

Merged

Conversation

gregfromstl
Copy link
Member

@gregfromstl gregfromstl commented Dec 19, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR enhances the LinkedProfilesScreen component by refining the filtering logic for connected profiles, ensuring that profiles of type guest, custom_jwt, and custom_auth_endpoint are excluded from display. It also adds tests to verify these changes.

Detailed summary

  • Updated the filtering logic in LinkedProfilesScreen.tsx to exclude profiles of types guest, custom_jwt, and custom_auth_endpoint.
  • Added a new test to confirm that custom_jwt profiles are not displayed.
  • Added a new test to check that profiles not of type guest or custom_jwt are displayed correctly.

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

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

linear bot commented Dec 19, 2024

Copy link

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

Copy link

changeset-bot bot commented Dec 19, 2024

⚠️ No Changeset found

Latest commit: aad6586

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

graphite-app bot commented Dec 19, 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 19, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 45.02 KB (0%) 901 ms (0%) 905 ms (+70.06% 🔺) 1.9 s
thirdweb (cjs) 110.76 KB (0%) 2.3 s (0%) 1.3 s (-19.14% 🔽) 3.5 s
thirdweb (minimal + tree-shaking) 5.58 KB (0%) 112 ms (0%) 137 ms (+67.92% 🔺) 249 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 48 ms (+424.77% 🔺) 58 ms
thirdweb/react (minimal + tree-shaking) 19.1 KB (0%) 383 ms (0%) 393 ms (+95.46% 🔺) 775 ms

Copy link

codecov bot commented Dec 19, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 53.20%. Comparing base (3683c11) to head (aad6586).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5802   +/-   ##
=======================================
  Coverage   53.20%   53.20%           
=======================================
  Files        1101     1101           
  Lines       59095    59100    +5     
  Branches     4816     4817    +1     
=======================================
+ Hits        31444    31447    +3     
- Misses      26934    26936    +2     
  Partials      717      717           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 3683c11
packages 50.39% <100.00%> (+<0.01%) ⬆️

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

Files with missing lines Coverage Δ
.../ui/ConnectWallet/screens/LinkedProfilesScreen.tsx 83.60% <100.00%> (-0.67%) ⬇️

Copy link

graphite-app bot commented Dec 19, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the filtering logic in the `LinkedProfilesScreen` component to exclude specific profile types, namely `guest`, `custom_jwt`, and `custom_auth_endpoint`, from being displayed. It also updates the test cases to reflect these changes.

### Detailed summary
- Updated the filtering logic in `LinkedProfilesScreen.tsx` to exclude `guest`, `custom_jwt`, and `custom_auth_endpoint` profiles.
- Added a test case to verify that `custom_jwt` profiles are not displayed.
- Added a test case to ensure profiles that are not `guest` or `custom_jwt` are displayed correctly.

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

<!-- end pr-codex -->
@joaquim-verges joaquim-verges force-pushed the greg/tool-2790-hide-custom_jwt-profile-from-linked-profiles branch from eaf69b8 to aad6586 Compare December 19, 2024 07:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
merge-queue Adds the pull request to Graphite's merge queue. packages SDK Involves changes to the thirdweb SDK
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants