Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Aug 2, 2025


PR-Codex overview

This PR focuses on improving the layout and functionality of various components in the playground-web application by enhancing styling, modifying props, and implementing new features for better responsiveness and usability.

Detailed summary

  • Added className="!max-w-full" to StyledConnectEmbed in styled-connect-embed.tsx.
  • Wrapped StyledConnectEmbed in a div with overflow and padding in page.tsx.
  • Updated heading and paragraph styles in APIHeader.tsx.
  • Modified RightSection to include overflow-hidden class.
  • Introduced FullPathSuspense component for handling pathname rendering.
  • Refactored NavLink to use fullPath prop instead of useFullPath.
  • Removed unnecessary Suspense wrappers in NavLink.
  • Updated FullWidthSidebarLayout to use FullPathSuspense for rendering.
  • Passed fullPath prop to various components including RenderSidebarMenu.
  • Refactored useActiveShadcnSidebarLink and useIsSubnavActive to accept fullPath.
  • Updated sidebar rendering functions to utilize fullPath for link matching.

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

Summary by CodeRabbit

  • New Features

    • Introduced a component that enables rendering content based on the full current URL path, including query parameters.
  • Refactor

    • Updated sidebar and navigation components to receive the current path as a prop, simplifying active link determination and layout logic.
    • Consolidated suspense handling for sidebar components to a single top-level boundary.
    • Simplified navigation link component by removing internal suspense and requiring external path prop.
  • Style

    • Improved visual layout and spacing for embedded components and page headers.
    • Enhanced responsiveness and maximum width handling for embedded connect components.
  • Documentation

    • Updated type names and component signatures for improved clarity.

@changeset-bot
Copy link

changeset-bot bot commented Aug 2, 2025

⚠️ No Changeset found

Latest commit: 57862d0

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 Aug 2, 2025

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

Name Status Preview Comments Updated (UTC)
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Aug 2, 2025 8:16pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Aug 2, 2025 8:16pm
nebula ⬜️ Skipped (Inspect) Aug 2, 2025 8:16pm
thirdweb-www ⬜️ Skipped (Inspect) Aug 2, 2025 8:16pm
wallet-ui ⬜️ Skipped (Inspect) Aug 2, 2025 8:16pm

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Aug 2, 2025

Walkthrough

The changes update several UI components in the playground web app to improve layout and styling, particularly for embedded wallet connect components and sidebar navigation. The sidebar system is refactored to pass the current path explicitly via props rather than through an internal hook, centralizing path resolution logic using a new FullPathSuspense component. Multiple function signatures and component props are updated accordingly, and some visual tweaks are made to headers and embedded components.

Changes

Cohort / File(s) Change Summary
Sidebar Path Refactor
apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx, apps/playground-web/src/components/blocks/full-path-suspense.tsx, apps/playground-web/src/components/ui/NavLink.tsx
Refactored sidebar and navigation components to accept fullPath as a prop, removing internal usage of useFullPath and multiple Suspense wrappers. Introduced FullPathSuspense to resolve and provide the full path at a top level. Updated related hooks and component signatures.
Connect Embed Styling
apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx, apps/playground-web/src/app/wallets/sign-in/embed/page.tsx, apps/playground-web/src/components/styled-connect-embed.tsx
Updated styling and container classes for ConnectEmbed components to enforce full width and control overflow. Added utility classes to wrapping divs and the embed component itself for consistent layout.
Header Styling Update
apps/playground-web/src/components/blocks/APIHeader.tsx
Adjusted typography and layout classes for the header title and description to enhance visual emphasis and width.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant FullPathSuspense
    participant WithFullPath
    participant useFullPath
    participant SidebarComponent

    User->>FullPathSuspense: Render component with render callback
    FullPathSuspense->>WithFullPath: Render inside Suspense boundary
    WithFullPath->>useFullPath: Get full path (pathname + search)
    useFullPath-->>WithFullPath: Return fullPath
    WithFullPath->>SidebarComponent: Call render(fullPath)
    SidebarComponent-->>User: Rendered sidebar/navigation with fullPath
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 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 27f90e9 and 57862d0.

📒 Files selected for processing (7)
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx (2 hunks)
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx (1 hunks)
  • apps/playground-web/src/components/blocks/APIHeader.tsx (1 hunks)
  • apps/playground-web/src/components/blocks/full-path-suspense.tsx (1 hunks)
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx (17 hunks)
  • apps/playground-web/src/components/styled-connect-embed.tsx (1 hunks)
  • apps/playground-web/src/components/ui/NavLink.tsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (6)
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-path-suspense.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.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 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

Files:

  • apps/playground-web/src/components/blocks/APIHeader.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/playground-web/src/components/blocks/APIHeader.tsx
apps/{dashboard,playground-web}/**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (CLAUDE.md)

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
Use NavLink for internal navigation with automatic active states in dashboard and playground apps
Use Tailwind CSS only – no inline styles or CSS modules
Use cn() from @/lib/utils for conditional class logic
Use design system tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components (Node edge): Start files with import "server-only";
Client Components (browser): Begin files with 'use client';
Always call getAuthToken() to retrieve JWT from cookies on server side
Use Authorization: Bearer header – never embed tokens in URLs
Return typed results (e.g., Project[], User[]) – avoid any
Wrap client-side data fetching calls in React Query (@tanstack/react-query)
Use descriptive, stable queryKeys for React Query cache hits
Configure staleTime/cacheTime in React Query based on freshness (default ≥ 60s)
Keep tokens secret via internal API routes or server actions
Never import posthog-js in server components

Files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
🧠 Learnings (15)
📓 Common learnings
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: 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
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
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/**/*client.tsx : Interactive UI that relies on hooks (`useState`, `useEffect`, React Query, wallet hooks).
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} : Layouts should reuse `SidebarLayout` / `FullWidthSidebarLayout` (`@/components/blocks/SidebarLayout`).
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 design system tokens (e.g., `bg-card`, `border-border`, `text-muted-foreground`)
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} : Use `NavLink` (`@/components/ui/NavLink`) for internal navigation so active states are handled automatically.
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}/**/*.{tsx} : Expose `className` prop on root element of components for overrides
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} : Prefer composable primitives over custom markup: `Button`, `Input`, `Select`, `Tabs`, `Card`, `Sidebar`, `Separator`, `Badge`.
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:153-226
Timestamp: 2025-06-10T00:50:20.795Z
Learning: In apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/launch-nft.tsx, the updateStatus function correctly expects a complete MultiStepState["status"] object. For pending states, { type: "pending" } is the entire status object. For error states, { type: "error", message: React.ReactNode } is the entire status object. The current code incorrectly spreads the entire step object instead of passing just the status object.
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/**/layout.tsx : Building layout shells (`layout.tsx`) and top-level pages that mainly assemble data.
Learnt from: MananTank
PR: thirdweb-dev/js#7177
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/settings/shared-settings-page.tsx:29-39
Timestamp: 2025-05-27T20:10:47.245Z
Learning: MananTank prefers adding error handling (try-catch) directly inside utility functions like `shouldRenderNewPublicPage` rather than requiring callers to wrap the function calls in try-catch blocks. This centralizes error handling and benefits all callers automatically.
📚 Learning: surface breaking changes prominently in pr descriptions...
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

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : spacing utilities (`px-*`, `py-*`, `gap-*`) are preferred over...
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} : Spacing utilities (`px-*`, `py-*`, `gap-*`) are preferred over custom margins.

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : use the `container` class with a `max-w-7xl` cap for page widt...
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} : Use the `container` class with a `max-w-7xl` cap for page width consistency.

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to apps/{dashboard,playground-web}/**/*.{tsx} : expose `classname` prop on root element of c...
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}/**/*.{tsx} : Expose `className` prop on root element of components for overrides

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : use tailwind css only – no inline styles ...
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 Tailwind CSS only – no inline styles or CSS modules

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : stick to design-tokens: background (`bg-card`), borders (`bord...
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} : Stick to design-tokens: background (`bg-card`), borders (`border-border`), muted text (`text-muted-foreground`) etc.

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : add `classname` to the root element of every component for ext...
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} : Add `className` to the root element of every component for external overrides.

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : layouts should reuse `sidebarlayout` / `fullwidthsidebarlayout...
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} : Layouts should reuse `SidebarLayout` / `FullWidthSidebarLayout` (`@/components/blocks/SidebarLayout`).

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : use design system tokens (e.g., `bg-card`...
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 design system tokens (e.g., `bg-card`, `border-border`, `text-muted-foreground`)

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to dashboard/**/layout.tsx : building layout shells (`layout.tsx`) and top-level pages that ...
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/**/layout.tsx : Building layout shells (`layout.tsx`) and top-level pages that mainly assemble data.

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : for notices & skeletons rely on `announcementbanner`, `generic...
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} : For notices & skeletons rely on `AnnouncementBanner`, `GenericLoadingPage`, `EmptyStateCard`.

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : responsive helpers follow mobile-first (`max-sm`, `md`, `lg`, ...
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} : Responsive helpers follow mobile-first (`max-sm`, `md`, `lg`, `xl`).

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: the spinner component imported from "@/components/ui/spinner/spinner" in the dashboard accepts a cla...
Learnt from: MananTank
PR: thirdweb-dev/js#7505
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-metrics.tsx:40-40
Timestamp: 2025-07-02T20:04:53.982Z
Learning: The Spinner component imported from "@/components/ui/Spinner/Spinner" in the dashboard accepts a className prop, not a size prop. The correct usage is <Spinner className="size-4" />, not <Spinner size="sm" />. The component defaults to "size-4" if no className is provided.

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : accept a typed `props` object and export a named function (`ex...
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} : Accept a typed `props` object and export a named function (`export function MyComponent()`).

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.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). (7)
  • GitHub Check: Size
  • GitHub Check: Lint Packages
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Unit Tests
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
apps/playground-web/src/components/blocks/APIHeader.tsx (2)

29-29: LGTM! Improved visual hierarchy.

The changes from font-semibold to font-bold and mb-0.5 to mb-1 enhance the visual prominence and spacing of the page title, creating better hierarchy in the header.


32-32: LGTM! Better text layout and width.

Adding text-balance improves text wrapping behavior, and increasing the max width from max-w-4xl to max-w-5xl allows for better content display while maintaining readability.

✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 08-03-playground_improve_sidebar_search_params_suspense_fallback

🪧 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 generate unit tests to generate unit tests for 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 Dashboard Involves changes to the Dashboard. Playground Changes involving the Playground codebase. labels Aug 2, 2025
@MananTank MananTank marked this pull request as ready for review August 2, 2025 19:30
@MananTank MananTank requested review from a team as code owners August 2, 2025 19:30
Copy link
Member Author

MananTank commented Aug 2, 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.

@MananTank MananTank changed the title Playground: Improve sidebar search params suspense fallback Playground: Improved sidebar search params suspense fallback, Fix ConnectEmbed width on mobile Aug 2, 2025
@codecov
Copy link

codecov bot commented Aug 2, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.34%. Comparing base (834bbc0) to head (57862d0).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7784   +/-   ##
=======================================
  Coverage   56.34%   56.34%           
=======================================
  Files         905      905           
  Lines       58788    58788           
  Branches     4142     4142           
=======================================
  Hits        33122    33122           
  Misses      25561    25561           
  Partials      105      105           
Flag Coverage Δ
packages 56.34% <ø> (ø)
🚀 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

🧹 Nitpick comments (2)
apps/playground-web/src/components/blocks/full-path-suspence.tsx (1)

1-24: Consider fixing the filename typo.

The filename contains a typo: "suspence" should be "suspense". Consider renaming the file to full-path-suspense.tsx for correct spelling.

apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx (1)

34-34: Fix typo in import path

The import path contains a typo: "suspence" should be "suspense".

-import { FullPathSuspense } from "./full-path-suspence";
+import { FullPathSuspense } from "./full-path-suspense";

Note: You'll also need to rename the actual file from full-path-suspence.tsx to full-path-suspense.tsx.

📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 834bbc0 and 9bfdb62.

📒 Files selected for processing (8)
  • apps/dashboard/src/@/components/ui/NavLink.tsx (1 hunks)
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx (2 hunks)
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx (1 hunks)
  • apps/playground-web/src/components/blocks/APIHeader.tsx (1 hunks)
  • apps/playground-web/src/components/blocks/full-path-suspence.tsx (1 hunks)
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx (15 hunks)
  • apps/playground-web/src/components/styled-connect-embed.tsx (1 hunks)
  • apps/playground-web/src/components/ui/NavLink.tsx (2 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 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

Files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/playground-web/src/components/blocks/APIHeader.tsx
  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.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/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/playground-web/src/components/blocks/APIHeader.tsx
  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
apps/{dashboard,playground-web}/**/*.{ts,tsx}

📄 CodeRabbit Inference Engine (CLAUDE.md)

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
Use NavLink for internal navigation with automatic active states in dashboard and playground apps
Use Tailwind CSS only – no inline styles or CSS modules
Use cn() from @/lib/utils for conditional class logic
Use design system tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components (Node edge): Start files with import "server-only";
Client Components (browser): Begin files with 'use client';
Always call getAuthToken() to retrieve JWT from cookies on server side
Use Authorization: Bearer header – never embed tokens in URLs
Return typed results (e.g., Project[], User[]) – avoid any
Wrap client-side data fetching calls in React Query (@tanstack/react-query)
Use descriptive, stable queryKeys for React Query cache hits
Configure staleTime/cacheTime in React Query based on freshness (default ≥ 60s)
Keep tokens secret via internal API routes or server actions
Never import posthog-js in server components

Files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/playground-web/src/components/blocks/APIHeader.tsx
  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
🧠 Learnings (49)
📓 Common learnings
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
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: 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} : Layouts should reuse `SidebarLayout` / `FullWidthSidebarLayout` (`@/components/blocks/SidebarLayout`).
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
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}/**/*.{tsx} : Expose `className` prop on root element of components for overrides
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} : Wrap client-side data fetching calls in React Query (`@tanstack/react-query`)
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 descriptive, stable `queryKeys` for React Query cache hits
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/**/*client.tsx : Interactive UI that relies on hooks (`useState`, `useEffect`, React Query, wallet hooks).
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} : Use `NavLink` (`@/components/ui/NavLink`) for internal navigation so active states are handled automatically.
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/**/layout.tsx : Building layout shells (`layout.tsx`) and top-level pages that mainly assemble data.
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: .cursor/rules/dashboard.mdc:0-0
Timestamp: 2025-07-18T19:20:32.530Z
Learning: Applies to dashboard/**/*.{tsx,jsx} : Keep components pure; fetch data outside (server component or hook) and pass it down via props.
Learnt from: jnsdls
PR: thirdweb-dev/js#7365
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectFTUX/ProjectFTUX.tsx:16-17
Timestamp: 2025-06-18T04:27:16.172Z
Learning: Next.js Link component supports external URLs without throwing errors. When used with absolute URLs (like https://...), it behaves like a regular anchor tag without client-side routing, but does not cause runtime crashes or errors as previously believed.
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/**/*client.tsx : Pages requiring fast transitions where data is prefetched on the client.
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} : Local state or effects live inside; data fetching happens in hooks.
Learnt from: MananTank
PR: thirdweb-dev/js#7177
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/settings/shared-settings-page.tsx:29-39
Timestamp: 2025-05-27T20:10:47.245Z
Learning: MananTank prefers adding error handling (try-catch) directly inside utility functions like `shouldRenderNewPublicPage` rather than requiring callers to wrap the function calls in try-catch blocks. This centralizes error handling and benefits all callers automatically.
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : use the `container` class with a `max-w-7xl` cap for page widt...
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} : Use the `container` class with a `max-w-7xl` cap for page width consistency.

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : use tailwind css only – no inline styles ...
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 Tailwind CSS only – no inline styles or CSS modules

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to apps/{dashboard,playground-web}/**/*.{tsx} : expose `classname` prop on root element of c...
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}/**/*.{tsx} : Expose `className` prop on root element of components for overrides

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/playground-web/src/components/blocks/APIHeader.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : add `classname` to the root element of every component for ext...
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} : Add `className` to the root element of every component for external overrides.

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : responsive helpers follow mobile-first (`max-sm`, `md`, `lg`, ...
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} : Responsive helpers follow mobile-first (`max-sm`, `md`, `lg`, `xl`).

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/components/blocks/APIHeader.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : use `cn()` from `@/lib/utils` for conditi...
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 `cn()` from `@/lib/utils` for conditional class logic

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : tailwind css is the styling system – avoid inline styles or cs...
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} : Tailwind CSS is the styling system – avoid inline styles or CSS modules.

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : combine class names via `cn`, expose `classname` prop if usefu...
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} : Combine class names via `cn`, expose `className` prop if useful.

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : merge class names with `cn` from `@/lib/utils` to keep conditi...
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} : Merge class names with `cn` from `@/lib/utils` to keep conditional logic readable.

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : spacing utilities (`px-*`, `py-*`, `gap-*`) are preferred over...
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} : Spacing utilities (`px-*`, `py-*`, `gap-*`) are preferred over custom margins.

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: the modulecarduiprops interface already includes a client prop of type thirdwebclient, so when compo...
Learnt from: MananTank
PR: thirdweb-dev/js#7227
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/modules/components/OpenEditionMetadata.tsx:26-26
Timestamp: 2025-05-30T17:14:25.332Z
Learning: The ModuleCardUIProps interface already includes a client prop of type ThirdwebClient, so when components use `Omit<ModuleCardUIProps, "children" | "updateButton">`, they inherit the client prop without needing to add it explicitly.

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
📚 Learning: applies to dashboard/**/*client.tsx : interactive ui that relies on hooks (`usestate`, `useeffect`, ...
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/**/*client.tsx : Interactive UI that relies on hooks (`useState`, `useEffect`, React Query, wallet hooks).

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/*client.tsx : anything that consumes hooks from `@tanstack/react-query` or t...
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/**/*client.tsx : Anything that consumes hooks from `@tanstack/react-query` or thirdweb SDKs.

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/*client.tsx : create light wrappers (e.g. `fetchjson`) that automatically at...
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/**/*client.tsx : Create light wrappers (e.g. `fetchJson`) that automatically attach the JWT from cookies/session when calling internal API routes.

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
📚 Learning: applies to dashboard/**/*client.tsx : when you need access to browser apis (localstorage, window, in...
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/**/*client.tsx : When you need access to browser APIs (localStorage, window, IntersectionObserver etc.).

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
📚 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: Applies to packages/thirdweb/src/wallets/** : Support for in-app wallets (social/email login)

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : accept a typed `props` object and export a named function (`ex...
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} : Accept a typed `props` object and export a named function (`export function MyComponent()`).

Applied to files:

  • apps/playground-web/src/components/styled-connect-embed.tsx
  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/components/blocks/APIHeader.tsx
  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : prefer composable primitives over custom markup: `button`, `in...
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} : Prefer composable primitives over custom markup: `Button`, `Input`, `Select`, `Tabs`, `Card`, `Sidebar`, `Separator`, `Badge`.

Applied to files:

  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : import ui primitives from `@/components/u...
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/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/layout.tsx : building layout shells (`layout.tsx`) and top-level pages that ...
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/**/layout.tsx : Building layout shells (`layout.tsx`) and top-level pages that mainly assemble data.

Applied to files:

  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/components/blocks/APIHeader.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: in apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/launch-n...
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:153-226
Timestamp: 2025-06-10T00:50:20.795Z
Learning: In apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/assets/create/nft/launch-nft.tsx, the updateStatus function correctly expects a complete MultiStepState["status"] object. For pending states, { type: "pending" } is the entire status object. For error states, { type: "error", message: React.ReactNode } is the entire status object. The current code incorrectly spreads the entire step object instead of passing just the status object.

Applied to files:

  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : reuse core ui primitives; avoid re-implementing buttons, cards...
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} : Reuse core UI primitives; avoid re-implementing buttons, cards, modals.

Applied to files:

  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
📚 Learning: in the accounts component at apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractad...
Learnt from: jnsdls
PR: thirdweb-dev/js#7188
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/accounts/components/accounts-count.tsx:15-15
Timestamp: 2025-05-29T00:46:09.063Z
Learning: In the accounts component at apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/accounts/components/accounts-count.tsx, the 3-column grid layout (md:grid-cols-3) is intentionally maintained even when rendering only one StatCard, as part of the design structure for this component.

Applied to files:

  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : icons come from `lucide-react` or the project-specific `…/icon...
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/playground-web/src/app/wallets/sign-in/embed/page.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : keep components pure; fetch data outside (server component or ...
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} : Keep components pure; fetch data outside (server component or hook) and pass it down via props.

Applied to files:

  • apps/playground-web/src/app/wallets/sign-in/embed/page.tsx
📚 Learning: applies to dashboard/**/*client.tsx : pages requiring fast transitions where data is prefetched on t...
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/**/*client.tsx : Pages requiring fast transitions where data is prefetched on the client.

Applied to files:

  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
📚 Learning: applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : client components (browser): begin files ...
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} : Client Components (browser): Begin files with `'use client';`

Applied to files:

  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
📚 Learning: applies to dashboard/**/*client.tsx : components that listen to user events, animations or live upda...
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/**/*client.tsx : Components that listen to user events, animations or live updates.

Applied to files:

  • apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx
📚 Learning: surface breaking changes prominently in pr descriptions...
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

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : stick to design-tokens: background (`bg-card`), borders (`bord...
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} : Stick to design-tokens: background (`bg-card`), borders (`border-border`), muted text (`text-muted-foreground`) etc.

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : use design system tokens (e.g., `bg-card`...
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 design system tokens (e.g., `bg-card`, `border-border`, `text-muted-foreground`)

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : for notices & skeletons rely on `announcementbanner`, `generic...
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} : For notices & skeletons rely on `AnnouncementBanner`, `GenericLoadingPage`, `EmptyStateCard`.

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: the spinner component imported from "@/components/ui/spinner/spinner" in the dashboard accepts a cla...
Learnt from: MananTank
PR: thirdweb-dev/js#7505
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/webhooks/components/webhook-metrics.tsx:40-40
Timestamp: 2025-07-02T20:04:53.982Z
Learning: The Spinner component imported from "@/components/ui/Spinner/Spinner" in the dashboard accepts a className prop, not a size prop. The correct usage is <Spinner className="size-4" />, not <Spinner size="sm" />. The component defaults to "size-4" if no className is provided.

Applied to files:

  • apps/playground-web/src/components/blocks/APIHeader.tsx
📚 Learning: in next.js server components, the `params` object can sometimes be a promise that needs to be awaite...
Learnt from: jnsdls
PR: thirdweb-dev/js#6929
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/insight/webhooks/page.tsx:14-19
Timestamp: 2025-05-21T05:17:31.283Z
Learning: In Next.js server components, the `params` object can sometimes be a Promise that needs to be awaited, despite type annotations suggesting otherwise. In apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/insight/webhooks/page.tsx, it's necessary to await the params object before accessing its properties.

Applied to files:

  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
📚 Learning: in next.js 14+, the `params` object in page components is always a promise that needs to be awaited,...
Learnt from: MananTank
PR: thirdweb-dev/js#7152
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/accounts/page.tsx:2-10
Timestamp: 2025-05-26T16:28:10.079Z
Learning: In Next.js 14+, the `params` object in page components is always a Promise that needs to be awaited, so the correct typing is `params: Promise<ParamsType>` rather than `params: ParamsType`.

Applied to files:

  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
📚 Learning: applies to **/*.{ts,tsx,js,jsx} : load heavy dependencies inside async paths to keep initial bundle ...
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to **/*.{ts,tsx,js,jsx} : Load heavy dependencies inside async paths to keep initial bundle lean (lazy loading)

Applied to files:

  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
📚 Learning: applies to apps/{dashboard,playground-web}/**/*.{ts,tsx} : use `navlink` for internal navigation wit...
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/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to src/exports/react.native.ts : react native specific exports are in `src/exports/react.nat...
Learnt from: CR
PR: thirdweb-dev/js#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-18T19:19:55.613Z
Learning: Applies to src/exports/react.native.ts : React Native specific exports are in `src/exports/react.native.ts`

Applied to files:

  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
📚 Learning: next.js link component supports external urls without throwing errors. when used with absolute urls ...
Learnt from: jnsdls
PR: thirdweb-dev/js#7365
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectFTUX/ProjectFTUX.tsx:16-17
Timestamp: 2025-06-18T04:27:16.172Z
Learning: Next.js Link component supports external URLs without throwing errors. When used with absolute URLs (like https://...), it behaves like a regular anchor tag without client-side routing, but does not cause runtime crashes or errors as previously believed.

Applied to files:

  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/*.{ts,tsx} : redirect logic using `redirect()` from `next/navigation`....
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`.

Applied to files:

  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : use `navlink` (`@/components/ui/navlink`) for internal navigat...
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} : Use `NavLink` (`@/components/ui/NavLink`) for internal navigation so active states are handled automatically.

Applied to files:

  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: in react image components, conditional rendering of the entire image container (e.g., `{props.image ...
Learnt from: MananTank
PR: thirdweb-dev/js#7177
File: apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/ContractHeader.tsx:26-43
Timestamp: 2025-05-29T10:49:52.981Z
Learning: In React image components, conditional rendering of the entire image container (e.g., `{props.image && <Img />}`) serves a different purpose than fallback handling. The conditional prevents rendering any image UI when no image metadata exists, while the fallback prop handles cases where image metadata exists but the image fails to load. This pattern is intentional to distinguish between "no image intended" vs "image intended but failed to load".

Applied to files:

  • apps/playground-web/src/components/blocks/full-path-suspence.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : always import from the central ui library under `@/components/...
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} : Always import from the central UI library under `@/components/ui/*` – e.g. `import { Button } from "@/components/ui/button"`.

Applied to files:

  • apps/dashboard/src/@/components/ui/NavLink.tsx
📚 Learning: applies to dashboard/**/components/*.client.tsx : client components must start with `'use client';` ...
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/**/components/*.client.tsx : Client components must start with `'use client';` before imports.

Applied to files:

  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
📚 Learning: next.js link component fully supports both internal and external urls and works appropriately with a...
Learnt from: jnsdls
PR: thirdweb-dev/js#7365
File: apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/components/ProjectFTUX/ProjectFTUX.tsx:16-17
Timestamp: 2025-06-18T04:30:04.326Z
Learning: Next.js Link component fully supports both internal and external URLs and works appropriately with all standard anchor attributes including target="_blank", rel="noopener noreferrer", etc. Using Link for external URLs is completely appropriate and recommended.

Applied to files:

  • apps/dashboard/src/@/components/ui/NavLink.tsx
  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: configuration files that import and reference react components (like icon components from lucide-rea...
Learnt from: MananTank
PR: thirdweb-dev/js#7768
File: apps/playground-web/src/app/navLinks.ts:1-1
Timestamp: 2025-07-31T16:17:42.753Z
Learning: Configuration files that import and reference React components (like icon components from lucide-react) need the "use client" directive, even if they primarily export static data, because the referenced components need to be executed in a client context when used by other client components.

Applied to files:

  • apps/playground-web/src/components/ui/NavLink.tsx
  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: applies to dashboard/**/*.{tsx,jsx} : layouts should reuse `sidebarlayout` / `fullwidthsidebarlayout...
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} : Layouts should reuse `SidebarLayout` / `FullWidthSidebarLayout` (`@/components/blocks/SidebarLayout`).

Applied to files:

  • apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx
📚 Learning: in the thirdweb-dev/js repository, lucide-react icons must be imported with the "icon" suffix (e.g.,...
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/playground-web/src/components/blocks/full-width-sidebar-layout.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). (7)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Size
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (16)
apps/playground-web/src/components/styled-connect-embed.tsx (1)

52-52: LGTM! Consistent width constraint implementation.

The addition of !max-w-full ensures the ConnectEmbed component can expand to full available width, overriding any existing max-width constraints. This aligns with the coordinated styling changes across the playground-web app for consistent layout behavior.

apps/playground-web/src/components/blocks/APIHeader.tsx (2)

29-29: LGTM! Enhanced visual hierarchy.

Increasing the margin from mb-0.5 to mb-1 and upgrading font weight from font-semibold to font-bold improves the visual emphasis and spacing of the header title.


32-32: LGTM! Improved text readability.

Adding text-balance ensures better text wrapping, and increasing max-width from max-w-4xl to max-w-5xl allows for better content flow in the description text.

apps/playground-web/src/components/blocks/full-path-suspence.tsx (2)

5-15: LGTM! Well-designed suspense abstraction.

The FullPathSuspense component provides a clean abstraction for handling full path resolution with proper fallback behavior. The render prop pattern allows flexible usage while centralizing the suspense logic.


17-23: LGTM! Clean separation of concerns.

The internal WithFullPath component properly separates the suspense-triggering logic from the main component, following React patterns correctly.

apps/playground-web/src/app/wallets/sign-in/button/RightSection.tsx (2)

188-188: LGTM! Improved container overflow control.

Adding overflow-hidden to the container div prevents content from spilling outside the bounds, improving layout control and responsive behavior.


200-200: LGTM! Consistent width constraint pattern.

Adding !max-w-full to the ConnectEmbed className ensures full width utilization and maintains consistency with similar changes across the codebase.

apps/playground-web/src/app/wallets/sign-in/embed/page.tsx (1)

54-58: LGTM! Consistent layout control implementation.

Wrapping the StyledConnectEmbed in a div with overflow-hidden max-w-full px-3 classes provides better layout control within the preview, adding overflow containment, width constraints, and appropriate horizontal padding. This follows the consistent pattern established across other similar components in the codebase.

apps/dashboard/src/@/components/ui/NavLink.tsx (1)

17-24: LGTM! Clean implementation of externalized path handling

The active state logic correctly uses the provided fullPath prop while maintaining support for custom isActive functions and exact matching. This aligns well with the broader refactoring pattern of externalizing path handling.

apps/playground-web/src/components/ui/NavLink.tsx (3)

17-24: Excellent Suspense implementation with synchronous fallback

Great approach using usePathname for immediate rendering in the Suspense fallback. This prevents layout shifts and provides instant feedback while the full path (with search params) loads asynchronously.


26-29: Clean separation of async logic from UI

Good pattern separating the async path resolution from the UI component. This makes the code more testable and maintainable.


31-51: Well-designed UI component for reuse in both sync and async contexts

The NavLinkUI component elegantly handles rendering with a provided fullPath, making it reusable for both the synchronous Suspense fallback and the async resolved state. The active state logic is correctly implemented.

apps/playground-web/src/components/blocks/full-width-sidebar-layout.tsx (4)

69-79: Excellent architectural pattern maintaining backward compatibility

Great design using Omit<FullWidthSidebarLayoutProps, "fullPath"> to maintain the existing public API while internally handling the full path via FullPathSuspense. This prevents breaking changes for consumers.


117-120: Consistent fullPath prop threading throughout component tree

The fullPath prop is systematically passed to all components that need it for active state determination. This explicit data flow improves code clarity and debugging.

Also applies to: 125-128, 152-152


190-247: Excellent hook refactoring for testability and reusability

Converting these hooks to accept fullPath as a parameter instead of using internal hooks makes them pure functions. This improves testability, reusability, and makes the data dependencies explicit.


274-277: Proper integration with refactored hooks and nested components

The RenderSidebarSubmenu component correctly uses the refactored useIsSubnavActive hook and properly passes fullPath to all nested components, maintaining the consistent pattern.

Also applies to: 346-346, 358-358

@github-actions
Copy link
Contributor

github-actions bot commented Aug 2, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 63.15 KB (0%) 1.3 s (0%) 213 ms (+174.58% 🔺) 1.5 s
thirdweb (cjs) 353.02 KB (0%) 7.1 s (0%) 679 ms (+13.43% 🔺) 7.8 s
thirdweb (minimal + tree-shaking) 5.7 KB (0%) 114 ms (0%) 80 ms (+1142.03% 🔺) 194 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 34 ms (+1424.26% 🔺) 45 ms
thirdweb/react (minimal + tree-shaking) 19.3 KB (0%) 386 ms (0%) 120 ms (+1014.55% 🔺) 506 ms

@MananTank MananTank force-pushed the 08-03-playground_improve_sidebar_search_params_suspense_fallback branch from 9bfdb62 to b73f0ef Compare August 2, 2025 19:35
@vercel vercel bot temporarily deployed to Preview – nebula August 2, 2025 19:35 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui August 2, 2025 19:35 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 August 2, 2025 19:35 Inactive
@MananTank MananTank force-pushed the 08-03-playground_improve_sidebar_search_params_suspense_fallback branch from b73f0ef to 2d346b0 Compare August 2, 2025 19:37
@vercel vercel bot temporarily deployed to Preview – wallet-ui August 2, 2025 19:37 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 August 2, 2025 19:37 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula August 2, 2025 19:37 Inactive
@MananTank MananTank force-pushed the 08-03-playground_improve_sidebar_search_params_suspense_fallback branch from 2d346b0 to 27f90e9 Compare August 2, 2025 19:58
@vercel vercel bot temporarily deployed to Preview – nebula August 2, 2025 19:58 Inactive
@graphite-app
Copy link
Contributor

graphite-app bot commented Aug 2, 2025

Merge activity

…nectEmbed width on mobile (#7784)

<!--

## 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 enhancing layout responsiveness and improving the rendering of sidebar components by integrating full path management, along with some styling adjustments.

### Detailed summary
- Added `className="!max-w-full"` to various components for responsive design.
- Wrapped `StyledConnectEmbed` in a div with overflow and padding.
- Changed heading and paragraph styles in `APIHeader`.
- Introduced `FullPathSuspense` for managing full path rendering.
- Modified `NavLink` to accept `fullPath` prop.
- Updated sidebar components to use `fullPath` for link matching.
- Removed unnecessary `Suspense` wrappers from sidebar rendering functions.

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

* **New Features**
  * Introduced a component that enables rendering content based on the full current URL path, including query parameters.

* **Refactor**
  * Updated sidebar and navigation components to receive the current path as a prop, simplifying active link determination and layout logic.
  * Consolidated suspense handling for sidebar components to a single top-level boundary.

* **Style**
  * Improved visual layout and spacing for embedded components and page headers.
  * Enhanced responsiveness and maximum width handling for embedded connect components.

* **Documentation**
  * Updated type names and component signatures for improved clarity.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@graphite-app graphite-app bot force-pushed the 08-03-playground_improve_sidebar_search_params_suspense_fallback branch from 27f90e9 to 57862d0 Compare August 2, 2025 20:16
@vercel vercel bot temporarily deployed to Preview – nebula August 2, 2025 20:16 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www August 2, 2025 20:16 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 August 2, 2025 20:16 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui August 2, 2025 20:16 Inactive
@graphite-app graphite-app bot merged commit 57862d0 into main Aug 2, 2025
24 checks passed
@graphite-app graphite-app bot deleted the 08-03-playground_improve_sidebar_search_params_suspense_fallback branch August 2, 2025 20:19
@vercel vercel bot temporarily deployed to Production – docs-v2 August 2, 2025 20:19 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui August 2, 2025 20:19 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb-www August 2, 2025 20:19 Inactive
@vercel vercel bot temporarily deployed to Production – nebula August 2, 2025 20:19 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Dashboard Involves changes to the Dashboard. Playground Changes involving the Playground codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants