Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Sep 8, 2025


PR-Codex overview

This PR focuses on updating the sidebar configuration in two files: sidebar.tsx in the bridge and payments directories. It modifies the links for the Playground and adjusts the href paths for various items to ensure they are correctly routed.

Detailed summary

  • Removed the Playground entry from the bridge sidebar.
  • Updated the Playground link in the payments sidebar to point to /payments.
  • Changed href values for several items in the payments sidebar from relative paths to absolute paths:
    • bridge/sell to /bridge/sell
    • bridge/swap to /bridge/swap
    • bridge/tokens to /bridge/tokens
    • bridge/routes to /bridge/routes

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

Summary by CodeRabbit

  • Bug Fixes

    • Corrected Payments sidebar destinations: Playground now points to the dedicated payments playground, and Bridge-related items use absolute root paths for reliable, consistent navigation across the app.
  • Chores

    • Removed the obsolete Playground entry from the Bridge sidebar to streamline navigation.
    • Cleaned up an unused icon import.

@vercel
Copy link

vercel bot commented Sep 8, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
docs-v2 Ready Ready Preview Comment Sep 8, 2025 11:25pm
4 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
nebula Skipped Skipped Sep 8, 2025 11:25pm
thirdweb_playground Skipped Skipped Sep 8, 2025 11:25pm
thirdweb-www Skipped Skipped Sep 8, 2025 11:25pm
wallet-ui Skipped Skipped Sep 8, 2025 11:25pm

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 8, 2025 21:06 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula September 8, 2025 21:06 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 8, 2025 21:06 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www September 8, 2025 21:06 Inactive
@linear
Copy link

linear bot commented Sep 8, 2025

@changeset-bot
Copy link

changeset-bot bot commented Sep 8, 2025

⚠️ No Changeset found

Latest commit: e7d0899

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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 8, 2025

Walkthrough

Removed the Playground nav item and unused ExternalLinkIcon import from the Bridge sidebar. Updated Payments sidebar links: Playground now points to the payments playground and Bridge links changed from relative payments/bridge/... to absolute /bridge/....

Changes

Cohort / File(s) Change Summary
Bridge sidebar cleanup
apps/portal/src/app/bridge/sidebar.tsx
Removed the "Playground" nav item and its ExternalLinkIcon import; retained ZapIcon. Separator now follows "Get Started".
Payments sidebar link fixes
apps/portal/src/app/payments/sidebar.tsx
Updated links: Playground -> https://playground.thirdweb.com/payments; changed payments/bridge/sell, payments/bridge/swap, payments/bridge/tokens, payments/bridge/routes to /bridge/sell, /bridge/swap, /bridge/tokens, /bridge/routes.

Sequence Diagram(s)

(omitted — changes are static link updates, no control-flow changes)

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

Pre-merge checks (3 passed, 2 warnings)

❌ Failed Checks (2 warnings)
Check Name Status Explanation Resolution
Out of Scope Changes Check ⚠️ Warning The removal of the Playground link from the Bridge sidebar falls outside the scope of fixing broken links in the payments pages defined by the MNY-163 issue. Revert the Bridge sidebar Playground removal or move it to a separate PR so this change solely focuses on the payments sidebar link fixes.
Description Check ⚠️ Warning The current description still includes the commented-out template and lacks the required filled sections for title, reviewer notes, and testing instructions as specified in the repository template. Remove the template comments and populate the description with the actual title, a “Notes for the reviewer” section, and a “How to test” section following the template format.
✅ Passed Checks (3 passed)
Check Name Status Explanation
Title Check ✅ Passed The title concisely summarizes the primary focus of the changeset—fixing broken links in the payments sidebar—and is directly related to the main change.
Linked Issues Check ✅ Passed The changes correctly update the payments sidebar links to use absolute root paths, addressing the broken links specified in the MNY-163 issue.
Docstring Coverage ✅ Passed No functions found in the changes. Docstring coverage check skipped.

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

💡 Knowledge Base configuration:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between 62f9fc4 and e7d0899.

📒 Files selected for processing (2)
  • apps/portal/src/app/bridge/sidebar.tsx (1 hunks)
  • apps/portal/src/app/payments/sidebar.tsx (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • apps/portal/src/app/bridge/sidebar.tsx
  • apps/portal/src/app/payments/sidebar.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). (3)
  • GitHub Check: Lint Packages
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch mny-163

Comment @coderabbitai help to get the list of available commands and usage tips.

@MananTank MananTank marked this pull request as ready for review September 8, 2025 21:06
@MananTank MananTank requested review from a team as code owners September 8, 2025 21:06
@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Sep 8, 2025
Copy link
Member Author

MananTank commented Sep 8, 2025


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.

@codecov
Copy link

codecov bot commented Sep 8, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.65%. Comparing base (88001cf) to head (e7d0899).
⚠️ Report is 2 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8021   +/-   ##
=======================================
  Coverage   56.65%   56.65%           
=======================================
  Files         904      904           
  Lines       58677    58677           
  Branches     4165     4165           
=======================================
  Hits        33241    33241           
  Misses      25330    25330           
  Partials      106      106           
Flag Coverage Δ
packages 56.65% <ø> (ø)
🚀 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.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 8, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 63.96 KB (0%) 1.3 s (0%) 237 ms (+191% 🔺) 1.6 s
thirdweb (cjs) 356.86 KB (0%) 7.2 s (0%) 696 ms (+18.12% 🔺) 7.9 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 90 ms (+1345.36% 🔺) 204 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 78 ms (+3586.08% 🔺) 88 ms
thirdweb/react (minimal + tree-shaking) 19.15 KB (0%) 383 ms (0%) 61 ms (+456.06% 🔺) 444 ms

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

🧹 Nitpick comments (1)
apps/portal/src/app/payments/sidebar.tsx (1)

41-55: Centralize Bridge slug in payments sidebar
No stale /payments/bridge/* links detected. In apps/portal/src/app/payments/sidebar.tsx, introduce

const bridgeSlug = "/bridge";

and update each href to use ${bridgeSlug}:

@@
-const paymentsSlug = "/payments";
+const paymentsSlug = "/payments";
+const bridgeSlug = "/bridge";
@@
-          href: `/bridge/sell`,
+          href: `${bridgeSlug}/sell`,
@@
-          href: `/bridge/swap`,
+          href: `${bridgeSlug}/swap`,
@@
-          href: `/bridge/tokens`,
+          href: `${bridgeSlug}/tokens`,
@@
-          href: `/bridge/routes`,
+          href: `${bridgeSlug}/routes`,

This mirrors the slug constant in apps/portal/src/app/bridge/sidebar.tsx.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

💡 Knowledge Base configuration:

  • Linear integration is disabled by default for public repositories

You can enable these sources in your CodeRabbit configuration.

📥 Commits

Reviewing files that changed from the base of the PR and between a9c388a and 62f9fc4.

📒 Files selected for processing (2)
  • apps/portal/src/app/bridge/sidebar.tsx (1 hunks)
  • apps/portal/src/app/payments/sidebar.tsx (2 hunks)
🧰 Additional context used
📓 Path-based instructions (2)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each file to one stateless, single-responsibility function for clarity
Re-use shared types from @/types or local types.ts barrels
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial, Pick, etc.)
Comment only ambiguous logic; avoid restating TypeScript in prose

**/*.{ts,tsx}: Use explicit function declarations and explicit return types in TypeScript
Limit each file to one stateless, single‑responsibility function
Re‑use shared types from @/types where applicable
Prefer type aliases over interface except for nominal shapes
Avoid any and unknown unless unavoidable; narrow generics when possible
Prefer composition over inheritance; use utility types (Partial, Pick, etc.)
Lazy‑import optional features and avoid top‑level side‑effects to reduce bundle size

Files:

  • apps/portal/src/app/payments/sidebar.tsx
  • apps/portal/src/app/bridge/sidebar.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (CLAUDE.md)

Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

Files:

  • apps/portal/src/app/payments/sidebar.tsx
  • apps/portal/src/app/bridge/sidebar.tsx
🧠 Learnings (6)
📚 Learning: 2025-08-20T10:35:18.543Z
Learnt from: jnsdls
PR: thirdweb-dev/js#7888
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/page.tsx:77-81
Timestamp: 2025-08-20T10:35:18.543Z
Learning: The webhooks/payments route exists at apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/payments/page.tsx and was added as part of the unified project layout changes.

Applied to files:

  • apps/portal/src/app/payments/sidebar.tsx
📚 Learning: 2025-08-20T10:35:18.543Z
Learnt from: jnsdls
PR: thirdweb-dev/js#7888
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/payments/page.tsx:77-81
Timestamp: 2025-08-20T10:35:18.543Z
Learning: The webhooks/payments route exists at apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/payments/page.tsx and was added as part of the unified project layout PR #7888.

Applied to files:

  • apps/portal/src/app/payments/sidebar.tsx
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Use `NavLink` for internal navigation with automatic active states in dashboard and playground apps

Applied to files:

  • apps/portal/src/app/payments/sidebar.tsx
  • apps/portal/src/app/bridge/sidebar.tsx
📚 Learning: 2025-07-07T21:21:47.488Z
Learnt from: saminacodes
PR: thirdweb-dev/js#7543
File: apps/portal/src/app/pay/page.mdx:4-4
Timestamp: 2025-07-07T21:21:47.488Z
Learning: In the thirdweb-dev/js repository, lucide-react icons must be imported with the "Icon" suffix (e.g., ExternalLinkIcon, RocketIcon) as required by the new linting rule, contrary to the typical lucide-react convention of importing without the suffix.

Applied to files:

  • apps/portal/src/app/bridge/sidebar.tsx
📚 Learning: 2025-07-18T19:20:32.530Z
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/**/*.{tsx,jsx} : Icons come from `lucide-react` or the project-specific `…/icons` exports – never embed raw SVG.

Applied to files:

  • apps/portal/src/app/bridge/sidebar.tsx
📚 Learning: 2025-07-18T19:19:55.613Z
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : Import UI primitives from `@/components/ui/*` (Button, Input, Select, Tabs, Card, Sidebar, Badge, Separator) in dashboard and playground apps

Applied to files:

  • apps/portal/src/app/bridge/sidebar.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). (4)
  • GitHub Check: Lint Packages
  • GitHub Check: Unit Tests
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
apps/portal/src/app/bridge/sidebar.tsx (1)

1-1: Unused icon cleanup after removing Playground: LGTM

Import now only brings ZapIcon; matches current usage.

Comment on lines +16 to 19
href: "https://playground.thirdweb.com/payments",
icon: <ExternalLinkIcon />,
name: "Playground",
},
Copy link
Contributor

Choose a reason for hiding this comment

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

💡 Verification agent

🧩 Analysis chain

Playground URL change: confirm target exists and is treated as external

Looks right; please verify the /payments subpath is live and that our link renderer opens it in a new tab with rel="noopener".

Run:


🏁 Script executed:

#!/bin/bash
set -euo pipefail
for url in https://playground.thirdweb.com/ https://playground.thirdweb.com/payments; do
  code=$(curl -sI "$url" | awk '/^HTTP/{print $2}' | head -n1)
  echo "$url -> HTTP $code"
done

Length of output: 97


🏁 Script executed:

#!/bin/bash
set -euo pipefail
find . -type f -name "sidebar.tsx"

Length of output: 1096


🏁 Script executed:

#!/bin/bash
set -euo pipefail
sed -n '1,200p' apps/portal/src/app/payments/sidebar.tsx

Length of output: 2788


🏁 Script executed:

#!/bin/bash
set -euo pipefail
find apps/portal/src -type f | grep -i DocLayout

Length of output: 48


🏁 Script executed:

#!/bin/bash
set -euo pipefail
sed -n '1,500p' apps/portal/src/components/Layouts/DocLayout.tsx

Length of output: 2249


🏁 Script executed:

#!/bin/bash
set -euo pipefail
sed -n '1,200p' apps/portal/src/components/others/Sidebar.tsx

Length of output: 5522


Add rel="noopener noreferrer" to external links in SidebarItem
Verified https://playground.thirdweb.com/payments returns HTTP 200; the Next.js Link in SidebarItem (apps/portal/src/components/others/Sidebar.tsx) sets target="_blank" for external URLs but omits rel—update it to rel="noopener noreferrer".

🤖 Prompt for AI Agents
In apps/portal/src/app/payments/sidebar.tsx around lines 16-19, the Playground
external link uses target="_blank" via SidebarItem but omits rel; modify the
SidebarItem rendering logic in apps/portal/src/components/others/Sidebar.tsx so
that whenever an anchor is rendered with target="_blank" for external URLs it
also includes rel="noopener noreferrer" (ensure the prop is added to the
Link/anchor element generation path for external links).

@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 8, 2025

Merge activity

<!--

## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes"

If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000):

## Notes for the reviewer

Anything important to call out? Be sure to also clarify these in your comments.

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on updating the `sidebar` configuration in two files: `sidebar.tsx` for the bridge and payments sections. It removes an entry and modifies the `href` properties for navigation links to ensure correct routing.

### Detailed summary
- Removed the `Playground` entry from the `sidebar` in `apps/portal/src/app/bridge/sidebar.tsx`.
- Updated the `href` for the `Playground` entry in `apps/portal/src/app/payments/sidebar.tsx` to point to `/payments`.
- Changed `href` values for `Sell Tokens`, `Swap Tokens`, `Get Token Prices`, and `Get Routes` to use absolute paths.

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

<!-- end pr-codex -->

<!-- This is an auto-generated comment: release notes by coderabbit.ai -->

## Summary by CodeRabbit

* **Bug Fixes**
  * Corrected Payments sidebar destinations: Playground now points to the dedicated payments playground, and Bridge-related items use absolute paths for reliable, consistent navigation across the app.

* **Chores**
  * Removed the obsolete Playground link from the Bridge sidebar to streamline navigation.
  * Cleaned up an unused icon import.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@vercel vercel bot temporarily deployed to Preview – thirdweb-www September 8, 2025 23:03 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 8, 2025 23:03 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 8, 2025 23:03 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula September 8, 2025 23:03 Inactive
@graphite-app graphite-app bot merged commit e7d0899 into main Sep 8, 2025
24 checks passed
@graphite-app graphite-app bot deleted the mny-163 branch September 8, 2025 23:26
@vercel vercel bot temporarily deployed to Production – thirdweb-www September 8, 2025 23:26 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui September 8, 2025 23:26 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground September 8, 2025 23:26 Inactive
@vercel vercel bot temporarily deployed to Production – nebula September 8, 2025 23:26 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 September 8, 2025 23:49 Inactive
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.

3 participants