Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Sep 8, 2025


PR-Codex overview

This PR focuses on updating the links array in the Header.tsx file by removing and then re-adding the Payments and Bridge links, effectively reorganizing the structure.

Detailed summary

  • Removed Payments link from the links array.
  • Removed Bridge link from the links array.
  • Re-added Payments link with the same properties.
  • Re-added Bridge link with the same properties.

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

Summary by CodeRabbit

  • Style
    • Reordered top navigation: Payments and Bridge now appear after Contracts instead of immediately after Wallets.
    • Change applies to both desktop navbar and mobile menu, preserving all links and destinations while improving navigation order consistency.

@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: 88001cf

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

Reordered top navigation items in apps/portal/src/app/Header.tsx by moving Payments and Bridge to follow Contracts in the links array. The set of links is unchanged. The new order affects both the desktop navbar and the mobile menu rendering.

Changes

Cohort / File(s) Summary
Portal header nav reorder
apps/portal/src/app/Header.tsx
Adjusted links array ordering: moved Payments and Bridge to appear after Contracts; no changes to link objects’ href or name. Impacts render order in desktop and mobile menus.

Estimated code review effort

🎯 1 (Trivial) | ⏱️ ~2 minutes

Pre-merge checks (4 passed, 1 warning)

❌ Failed Checks (1 warning)
Check Name Status Explanation Resolution
Description Check ⚠️ Warning The current description retains the commented template and a PR-Codex summary but does not fill out the required ## title, ## Notes for the reviewer, and ## How to test sections as specified by the repository template. Revise the PR description to include the required sections from the template, filling in the title, notes for the reviewer, and testing instructions.
✅ Passed Checks (4 passed)
Check Name Status Explanation
Title Check ✅ Passed The title accurately references the main change, follows the required format with issue tag and portal prefix, and concisely describes updating the header navigation link order.
Linked Issues Check ✅ Passed The changes reorder the Payments and Bridge links in Header.tsx to match the sequence wallets, transactions, contracts, payments, bridge, tokens defined in issue BLD-271.
Out of Scope Changes Check ✅ Passed The changes only reorder existing navigation links in Header.tsx without introducing unrelated modifications or affecting other features.
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 7568646 and 88001cf.

📒 Files selected for processing (1)
  • apps/portal/src/app/Header.tsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/portal/src/app/Header.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). (2)
  • 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 09-09-_bld-271_portal_change_header_nav_link_order

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

@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Sep 8, 2025
@vercel vercel bot temporarily deployed to Preview – thirdweb-www September 8, 2025 20:22 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 8, 2025 20:22 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula September 8, 2025 20:22 Inactive
@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:02pm
4 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
nebula Skipped Skipped Sep 8, 2025 11:02pm
thirdweb_playground Skipped Skipped Sep 8, 2025 11:02pm
thirdweb-www Skipped Skipped Sep 8, 2025 11:02pm
wallet-ui Skipped Skipped Sep 8, 2025 11:02pm

@vercel vercel bot temporarily deployed to Preview – wallet-ui September 8, 2025 20:22 Inactive
@MananTank MananTank marked this pull request as ready for review September 8, 2025 20:22
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.

@MananTank MananTank requested review from a team as code owners September 8, 2025 20:22
@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 (a9c388a) to head (88001cf).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8013   +/-   ##
=======================================
  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.

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: 0

Caution

Some comments are outside the diff and can’t be posted inline due to platform limitations.

⚠️ Outside diff range comments (1)
apps/portal/src/app/Header.tsx (1)

235-241: Add rel="noopener noreferrer" for external links and avoid empty target strings.

External links opened with target="_blank" should include rel="noopener noreferrer". Also, prefer undefined over "" for non-external targets.

Apply these diffs:

@@
-            <Link
+            <Link
               className="text-foreground"
               href="https://github.com/thirdweb-dev"
-              target="_blank"
+              target="_blank"
+              rel="noopener noreferrer"
             >
@@
-                    <Link
+                    <Link
                       className="before:absolute before:inset-0"
                       href={info.href}
                       prefetch={false}
-                      target={info.href.startsWith("http") ? "_blank" : ""}
+                      target={info.href.startsWith("http") ? "_blank" : undefined}
+                      rel={info.href.startsWith("http") ? "noopener noreferrer" : undefined}
                     >
@@
-    <Link
+    <Link
       className={clsx(
@@
       href={props.href}
       onClick={props.onClick}
-      target={props.href.startsWith("http") ? "_blank" : ""}
+      target={props.href.startsWith("http") ? "_blank" : undefined}
+      rel={props.href.startsWith("http") ? "noopener noreferrer" : undefined}
     >

Also applies to: 478-482, 530-541

🧹 Nitpick comments (2)
apps/portal/src/app/Header.tsx (2)

42-49: Order matches BLD-271 target sequence.

The products now render as: Wallets → Transactions → Contracts → Payments → Bridge → Tokens in both desktop and mobile menus via the shared links array. Looks good.

Quick checks:

  • Desktop: verify the order on "/" and that the underline highlights correctly for /payments and /bridge.
  • Mobile: open burger menu and confirm the same order under “Products”.

I can add a small Playwright test to assert the visible order if you’d like.


529-551: Expose active state to screen readers.

Add aria-current to the active nav item.

     <Link
       className={clsx(
         "font-medium text-base transition-colors hover:text-foreground xl:text-sm",
         pathname?.startsWith(props.href)
           ? "text-foreground"
           : "text-muted-foreground",
         props.icon ? "flex flex-row gap-3" : "",
       )}
       href={props.href}
       onClick={props.onClick}
       target={props.href.startsWith("http") ? "_blank" : undefined}
+      aria-current={pathname?.startsWith(props.href) ? "page" : undefined}
     >
📜 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 7568646.

📒 Files selected for processing (1)
  • apps/portal/src/app/Header.tsx (1 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/Header.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/Header.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: Unit Tests
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Size
  • GitHub Check: Lint Packages
  • GitHub Check: Build Packages
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (1)
apps/portal/src/app/Header.tsx (1)

139-141: Label/URL mismatch for “Payments” in APIs dropdown.

APIs list shows “Payments” but points to bridge.thirdweb.com/reference. Please confirm whether this should be “Bridge” or the href should be a Payments docs URL.

@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%) 423 ms (+63.95% 🔺) 1.8 s
thirdweb (cjs) 356.86 KB (0%) 7.2 s (0%) 2.2 s (+6.34% 🔺) 9.4 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 62 ms (+321.7% 🔺) 177 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 73 ms (+933.89% 🔺) 83 ms
thirdweb/react (minimal + tree-shaking) 19.15 KB (0%) 383 ms (0%) 136 ms (+369.75% 🔺) 519 ms

@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 modifying the `links` array in the `Header.tsx` file by removing and then re-adding the `Payments` and `Bridge` items, thereby changing their order within the array.

### Detailed summary
- Removed `Payments` link from the `links` array.
- Removed `Bridge` link from the `links` array.
- Re-added `Payments` link to the `links` array.
- Re-added `Bridge` link to the `links` array.

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

* **Style**
  * Updated top navigation order: Payments and Bridge now appear after Contracts instead of immediately after Wallets.
  * Applies to both desktop navigation and the mobile menu, improving consistency across views without changing the available links or destinations.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@graphite-app graphite-app bot force-pushed the 09-09-_bld-271_portal_change_header_nav_link_order branch from 7568646 to 88001cf Compare September 8, 2025 22:29
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 8, 2025 22:29 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula September 8, 2025 22:29 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 8, 2025 22:29 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www September 8, 2025 22:29 Inactive
@graphite-app graphite-app bot merged commit 88001cf into main Sep 8, 2025
24 checks passed
@graphite-app graphite-app bot deleted the 09-09-_bld-271_portal_change_header_nav_link_order branch September 8, 2025 23:02
@vercel vercel bot temporarily deployed to Production – nebula September 8, 2025 23:02 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground September 8, 2025 23:02 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb-www September 8, 2025 23:02 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui September 8, 2025 23:02 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