Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Dec 15, 2025


PR-Codex overview

This PR focuses on modifying the sidebar structure and styling in the sidebar.tsx and Sidebar.tsx files, enhancing the visual layout and organization of sidebar items.

Detailed summary

  • In sidebar.tsx, the name: "Guides" entry was removed.
  • In Sidebar.tsx, the padding classes were updated for a div element to include py-1.5 and px-3.
  • The Link component's class was modified to remove the py-1.5 and px-3 classes, simplifying its styling.

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

Summary by CodeRabbit

  • Style
    • Improved sidebar category spacing with adjusted padding for clearer layout.
    • Increased and redistributed interactive area for sidebar navigation items for easier tapping/clicking.
    • Improved organization of the Guides section for better readability and consistency.

✏️ Tip: You can customize this high-level summary in your review settings.

@vercel
Copy link

vercel bot commented Dec 15, 2025

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

Project Deployment Review Updated (UTC)
docs-v2 Ready Ready Preview, Comment Dec 15, 2025 6:06pm
4 Skipped Deployments
Project Deployment Review Updated (UTC)
nebula Skipped Skipped Dec 15, 2025 6:06pm
thirdweb_playground Skipped Skipped Dec 15, 2025 6:06pm
thirdweb-www Skipped Skipped Dec 15, 2025 6:06pm
wallet-ui Skipped Skipped Dec 15, 2025 6:06pm

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 15, 2025 17:43 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 15, 2025 17:43 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula December 15, 2025 17:43 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www December 15, 2025 17:43 Inactive
@linear
Copy link

linear bot commented Dec 15, 2025

@changeset-bot
Copy link

changeset-bot bot commented Dec 15, 2025

⚠️ No Changeset found

Latest commit: f9a4350

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 Dec 15, 2025

Walkthrough

Moved the "name" property within the bridge sidebar section object and redistributed padding inside the DocSidebarCategory: padding removed from the Link wrapper and applied to the inner trigger content container to adjust sidebar spacing and clickable area.

Changes

Cohort / File(s) Summary
Sidebar configuration
apps/portal/src/app/bridge/sidebar.tsx
Reordered the section object so the public name field ("Guides") appears before the links array (field relocated within the same object literal).
Sidebar component spacing
apps/portal/src/components/others/Sidebar.tsx
In DocSidebarCategory, removed padding from the Link wrapper and added py-1.5 px-3 to the inner trigger content container to change spacing and clickable area distribution.

Estimated code review effort

🎯 2 (Simple) | ⏱️ ~10 minutes

  • Files are small and changes are localized, but visual/UX implications warrant checking.
  • Areas to review closely:
    • apps/portal/src/components/others/Sidebar.tsx: verify interactive hit area and layout across breakpoints and that link semantics remain intact.
    • apps/portal/src/app/bridge/sidebar.tsx: confirm no downstream code relies on property order within the object literal.

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The PR title clearly describes the main change: fixing a spacing issue on a menu with a link in the Portal app, matching the actual code changes to sidebar spacing.
Description check ✅ Passed The PR description contains PR template placeholders but includes a meaningful PR-Codex summary explaining the sidebar modifications and styling changes, though it lacks detailed testing instructions.
Linked Issues check ✅ Passed The PR addresses the spacing issue in MNY-336 by adjusting padding distribution in the Sidebar component, moving padding from the Link to the inner div to fix the layout problem shown in the linked issue.
Out of Scope Changes check ✅ Passed The changes in sidebar.tsx and Sidebar.tsx are scoped to fixing the spacing issue described in MNY-336, with no unrelated modifications to other functionality.
✨ Finishing touches
  • 📝 Generate docstrings
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch mny-336

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.

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

@MananTank MananTank marked this pull request as ready for review December 15, 2025 17:43
@MananTank MananTank requested review from a team as code owners December 15, 2025 17:43
@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Dec 15, 2025
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.

@codecov
Copy link

codecov bot commented Dec 15, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.49%. Comparing base (27d72e5) to head (f9a4350).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8560   +/-   ##
=======================================
  Coverage   54.49%   54.49%           
=======================================
  Files         922      922           
  Lines       61361    61361           
  Branches     4150     4150           
=======================================
  Hits        33441    33441           
  Misses      27818    27818           
  Partials      102      102           
Flag Coverage Δ
packages 54.49% <ø> (ø)
🚀 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

🧹 Nitpick comments (1)
apps/portal/src/components/others/Sidebar.tsx (1)

56-243: Consider splitting this sidebar module into smaller components over time

Unrelated to this spacing fix, this file now hosts several components (DocSidebar, SidebarItem, DocSidebarNonCollapsible, DocSidebarCategory, DocSidebarMobile) plus helpers, which makes it a bit dense for a single-responsibility TSX file. When convenient, consider extracting major pieces (e.g., mobile vs desktop, helpers) into separate modules for easier maintenance.

📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • 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 151127d and af5f056.

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

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each TypeScript 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 in TypeScript
Avoid any and unknown in TypeScript unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial, Pick, etc.) in TypeScript

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

Files:

  • apps/portal/src/components/others/Sidebar.tsx
  • apps/portal/src/app/bridge/sidebar.tsx
**/*.{js,jsx,ts,tsx,json}

📄 CodeRabbit inference engine (AGENTS.md)

Biome governs formatting and linting; its rules live in biome.json. Run pnpm fix & pnpm lint before committing, ensure there are no linting errors

Files:

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

📄 CodeRabbit inference engine (AGENTS.md)

Lazy-import optional features; avoid top-level side-effects

Files:

  • apps/portal/src/components/others/Sidebar.tsx
  • apps/portal/src/app/bridge/sidebar.tsx
🧬 Code graph analysis (1)
apps/portal/src/components/others/Sidebar.tsx (1)
packages/thirdweb/src/react/web/ui/components/text.tsx (1)
  • Link (46-64)
⏰ 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, webpack)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Unit Tests
  • GitHub Check: Lint Packages
  • GitHub Check: Build Packages
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (3)
apps/portal/src/app/bridge/sidebar.tsx (1)

22-80: Guides group name placement looks correct and type-safe

Setting name: "Guides" on the group itself matches LinkGroup’s shape and ensures the section header renders consistently with other groups; no issues from a typing or behavior perspective.

apps/portal/src/components/others/Sidebar.tsx (2)

199-210: Padding move into inner trigger content aligns spacing with items

Moving the padding to the inner div (flex gap-2 py-1.5 px-3) keeps the icon/label layout tidy and increases the effective hit area for the category header without changing active/hover text styling; behavior remains consistent.


213-219: Link wrapper update keeps behavior while fixing visual spacing

Removing padding from the Link and limiting it to className={cn("w-full text-left")} works cleanly with the padded inner div: the visible header area stays fully clickable, while spacing is now controlled in a single place.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 15, 2025

size-limit report 📦

Path Size
@thirdweb-dev/nexus (esm) 105.66 KB (0%)
@thirdweb-dev/nexus (cjs) 319.47 KB (0%)

@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 15, 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 sidebar configuration and adjusting styles in the `Sidebar` component for better layout and design.

### Detailed summary
- In `apps/portal/src/app/bridge/sidebar.tsx`:
  - Added an entry for `name: "Guides"` in the sidebar configuration.
- In `apps/portal/src/components/others/Sidebar.tsx`:
  - Updated the `className` of a `div` to include `py-1.5` and `px-3`.
  - Modified the `className` of a `Link` to remove padding classes `py-1.5` and `px-3`.

> ✨ 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**
  * Improved sidebar category spacing with enhanced padding distribution
  * Expanded interactive click target area for sidebar navigation items
  * Better visual organization of the Guides section

<sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub>

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@vercel vercel bot temporarily deployed to Preview – nebula December 15, 2025 17:55 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground December 15, 2025 17:55 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui December 15, 2025 17:55 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www December 15, 2025 17:55 Inactive
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

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

21-80: LGTM! Consider aligning property order across all sections.

The Guides section structure is correct and the property reordering doesn't affect functionality. However, for consistency, the "API References" section (lines 82-112) places the name property at the end (line 111), while both "Guides" and "Resources" place it near the beginning.

If desired, apply this diff to align all sections:

   { separator: true },
   {
+    name: "API References",
     isCollapsible: false,
     links: [
       {
         href: `/reference`,
         icon: <EngineIcon />,
         name: "HTTP API",
       },
       {
         href: "/references/typescript/v5",
         icon: <TypeScriptIcon />,
         name: "TypeScript",
       },
       {
         href: "/references/typescript/v5",
         icon: <ReactIcon />,
         name: "React",
       },
       {
         href: "/unity",
         icon: <UnityIcon />,
         name: "Unity",
       },
       {
         href: "/unreal-engine",
         icon: <UnrealEngineIcon />,
         name: "Unreal Engine",
       },
     ],
-    name: "API References",
   },
📜 Review details

Configuration used: CodeRabbit UI

Review profile: CHILL

Plan: Pro

Disabled knowledge base sources:

  • 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 af5f056 and f9a4350.

📒 Files selected for processing (2)
  • apps/portal/src/app/bridge/sidebar.tsx (1 hunks)
  • apps/portal/src/components/others/Sidebar.tsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (1)
  • apps/portal/src/components/others/Sidebar.tsx
🧰 Additional context used
📓 Path-based instructions (3)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

**/*.{ts,tsx}: Write idiomatic TypeScript with explicit function declarations and return types
Limit each TypeScript 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 in TypeScript
Avoid any and unknown in TypeScript unless unavoidable; narrow generics when possible
Choose composition over inheritance; leverage utility types (Partial, Pick, etc.) in TypeScript

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

Files:

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

📄 CodeRabbit inference engine (AGENTS.md)

Biome governs formatting and linting; its rules live in biome.json. Run pnpm fix & pnpm lint before committing, ensure there are no linting errors

Files:

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

📄 CodeRabbit inference engine (AGENTS.md)

Lazy-import optional features; avoid top-level side-effects

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). (3)
  • GitHub Check: Lint Packages
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)

@graphite-app graphite-app bot merged commit f9a4350 into main Dec 15, 2025
25 checks passed
@graphite-app graphite-app bot deleted the mny-336 branch December 15, 2025 18:07
@vercel vercel bot temporarily deployed to Production – thirdweb_playground December 15, 2025 18:07 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.

2 participants