Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented Nov 13, 2024

CNCT-2344


PR-Codex overview

This PR focuses on updating the routing and authentication mechanisms in the wallet application to support ecosystem-based paths and improve the logout functionality.

Detailed summary

  • Updated routing to include ecosystem in wallet URLs.
  • Modified authedOnly function to accept ecosystem as a parameter.
  • Enhanced ConnectButton to log out users on disconnect.
  • Adjusted layout components to handle ecosystem in parameters.
  • Simplified middleware configuration for ecosystem matching.

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

@linear
Copy link

linear bot commented Nov 13, 2024

@changeset-bot
Copy link

changeset-bot bot commented Nov 13, 2024

⚠️ No Changeset found

Latest commit: f054842

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

@vercel
Copy link

vercel bot commented Nov 13, 2024

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

Name Status Preview Comments Updated (UTC)
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Nov 13, 2024 0:31am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Nov 13, 2024 0:31am
thirdweb_playground ⬜️ Skipped (Inspect) Nov 13, 2024 0:31am
thirdweb-www ⬜️ Skipped (Inspect) Nov 13, 2024 0:31am

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 13, 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.

const userAddress = await getCurrentUser();
if (userAddress) {
redirect(`/wallet/${userAddress}`);
redirect(`${ecosystem}/wallet/${userAddress}`);
Copy link
Contributor

Choose a reason for hiding this comment

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

The redirect path is missing a leading forward slash, which could cause navigation issues. The correct path should be:

redirect(`/${ecosystem}/wallet/${userAddress}`)

Spotted by Graphite Reviewer

Is this helpful? React 👍 or 👎 to let us know.

@codecov
Copy link

codecov bot commented Nov 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.30%. Comparing base (6771cfe) to head (f054842).
Report is 10 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5405   +/-   ##
=======================================
  Coverage   45.30%   45.30%           
=======================================
  Files        1068     1068           
  Lines       55433    55433           
  Branches     4000     4000           
=======================================
  Hits        25112    25112           
  Misses      29634    29634           
  Partials      687      687           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 715d073
packages 40.32% <ø> (ø)

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 13, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.15 KB (-0.15% 🔽) 883 ms (-0.15% 🔽) 4.1 s (+50.81% 🔺) 5 s
thirdweb (cjs) 104.69 KB (0%) 2.1 s (0%) 5.7 s (+0.8% 🔺) 7.8 s
thirdweb (minimal + tree-shaking) 5.72 KB (0%) 115 ms (0%) 282 ms (+7.25% 🔺) 396 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 38 ms (-1.01% 🔽) 48 ms
thirdweb/react (minimal + tree-shaking) 18.78 KB (0%) 376 ms (0%) 720 ms (+22.37% 🔺) 1.1 s

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