Skip to content

Conversation

MananTank
Copy link
Member

@MananTank MananTank commented Oct 16, 2025


PR-Codex overview

This PR focuses on centralizing the appMetadata configuration by exporting it from connect.ts, allowing various components to use a consistent metadata structure for wallet connections.

Detailed summary

  • Added appMetadata export in connect.ts.
  • Replaced inline appMetadata objects with the imported appMetadata in multiple components:
    • NebulaConnectButton.tsx
    • UniversalBridgeEmbed.tsx
    • CustomConnectWallet
    • PublicPageConnectButton
    • BuyAndSwapEmbed

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

Summary by CodeRabbit

  • New Features
    • Wallet selection is now customizable for Buy, Swap, Connect and Bridge flows.
    • App branding metadata centralized for consistent presentation across all wallet connection points.
    • Bridge includes preset wallet options to streamline onboarding and autoconnect behavior.
    • Connect buttons/components now accept optional wallet lists to enable configured autoconnect and wallet choices.

Copy link

linear bot commented Oct 16, 2025

Copy link

vercel bot commented Oct 16, 2025

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

Project Deployment Preview Comments Updated (UTC)
thirdweb-www Ready Ready Preview Comment Oct 17, 2025 3:54am
4 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
docs-v2 Skipped Skipped Oct 17, 2025 3:54am
nebula Skipped Skipped Oct 17, 2025 3:54am
thirdweb_playground Skipped Skipped Oct 17, 2025 3:54am
wallet-ui Skipped Skipped Oct 17, 2025 3:54am

Copy link

changeset-bot bot commented Oct 16, 2025

⚠️ No Changeset found

Latest commit: 3db3982

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 vercel bot temporarily deployed to Preview – wallet-ui October 16, 2025 20:30 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 16, 2025 20:30 Inactive
@MananTank MananTank marked this pull request as ready for review October 16, 2025 20:30
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 16, 2025 20:30 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula October 16, 2025 20:30 Inactive
@MananTank MananTank requested review from a team as code owners October 16, 2025 20:30
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Oct 16, 2025
Copy link
Member Author

MananTank commented Oct 16, 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.

Copy link
Contributor

coderabbitai bot commented Oct 16, 2025

Walkthrough

Centralizes app metadata into a new appMetadata constant, adds optional wallets?: Wallet[] props to connect-related components, defines and exports bridgeWallets (built with createWallet), and passes wallets and appMetadata through connect options to Buy/Swap widgets and ConnectButton usages.

Changes

Cohort / File(s) Summary
Centralized app metadata constant
apps/dashboard/src/@/constants/connect.ts
Adds exported appMetadata constant with logoUrl, name, and url.
App metadata usage consolidation
apps/dashboard/src/@/components/connect-wallet/index.tsx,
apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/ai/components/NebulaConnectButton.tsx
Replace inline app metadata objects with import of centralized appMetadata.
Component props extended to accept wallets
apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx,
apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.tsx
Add wallets?: Wallet[] to props, import Wallet type, and pass wallets and appMetadata into connect options for BuyWidget/SwapWidget/ConnectButton.
Bridge wallet list and propagation
apps/dashboard/src/app/bridge/components/client/UniversalBridgeEmbed.tsx,
apps/dashboard/src/app/bridge/components/header.tsx
Add and export bridgeWallets (created via createWallet, includes Coinbase configured with appMetadata) and pass bridgeWallets into BuyAndSwapEmbed and PublicPageConnectButton in header.

Sequence Diagram

sequenceDiagram
    participant Header as Bridge Header
    participant PublicBtn as PublicPageConnectButton
    participant BEmbed as BuyAndSwapEmbed
    participant CButton as ConnectButton

    Header->>PublicBtn: render(props: wallets={bridgeWallets}, connectButtonClassName)
    PublicBtn->>CButton: render with wallets={props.wallets}<br/>appMetadata={appMetadata}
    PublicBtn->>BEmbed: render with wallets={props.wallets}
    BEmbed->>CButton: instantiate BuyWidget/SwapWidget with connectOptions: { wallets, appMetadata }

    rect #E8F6FF
      note right of BEmbed: bridgeWallets created via createWallet\n(include Coinbase with appMetadata)
    end
Loading

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~25 minutes

Pre-merge checks and finishing touches

❌ Failed checks (3 warnings)
Check name Status Explanation Resolution
Linked Issues Check ⚠️ Warning The PR partially addresses the linked issue MNY-270 objectives. The code changes successfully implement the primary objective by creating a bridgeWallets array with five wallet options and passing it through BuyAndSwapEmbed and PublicPageConnectButton, which appears to make showing the full wallet list the primary action for the bridge flow. However, the raw_summary provided does not show implementation of the secondary objectives: removing the text "Bridge and Swap tokens across any chain, instantly" and removing the text "Accept Payments in Any Token Right Inside Your App." These text removals are entirely absent from the file-level summaries, raising concerns about whether all requirements have been addressed.
Description Check ⚠️ Warning The PR description does not follow the required template structure. The provided template specifies sections for issue tag, "Notes for the reviewer," and "How to test," but the actual description omits these critical sections. Instead, only PR-Codex generated summary content is provided in the description, which explains the centralization of appMetadata and refactoring across components but lacks the required manual guidance from the author. This leaves reviewers without explicit testing instructions or important notes about potential impacts.
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 (2 passed)
Check name Status Explanation
Title Check ✅ Passed The title "[MNY-270] Remove in-app wallet options from bridge page connect modal" is specific and clear, accurately describing a significant change in this PR. The code changes demonstrate that bridgeWallets are created and passed through multiple components (UniversalBridgeEmbed, PublicPageConnectButton, BuyAndSwapEmbed) specifically for the bridge flow, which aligns with the title's focus on removing/replacing in-app wallet options on the bridge page. While the PR also includes broader refactoring around centralizing appMetadata across the dashboard, the title captures a real and important aspect of the changeset.
Out of Scope Changes Check ✅ Passed All code changes in this PR are directly related to the objectives outlined in linked issue MNY-270. The modifications centralize appMetadata configuration across multiple dashboard components (connect-wallet, NebulaConnectButton, PublicPageConnectButton, etc.), create a bridgeWallets array specifically for the bridge page flow, and update component signatures to accept wallet options. These changes are all in-scope efforts to make the full wallet list the primary connection action for the bridge flow, as required by the issue. No unrelated refactoring, dependency updates, or changes to unrelated features have been introduced.
✨ 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-270

📜 Recent 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 37a7820 and 3db3982.

📒 Files selected for processing (7)
  • apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx (5 hunks)
  • apps/dashboard/src/@/components/connect-wallet/index.tsx (3 hunks)
  • apps/dashboard/src/@/constants/connect.ts (1 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.tsx (3 hunks)
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/ai/components/NebulaConnectButton.tsx (2 hunks)
  • apps/dashboard/src/app/bridge/components/client/UniversalBridgeEmbed.tsx (2 hunks)
  • apps/dashboard/src/app/bridge/components/header.tsx (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (3)
  • apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx
  • apps/dashboard/src/app/bridge/components/client/UniversalBridgeEmbed.tsx
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/ai/components/NebulaConnectButton.tsx
🧰 Additional context used
📓 Path-based instructions (5)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

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

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

Files:

  • apps/dashboard/src/@/constants/connect.ts
  • apps/dashboard/src/app/bridge/components/header.tsx
  • apps/dashboard/src/@/components/connect-wallet/index.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.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/dashboard/src/@/constants/connect.ts
  • apps/dashboard/src/app/bridge/components/header.tsx
  • apps/dashboard/src/@/components/connect-wallet/index.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.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/dashboard/src/@/constants/connect.ts
  • apps/dashboard/src/app/bridge/components/header.tsx
  • apps/dashboard/src/@/components/connect-wallet/index.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.tsx
apps/{dashboard,playground}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

apps/{dashboard,playground}/**/*.{ts,tsx}: Import UI primitives from @/components/ui/_ (e.g., Button, Input, Tabs, Card)
Use NavLink for internal navigation to get active state handling
Use Tailwind CSS for styling; no inline styles
Merge class names with cn() from @/lib/utils for conditional classes
Stick to design tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components must start with import "server-only"; use next/headers, server‑only env, heavy data fetching, and redirect() where appropriate
Client Components must start with 'use client'; handle interactivity with hooks and browser APIs
Server-side data fetching: call getAuthToken() from cookies, send Authorization: Bearer <token> header, and return typed results (avoid any)
Client-side data fetching: wrap calls in React Query with descriptive, stable queryKeys and set sensible staleTime/cacheTime (≥ 60s default); keep tokens secret via internal routes or server actions
Do not import posthog-js in server components (client-side only)

Files:

  • apps/dashboard/src/@/constants/connect.ts
  • apps/dashboard/src/app/bridge/components/header.tsx
  • apps/dashboard/src/@/components/connect-wallet/index.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.tsx
apps/{dashboard,playground}/**/*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

Expose a className prop on the root element of every component

Files:

  • apps/dashboard/src/app/bridge/components/header.tsx
  • apps/dashboard/src/@/components/connect-wallet/index.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.tsx
🧬 Code graph analysis (3)
apps/dashboard/src/app/bridge/components/header.tsx (2)
apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.tsx (1)
  • PublicPageConnectButton (13-43)
apps/dashboard/src/app/bridge/components/client/UniversalBridgeEmbed.tsx (1)
  • bridgeWallets (9-17)
apps/dashboard/src/@/components/connect-wallet/index.tsx (1)
apps/dashboard/src/@/constants/connect.ts (1)
  • appMetadata (1-5)
apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.tsx (1)
apps/dashboard/src/@/constants/connect.ts (1)
  • appMetadata (1-5)
⏰ 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: Unit Tests
  • GitHub Check: Lint Packages
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Build Packages
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (9)
apps/dashboard/src/@/constants/connect.ts (1)

1-5: LGTM! Clean centralization of app metadata.

The constant provides a single source of truth for app metadata, reducing duplication and simplifying updates across the codebase.

apps/dashboard/src/@/components/connect-wallet/index.tsx (3)

20-20: LGTM! Import of centralized app metadata.


142-142: LGTM! Consistent use of centralized app metadata.

Replacing inline metadata objects with the imported constant improves maintainability.


280-280: LGTM! Consistent use of centralized app metadata in modal.

apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.tsx (3)

5-6: LGTM! Proper imports for wallet configuration and centralized metadata.


15-15: LGTM! Clean addition of optional wallets prop.

The component now supports custom wallet lists, enabling the bridge flow to provide a curated set of wallets while maintaining backward compatibility.

Also applies to: 40-40


23-23: LGTM! Consistent use of centralized app metadata.

apps/dashboard/src/app/bridge/components/header.tsx (2)

6-6: LGTM! Import of bridge-specific wallets.


35-38: Based on my analysis of the codebase, I can now verify the concern in the review comment:

Coinbase wallet is the only wallet requiring appMetadata in createWallet() — this is by design, not an oversight.

Evidence:

  • The dashboard's UniversalBridgeEmbed.tsx matches the official SDK pattern in packages/thirdweb/src/wallets/defaultWallets.ts, where only Coinbase receives appMetadata
  • The Coinbase wallet implementation explicitly defines appMetadata as a configuration option; other wallets don't have this parameter
  • This pattern is consistent across the codebase (web, native, and dashboard implementations)

The integration in header.tsx is correct—no changes needed.

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 changed the base branch from 10-17-dashboard_remove_playwright_tests_checkly to graphite-base/8270 October 16, 2025 20:32
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 16, 2025 20:32 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 16, 2025 20:32 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula October 16, 2025 20:32 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 16, 2025 20:32 Inactive
@MananTank MananTank changed the base branch from graphite-base/8270 to main October 16, 2025 20:32
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 16, 2025 20:47 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula October 16, 2025 20:47 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 16, 2025 20:47 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 16, 2025 20:47 Inactive
Copy link

codecov bot commented Oct 16, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 54.90%. Comparing base (bf90104) to head (3db3982).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8270   +/-   ##
=======================================
  Coverage   54.90%   54.90%           
=======================================
  Files         919      919           
  Lines       60613    60613           
  Branches     4115     4115           
=======================================
  Hits        33278    33278           
  Misses      27234    27234           
  Partials      101      101           
Flag Coverage Δ
packages 54.90% <ø> (ø)
🚀 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/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx (1)

95-99: Consider extracting the connectOptions object.

The connectOptions structure is duplicated between BuyWidget and SwapWidget. While acceptable for just 2 occurrences in the same component, extracting it to a shared constant would improve maintainability if this pattern expands.

Apply this diff to extract the common configuration:

+  const connectOptions = useMemo(
+    () => ({
+      autoConnect: false,
+      wallets: props.wallets,
+      appMetadata: appMetadata,
+    }),
+    [props.wallets],
+  );
+
   return (
     <div className="bg-card rounded-2xl border overflow-hidden flex flex-col relative z-10 shadow-xl min-w-0">
       <div className="flex gap-2.5 p-4 border-b border-dashed">

Then use it in both widgets:

       <BuyWidget
         amount={props.buyAmount || "1"}
         chain={props.chain}
         className="!rounded-2xl !border-none"
         title=""
         client={client}
-        connectOptions={{
-          autoConnect: false,
-          wallets: props.wallets,
-          appMetadata: appMetadata,
-        }}
+        connectOptions={connectOptions}
       <SwapWidget
         client={client}
         theme={themeObj}
         className="!rounded-2xl !border-none"
-        connectOptions={{
-          autoConnect: false,
-          wallets: props.wallets,
-          appMetadata: appMetadata,
-        }}
+        connectOptions={connectOptions}

Also applies to: 192-196

📜 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 4b6f6b3 and 37a7820.

📒 Files selected for processing (7)
  • apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx (5 hunks)
  • apps/dashboard/src/@/components/connect-wallet/index.tsx (3 hunks)
  • apps/dashboard/src/@/constants/connect.ts (1 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.tsx (3 hunks)
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/ai/components/NebulaConnectButton.tsx (2 hunks)
  • apps/dashboard/src/app/bridge/components/client/UniversalBridgeEmbed.tsx (2 hunks)
  • apps/dashboard/src/app/bridge/components/header.tsx (2 hunks)
🚧 Files skipped from review as they are similar to previous changes (5)
  • apps/dashboard/src/@/constants/connect.ts
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PublicPageConnectButton.tsx
  • apps/dashboard/src/app/bridge/components/header.tsx
  • apps/dashboard/src/app/bridge/components/client/UniversalBridgeEmbed.tsx
  • apps/dashboard/src/app/(app)/team/[team_slug]/[project_slug]/(sidebar)/ai/components/NebulaConnectButton.tsx
🧰 Additional context used
📓 Path-based instructions (5)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

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

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

Files:

  • apps/dashboard/src/@/components/connect-wallet/index.tsx
  • apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.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/dashboard/src/@/components/connect-wallet/index.tsx
  • apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.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/dashboard/src/@/components/connect-wallet/index.tsx
  • apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx
apps/{dashboard,playground}/**/*.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

apps/{dashboard,playground}/**/*.{ts,tsx}: Import UI primitives from @/components/ui/_ (e.g., Button, Input, Tabs, Card)
Use NavLink for internal navigation to get active state handling
Use Tailwind CSS for styling; no inline styles
Merge class names with cn() from @/lib/utils for conditional classes
Stick to design tokens (e.g., bg-card, border-border, text-muted-foreground)
Server Components must start with import "server-only"; use next/headers, server‑only env, heavy data fetching, and redirect() where appropriate
Client Components must start with 'use client'; handle interactivity with hooks and browser APIs
Server-side data fetching: call getAuthToken() from cookies, send Authorization: Bearer <token> header, and return typed results (avoid any)
Client-side data fetching: wrap calls in React Query with descriptive, stable queryKeys and set sensible staleTime/cacheTime (≥ 60s default); keep tokens secret via internal routes or server actions
Do not import posthog-js in server components (client-side only)

Files:

  • apps/dashboard/src/@/components/connect-wallet/index.tsx
  • apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx
apps/{dashboard,playground}/**/*.tsx

📄 CodeRabbit inference engine (AGENTS.md)

Expose a className prop on the root element of every component

Files:

  • apps/dashboard/src/@/components/connect-wallet/index.tsx
  • apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx
🧬 Code graph analysis (2)
apps/dashboard/src/@/components/connect-wallet/index.tsx (1)
apps/dashboard/src/@/constants/connect.ts (1)
  • appMetadata (1-5)
apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx (1)
apps/dashboard/src/@/constants/connect.ts (1)
  • appMetadata (1-5)
⏰ 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: Size
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
apps/dashboard/src/@/components/connect-wallet/index.tsx (1)

20-20: LGTM! Centralized app metadata improves consistency.

The refactor to use a shared appMetadata constant eliminates duplication and ensures consistent branding across all wallet connection flows.

Also applies to: 142-142, 280-280

apps/dashboard/src/@/components/blocks/BuyAndSwapEmbed.tsx (1)

7-7: LGTM! Wallet customization support added correctly.

The addition of the optional wallets prop and centralized appMetadata enables proper wallet list customization for the bridge flow, aligning with the PR objectives.

Also applies to: 29-29, 40-40

Copy link
Contributor

github-actions bot commented Oct 16, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 64.51 KB (0%) 1.3 s (0%) 195 ms (+262.84% 🔺) 1.5 s
thirdweb (cjs) 365.68 KB (0%) 7.4 s (0%) 604 ms (+20.8% 🔺) 8 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 107 ms (+3106.82% 🔺) 222 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 85 ms (+8972.15% 🔺) 95 ms
thirdweb/react (minimal + tree-shaking) 19.13 KB (0%) 383 ms (0%) 90 ms (+3410.5% 🔺) 472 ms

Copy link
Contributor

graphite-app bot commented Oct 17, 2025

Merge activity

…#8270)

<!--

## 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 introduces a centralized `appMetadata` constant for consistent branding across various components and refactors the code to utilize this constant, reducing redundancy and improving maintainability.

### Detailed summary
- Added `appMetadata` constant in `connect.ts`.
- Refactored `NebulaConnectButton` to use `appMetadata`.
- Updated `PageHeader` to include `wallets` prop in `PublicPageConnectButton`.
- Created `bridgeWallets` array in `UniversalBridgeEmbed` using `createWallet` with `appMetadata`.
- Modified multiple components to utilize `appMetadata` instead of hardcoded values.

> ✨ 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**
  * Wallet selection is now customizable for Buy, Swap, and Bridge flows.
  * App branding metadata centralized for consistent presentation across all wallet connection points.
  * Bridge now includes preset wallet options to streamline onboarding and autoconnect behavior.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@vercel vercel bot temporarily deployed to Preview – nebula October 17, 2025 03:46 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 17, 2025 03:46 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 17, 2025 03:46 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 17, 2025 03:46 Inactive
@graphite-app graphite-app bot merged commit 3db3982 into main Oct 17, 2025
24 checks passed
@graphite-app graphite-app bot deleted the mny-270 branch October 17, 2025 03:55
@vercel vercel bot temporarily deployed to Production – wallet-ui October 17, 2025 03:55 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 October 17, 2025 03:55 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground October 17, 2025 03:55 Inactive
@vercel vercel bot temporarily deployed to Production – nebula October 17, 2025 03:55 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.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants