Skip to content

[Docs] Update redirects for wallets and payments paths #7680

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

Merged

Conversation

joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Jul 22, 2025


PR-Codex overview

This PR primarily focuses on updating the routing paths from /connect to /wallets across various components and documentation, enhancing clarity and consistency in the wallet-related features.

Detailed summary

  • Updated href values from /connect to /wallets in multiple files.
  • Modified links in sidebar.tsx, Header.tsx, and various markdown files.
  • Changed documentation references to reflect new wallet paths.
  • Adjusted sidebar items and component links for better navigation.

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

Summary by CodeRabbit

  • New Features
    • Updated redirect routes under the /connect prefix to point to new destinations, including /wallets, /payments, and /wallets/ecosystem/set-up. This reorganizes navigation for ecosystem and payment-related paths.
    • Added a new wildcard redirect from /pay paths to the /payments page for streamlined payment navigation.
  • Documentation
    • Updated multiple documentation links and navigation paths from /connect/external-wallets to /wallets/external-wallets to improve URL consistency.
    • Adjusted sidebar navigation by moving the "Ecosystem Wallets" link to the "Guides" section alongside other wallet guides.
    • Corrected various URLs in documentation and navigation related to wallet authentication, server wallets, user wallets, and API keys to reflect updated paths under /wallets.
    • Removed certain hyperlinks in payment FAQs to simplify content.
  • Refactor
    • Standardized tag names and suggested links in search components, replacing "Connect" with "Wallets" and adding "Transactions" alongside "Engine" for improved categorization.
  • Style
    • Improved tab list styling by adding a class to hide scrollbars while maintaining layout and alignment.

Copy link

vercel bot commented Jul 22, 2025

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 Jul 22, 2025 10:08pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
nebula ⬜️ Skipped (Inspect) Jul 22, 2025 10:08pm
thirdweb_playground ⬜️ Skipped (Inspect) Jul 22, 2025 10:08pm
thirdweb-www ⬜️ Skipped (Inspect) Jul 22, 2025 10:08pm
wallet-ui ⬜️ Skipped (Inspect) Jul 22, 2025 10:08pm

@vercel vercel bot temporarily deployed to Preview – thirdweb-www July 22, 2025 21:13 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 22, 2025 21:13 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 22, 2025 21:13 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 22, 2025 21:13 Inactive
Copy link

changeset-bot bot commented Jul 22, 2025

⚠️ No Changeset found

Latest commit: 1d5b3ac

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
Contributor

coderabbitai bot commented Jul 22, 2025

"""

Walkthrough

The redirect rules in the portal application were updated. The previous redirect for /connect/ecosystems/:path* was removed and replaced with three new redirects: /connect/:path* to /wallets, /connect/pay/:path* to /payments, and /connect/ecosystems/:path* to /wallets/ecosystem/set-up, reorganizing the routing structure. Additionally, a new wildcard redirect from /pay/:path* to /payments was added. Multiple documentation and UI components had their URLs updated from /connect/external-wallets to /wallets/external-wallets. The sidebar navigation was also adjusted to move the "Ecosystem Wallets" link from the "Resources" group to the "Guides" group.

Changes

File(s) Change Summary
apps/portal/redirects.mjs Removed old /connect/ecosystems/:path* redirect; added /connect/:path*, /connect/pay/:path*, /connect/ecosystems/:path*, and /pay/:path* redirect rules.
apps/portal/src/app/nebula/get-started/page.mdx Updated comment URL from /connect/external-wallets to /wallets/external-wallets.
apps/portal/src/app/react/v5/components/ConnectButton/page.mdx Changed "Supported Wallets" link URL from /connect/external-wallets to /wallets/external-wallets.
apps/portal/src/app/react/v5/components/ConnectEmbed/page.mdx Changed "Supported Wallets" link URL from /connect/external-wallets to /wallets/external-wallets.
apps/portal/src/app/react/v5/connecting-wallets/hooks/page.mdx Updated documentation link from /connect/external-wallets to /wallets/external-wallets.
apps/portal/src/app/react/v5/connecting-wallets/ui-components/page.mdx Changed "Supported Wallets" link URL from /connect/external-wallets to /wallets/external-wallets.
apps/portal/src/app/react/v5/migrate/installation/page.mdx Updated two URLs: /connect/external-wallets to /wallets/external-wallets and absolute URL to relative path.
apps/portal/src/app/react/v5/sidebar.tsx Updated sidebar link URL for "External Wallets" from /connect/external-wallets to /wallets/external-wallets.
apps/portal/src/app/typescript/v5/connecting-wallets/page.mdx Changed "Supported Wallets" link URL from /connect/external-wallets to /wallets/external-wallets.
apps/portal/src/app/typescript/v5/wallets/page.mdx Changed "Supported Wallets" link URL from /connect/external-wallets to /wallets/external-wallets.
apps/portal/src/app/wallets/external-wallets/[walletId]/page.tsx Updated breadcrumb links base path from /connect/external-wallets to /wallets/external-wallets.
apps/portal/src/app/wallets/external-wallets/com.coinbase.wallet/page.tsx Updated breadcrumb links base path from /connect/external-wallets to /wallets/external-wallets.
apps/portal/src/app/wallets/sidebar.tsx Moved "Ecosystem Wallets" link from "Resources" group to "Guides" group in sidebar navigation.
apps/portal/src/components/others/AllSupportedWallets.tsx Changed wallet links URL from /connect/external-wallets/${w.id} to /wallets/external-wallets/${w.id}.
apps/portal/src/app/account/api-keys/page.mdx Updated links from /connect/account-abstraction to /bundler and /connect/in-app-wallet/overview to /wallets.
apps/portal/src/app/infrastructure/sidebar.tsx Changed sidebar link URL from /connect to /wallets under "How to Use Storage" section.
apps/portal/src/app/layout.tsx Updated commented-out Banner component URL from /connect/universal-bridge to /payments.
apps/portal/src/app/page.tsx Changed SDKCard link URL from /connect/wallet/get-users to /wallets/get-users.
apps/portal/src/app/pay/faqs/page.mdx Removed hyperlink from Apple Pay and Google Pay support FAQ answer.
apps/portal/src/app/payments/faq/page.mdx Removed trailing sentence with hyperlink about onramp providers in Apple Pay and Google Pay FAQ.
apps/portal/src/app/transactions/distribute-tokens/page.mdx Updated prerequisite link from /connect/wallet/server to /wallets/server.
apps/portal/src/app/transactions/page.mdx Updated server and user wallet links from /connect/wallet/server and /connect/wallet/sign-in-methods/configure to /wallets/server and /wallets/users.
apps/portal/src/app/transactions/session-keys/page.mdx Updated prerequisite link from /connect/wallet/server to /wallets/server.
apps/portal/src/app/transactions/stripe-payments/page.mdx Updated prerequisite link from /connect/wallet/server to /wallets/server.
apps/portal/src/app/wallets/auth/deploying-to-production/page.mdx Changed documentation links from /connect/auth to /wallets/auth.
apps/portal/src/app/wallets/auth/page.mdx Updated framework links from /connect/auth/frameworks/ to /wallets/auth/frameworks/.
apps/portal/src/app/wallets/page.mdx Changed "Authentication Methods" link from /connect/wallet/sign-in-methods/configure to /wallets/users.
apps/portal/src/app/wallets/pregenerate-wallets/page.mdx Updated links from /connect/in-app-wallet/custom-auth/configuration to /wallets/custom-auth and from /connect/wallet/sign-in-methods/configure to /wallets/users.
apps/portal/src/app/wallets/security/page.mdx Changed link from /connect/in-app-wallet/guides/link-multiple-profiles to /wallets/link-profiles.
apps/portal/src/app/wallets/users/page.mdx Updated links from /connect/wallet/security to /wallets/security and from /connect/in-app-wallet/custom-auth/configuration to /wallets/custom-auth.
apps/portal/src/components/others/DocSearch.tsx Replaced "Connect" with "Wallets" and "Engine" with "Transactions" in suggested links, tags, and tag extraction logic.
apps/portal/src/components/ui/tabs.tsx Added no-scrollbar CSS class to TabsList component for styling adjustment.
apps/portal/src/app/react/v5/connecting-wallets/hooks/page.mdx Updated documentation link from /connect/external-wallets to /wallets/external-wallets.

Estimated code review effort

2 (~15 minutes)
"""

Warning

Review ran into problems

🔥 Problems

Errors were encountered while retrieving linked issues.

Errors (1)
  • TEAM-0000: Entity not found: Issue - Could not find referenced Issue.

📜 Recent review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between f56c6a1 and 1d5b3ac.

📒 Files selected for processing (33)
  • apps/portal/redirects.mjs (2 hunks)
  • apps/portal/src/app/Header.tsx (1 hunks)
  • apps/portal/src/app/account/api-keys/page.mdx (1 hunks)
  • apps/portal/src/app/infrastructure/sidebar.tsx (1 hunks)
  • apps/portal/src/app/layout.tsx (1 hunks)
  • apps/portal/src/app/nebula/get-started/page.mdx (1 hunks)
  • apps/portal/src/app/page.tsx (1 hunks)
  • apps/portal/src/app/pay/faqs/page.mdx (1 hunks)
  • apps/portal/src/app/payments/faq/page.mdx (1 hunks)
  • apps/portal/src/app/react/v5/components/ConnectButton/page.mdx (1 hunks)
  • apps/portal/src/app/react/v5/components/ConnectEmbed/page.mdx (1 hunks)
  • apps/portal/src/app/react/v5/connecting-wallets/hooks/page.mdx (1 hunks)
  • apps/portal/src/app/react/v5/connecting-wallets/ui-components/page.mdx (1 hunks)
  • apps/portal/src/app/react/v5/migrate/installation/page.mdx (2 hunks)
  • apps/portal/src/app/react/v5/sidebar.tsx (1 hunks)
  • apps/portal/src/app/transactions/distribute-tokens/page.mdx (1 hunks)
  • apps/portal/src/app/transactions/page.mdx (2 hunks)
  • apps/portal/src/app/transactions/session-keys/page.mdx (1 hunks)
  • apps/portal/src/app/transactions/stripe-payments/page.mdx (1 hunks)
  • apps/portal/src/app/typescript/v5/connecting-wallets/page.mdx (1 hunks)
  • apps/portal/src/app/typescript/v5/wallets/page.mdx (1 hunks)
  • apps/portal/src/app/wallets/auth/deploying-to-production/page.mdx (1 hunks)
  • apps/portal/src/app/wallets/auth/page.mdx (1 hunks)
  • apps/portal/src/app/wallets/external-wallets/[walletId]/page.tsx (1 hunks)
  • apps/portal/src/app/wallets/external-wallets/com.coinbase.wallet/page.tsx (1 hunks)
  • apps/portal/src/app/wallets/page.mdx (1 hunks)
  • apps/portal/src/app/wallets/pregenerate-wallets/page.mdx (2 hunks)
  • apps/portal/src/app/wallets/security/page.mdx (1 hunks)
  • apps/portal/src/app/wallets/sidebar.tsx (1 hunks)
  • apps/portal/src/app/wallets/users/page.mdx (2 hunks)
  • apps/portal/src/components/others/AllSupportedWallets.tsx (1 hunks)
  • apps/portal/src/components/others/DocSearch.tsx (4 hunks)
  • apps/portal/src/components/ui/tabs.tsx (1 hunks)
✅ Files skipped from review due to trivial changes (22)
  • apps/portal/src/app/typescript/v5/wallets/page.mdx
  • apps/portal/src/app/transactions/session-keys/page.mdx
  • apps/portal/src/app/transactions/distribute-tokens/page.mdx
  • apps/portal/src/app/wallets/security/page.mdx
  • apps/portal/src/app/react/v5/sidebar.tsx
  • apps/portal/src/app/nebula/get-started/page.mdx
  • apps/portal/src/components/ui/tabs.tsx
  • apps/portal/src/app/transactions/stripe-payments/page.mdx
  • apps/portal/src/app/react/v5/components/ConnectEmbed/page.mdx
  • apps/portal/src/app/pay/faqs/page.mdx
  • apps/portal/src/app/wallets/auth/deploying-to-production/page.mdx
  • apps/portal/src/app/account/api-keys/page.mdx
  • apps/portal/src/app/react/v5/components/ConnectButton/page.mdx
  • apps/portal/src/app/payments/faq/page.mdx
  • apps/portal/src/app/page.tsx
  • apps/portal/src/app/transactions/page.mdx
  • apps/portal/src/app/wallets/users/page.mdx
  • apps/portal/src/app/react/v5/migrate/installation/page.mdx
  • apps/portal/src/app/wallets/page.mdx
  • apps/portal/src/app/infrastructure/sidebar.tsx
  • apps/portal/src/app/wallets/pregenerate-wallets/page.mdx
  • apps/portal/src/app/wallets/external-wallets/[walletId]/page.tsx
🚧 Files skipped from review as they are similar to previous changes (11)
  • apps/portal/src/app/Header.tsx
  • apps/portal/src/app/react/v5/connecting-wallets/hooks/page.mdx
  • apps/portal/src/app/wallets/auth/page.mdx
  • apps/portal/src/app/layout.tsx
  • apps/portal/src/app/typescript/v5/connecting-wallets/page.mdx
  • apps/portal/src/app/react/v5/connecting-wallets/ui-components/page.mdx
  • apps/portal/src/components/others/AllSupportedWallets.tsx
  • apps/portal/src/app/wallets/sidebar.tsx
  • apps/portal/src/app/wallets/external-wallets/com.coinbase.wallet/page.tsx
  • apps/portal/redirects.mjs
  • apps/portal/src/components/others/DocSearch.tsx
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Size
  • GitHub Check: Build Packages
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Lint Packages
  • GitHub Check: Unit Tests
  • GitHub Check: Analyze (javascript)
✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Jul 22, 2025
@joaquim-verges joaquim-verges marked this pull request as ready for review July 22, 2025 21:14
@joaquim-verges joaquim-verges requested review from a team as code owners July 22, 2025 21:14
Copy link
Member Author


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

codecov bot commented Jul 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.39%. Comparing base (a491de4) to head (1d5b3ac).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7680   +/-   ##
=======================================
  Coverage   56.39%   56.39%           
=======================================
  Files         908      908           
  Lines       58244    58244           
  Branches     4227     4227           
=======================================
  Hits        32844    32844           
  Misses      25290    25290           
  Partials      110      110           
Flag Coverage Δ
packages 56.39% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 1

📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between a491de4 and 9931356.

📒 Files selected for processing (1)
  • apps/portal/redirects.mjs (1 hunks)
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{ts,tsx} : Redirect logic using `redirect()` from `next/navigation`.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/wallets/** : Support for in-app wallets (social/email login)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Surface breaking changes prominently in PR descriptions
Learnt from: jnsdls
PR: thirdweb-dev/js#7363
File: apps/wallet-ui/next.config.mjs:58-73
Timestamp: 2025-06-18T02:02:21.427Z
Learning: User jnsdls prefers to explicitly list specific rewrite rules for clarity/documentation purposes, even when they are functionally redundant due to catch-all patterns. In PostHog rewrite configurations, they intentionally keep specific endpoint rules like "/_ph/decide" listed after catch-all rules like "/_ph/:path*" for documentation clarity, accepting the functional redundancy.
Learnt from: MananTank
PR: thirdweb-dev/js#7315
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/launch-nft.tsx:155-160
Timestamp: 2025-06-10T00:46:58.580Z
Learning: In the dashboard application, the route structure for team and project navigation is `/team/[team_slug]/[project_slug]/...` without a `/project/` segment. Contract links should be formatted as `/team/${teamSlug}/${projectSlug}/contract/${chainId}/${contractAddress}`.
Learnt from: jnsdls
PR: thirdweb-dev/js#7363
File: apps/playground-web/next.config.mjs:61-76
Timestamp: 2025-06-18T02:01:37.865Z
Learning: In PostHog migration rewrites, the team prefers to explicitly list the `/_ph/decide` rewrite rule even when it may be covered by a catch-all pattern, for configuration clarity and documentation purposes.
apps/portal/redirects.mjs (8)

Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{ts,tsx} : Redirect logic using redirect() from next/navigation.

Learnt from: jnsdls
PR: #7363
File: apps/wallet-ui/next.config.mjs:58-73
Timestamp: 2025-06-18T02:02:21.427Z
Learning: User jnsdls prefers to explicitly list specific rewrite rules for clarity/documentation purposes, even when they are functionally redundant due to catch-all patterns. In PostHog rewrite configurations, they intentionally keep specific endpoint rules like "/_ph/decide" listed after catch-all rules like "/_ph/:path*" for documentation clarity, accepting the functional redundancy.

Learnt from: MananTank
PR: #7228
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/in-app-wallets/settings/page.tsx:23-25
Timestamp: 2025-05-30T18:14:57.074Z
Learning: In the dashboard codebase, the loginRedirect function performs an actual page redirect that automatically stops execution, similar to Next.js redirect(). No return statement is needed after calling loginRedirect as it handles flow control internally.

Learnt from: MananTank
PR: #7285
File: apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/uri-based-deploy.tsx:57-57
Timestamp: 2025-06-05T13:59:49.886Z
Learning: In the thirdweb dashboard Next.js app, when using loginRedirect() in server components, ensure to add a return statement after the redirect call to prevent further code execution and potential security issues.

Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/claim-conditions/shared-claim-conditions-page.tsx:43-49
Timestamp: 2025-05-26T16:31:02.480Z
Learning: In the thirdweb dashboard codebase, when redirectToContractLandingPage() is called, an explicit return statement is not required afterward because the function internally calls Next.js's redirect() which throws an error to halt execution.

Learnt from: jnsdls
PR: #7364
File: apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx:36-41
Timestamp: 2025-06-18T02:13:34.500Z
Learning: In the logout flow in apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx, when doLogout() fails, the cleanup steps (resetAnalytics(), wallet disconnect, router refresh) should NOT execute. This is intentional to maintain consistency - if server-side logout fails, client-side cleanup should not occur.

Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/wallets/** : Unified Wallet and Account interfaces in wallet architecture

Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/wallets/** : Support for in-app wallets (social/email login)

🧰 Additional context used
🧠 Learnings (2)
📓 Common learnings
Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{ts,tsx} : Redirect logic using `redirect()` from `next/navigation`.
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/wallets/** : Support for in-app wallets (social/email login)
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Surface breaking changes prominently in PR descriptions
Learnt from: jnsdls
PR: thirdweb-dev/js#7363
File: apps/wallet-ui/next.config.mjs:58-73
Timestamp: 2025-06-18T02:02:21.427Z
Learning: User jnsdls prefers to explicitly list specific rewrite rules for clarity/documentation purposes, even when they are functionally redundant due to catch-all patterns. In PostHog rewrite configurations, they intentionally keep specific endpoint rules like "/_ph/decide" listed after catch-all rules like "/_ph/:path*" for documentation clarity, accepting the functional redundancy.
Learnt from: MananTank
PR: thirdweb-dev/js#7315
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/launch-nft.tsx:155-160
Timestamp: 2025-06-10T00:46:58.580Z
Learning: In the dashboard application, the route structure for team and project navigation is `/team/[team_slug]/[project_slug]/...` without a `/project/` segment. Contract links should be formatted as `/team/${teamSlug}/${projectSlug}/contract/${chainId}/${contractAddress}`.
Learnt from: jnsdls
PR: thirdweb-dev/js#7363
File: apps/playground-web/next.config.mjs:61-76
Timestamp: 2025-06-18T02:01:37.865Z
Learning: In PostHog migration rewrites, the team prefers to explicitly list the `/_ph/decide` rewrite rule even when it may be covered by a catch-all pattern, for configuration clarity and documentation purposes.
apps/portal/redirects.mjs (8)

Learnt from: CR
PR: thirdweb-dev/js#0
File: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{ts,tsx} : Redirect logic using redirect() from next/navigation.

Learnt from: jnsdls
PR: #7363
File: apps/wallet-ui/next.config.mjs:58-73
Timestamp: 2025-06-18T02:02:21.427Z
Learning: User jnsdls prefers to explicitly list specific rewrite rules for clarity/documentation purposes, even when they are functionally redundant due to catch-all patterns. In PostHog rewrite configurations, they intentionally keep specific endpoint rules like "/_ph/decide" listed after catch-all rules like "/_ph/:path*" for documentation clarity, accepting the functional redundancy.

Learnt from: MananTank
PR: #7228
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/connect/in-app-wallets/settings/page.tsx:23-25
Timestamp: 2025-05-30T18:14:57.074Z
Learning: In the dashboard codebase, the loginRedirect function performs an actual page redirect that automatically stops execution, similar to Next.js redirect(). No return statement is needed after calling loginRedirect as it handles flow control internally.

Learnt from: MananTank
PR: #7285
File: apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/uri-based-deploy.tsx:57-57
Timestamp: 2025-06-05T13:59:49.886Z
Learning: In the thirdweb dashboard Next.js app, when using loginRedirect() in server components, ensure to add a return statement after the redirect call to prevent further code execution and potential security issues.

Learnt from: MananTank
PR: #7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/claim-conditions/shared-claim-conditions-page.tsx:43-49
Timestamp: 2025-05-26T16:31:02.480Z
Learning: In the thirdweb dashboard codebase, when redirectToContractLandingPage() is called, an explicit return statement is not required afterward because the function internally calls Next.js's redirect() which throws an error to halt execution.

Learnt from: jnsdls
PR: #7364
File: apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx:36-41
Timestamp: 2025-06-18T02:13:34.500Z
Learning: In the logout flow in apps/dashboard/src/app/(app)/account/components/AccountHeader.tsx, when doLogout() fails, the cleanup steps (resetAnalytics(), wallet disconnect, router refresh) should NOT execute. This is intentional to maintain consistency - if server-side logout fails, client-side cleanup should not occur.

Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/wallets/** : Unified Wallet and Account interfaces in wallet architecture

Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to packages/thirdweb/src/wallets/** : Support for in-app wallets (social/email login)

⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (7)
  • GitHub Check: Build Packages
  • GitHub Check: Lint Packages
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Size
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Unit Tests
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
apps/portal/redirects.mjs (1)

1023-1025: The redirect destinations align well with the routing reorganization.

The redirect mapping from Connect-related paths to the new Wallets and Payments structure looks appropriate for the stated goal of reorganizing the navigation flow.

@joaquim-verges joaquim-verges force-pushed the _Docs_Update_redirects_for_wallets_and_payments_paths branch from 9931356 to 09a194a Compare July 22, 2025 21:17
@vercel vercel bot temporarily deployed to Preview – nebula July 22, 2025 21:17 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 22, 2025 21:17 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www July 22, 2025 21:17 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 22, 2025 21:17 Inactive
@joaquim-verges joaquim-verges force-pushed the _Docs_Update_redirects_for_wallets_and_payments_paths branch from 09a194a to 8dc87ef Compare July 22, 2025 21:18
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 22, 2025 21:18 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 22, 2025 21:18 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www July 22, 2025 21:18 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 22, 2025 21:18 Inactive
Copy link
Contributor

github-actions bot commented Jul 22, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 63.23 KB (0%) 1.3 s (0%) 532 ms (+83.69% 🔺) 1.8 s
thirdweb (cjs) 353.45 KB (0%) 7.1 s (0%) 2.3 s (+1.7% 🔺) 9.3 s
thirdweb (minimal + tree-shaking) 5.7 KB (0%) 114 ms (0%) 181 ms (+1235.52% 🔺) 295 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 77 ms (+928.31% 🔺) 87 ms
thirdweb/react (minimal + tree-shaking) 19.59 KB (0%) 392 ms (0%) 180 ms (+389.14% 🔺) 572 ms

@joaquim-verges joaquim-verges force-pushed the _Docs_Update_redirects_for_wallets_and_payments_paths branch from 8dc87ef to 01fa6d8 Compare July 22, 2025 21:28
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 22, 2025 21:28 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 22, 2025 21:28 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 22, 2025 21:28 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www July 22, 2025 21:28 Inactive
@joaquim-verges joaquim-verges force-pushed the _Docs_Update_redirects_for_wallets_and_payments_paths branch from 01fa6d8 to f56c6a1 Compare July 22, 2025 21:46
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 22, 2025 21:46 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 22, 2025 21:46 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 22, 2025 21:46 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www July 22, 2025 21:46 Inactive
@joaquim-verges joaquim-verges force-pushed the _Docs_Update_redirects_for_wallets_and_payments_paths branch from f56c6a1 to 1d5b3ac Compare July 22, 2025 21:58
@vercel vercel bot temporarily deployed to Preview – nebula July 22, 2025 21:58 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 22, 2025 21:58 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www July 22, 2025 21:58 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 22, 2025 21:58 Inactive
@joaquim-verges joaquim-verges merged commit 2496794 into main Jul 22, 2025
25 checks passed
@joaquim-verges joaquim-verges deleted the _Docs_Update_redirects_for_wallets_and_payments_paths branch July 22, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Portal Involves changes to the Portal (docs) codebase.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant