Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Dec 12, 2025


PR-Codex overview

This PR focuses on enhancing the in-app wallet functionality and appearance within the thirdweb library. It includes updates to wallet icons, the addition of new wallet connection options, and improvements to the UI for better user experience.

Detailed summary

  • Updated in-app wallet icon styles in WalletDotIcon.tsx and EmailIcon.tsx.
  • Changed defaultAuthOptions from a local variable to an exported constant in ConnectWalletSocialOptions.tsx.
  • Added new components for different wallet connection methods in ConnectEmbed.stories.tsx.
  • Implemented InAppWalletIcon component to display authentication options dynamically.
  • Improved WalletEntryButton to handle single authentication methods.
  • Created a new story for InAppWalletIcon showcasing various authentication options.

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

Summary by CodeRabbit

  • New Features

    • In-app wallet icon added to the connect UI, showing available auth methods and replacing the legacy in-app image; single-option logins display the auth method name.
  • UI/UX Improvements

    • Wallet icon color handling improved for consistent rendering; email icon simplified to a stroked outline for clarity.
  • Stories

    • New Storybook stories demonstrating the in‑app wallet icon in wide modal layouts and across themes.

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

@vercel
Copy link

vercel bot commented Dec 12, 2025

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

Project Deployment Review Updated (UTC)
docs-v2 Ready Ready Preview, Comment Dec 12, 2025 9:13pm
nebula Ready Ready Preview, Comment Dec 12, 2025 9:13pm
thirdweb_playground Ready Ready Preview, Comment Dec 12, 2025 9:13pm
thirdweb-www Ready Ready Preview, Comment Dec 12, 2025 9:13pm
wallet-ui Ready Ready Preview, Comment Dec 12, 2025 9:13pm

@linear
Copy link

linear bot commented Dec 12, 2025

@changeset-bot
Copy link

changeset-bot bot commented Dec 12, 2025

🦋 Changeset detected

Latest commit: 151127d

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
thirdweb Patch
@thirdweb-dev/nebula Patch
@thirdweb-dev/wagmi-adapter Patch
wagmi-inapp Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Dec 12, 2025

Walkthrough

Adds a new InAppWalletIcon component and integrates it into the ConnectWallet UI, updates two icon components for color/stroke handling, exports defaultAuthOptions, adds Storybook stories demonstrating wide-modal and theme variants, and includes a patch changeset for the in-app wallet icon update.

Changes

Cohort / File(s) Summary
New component
packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
Adds exported InAppWalletIcon which derives enabled auth methods (with fallback to defaults), prioritizes social icons, and renders either a composite multi-icon block or a centered single icon. Includes internal AuthOptionIcon helper.
Connect wallet integration
packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
Renders InAppWalletIcon for inApp wallets when no iconOverride is provided; computes nameOverride for single-method in-app wallets; sets empty alt when explicit iconOverride is used.
Auth options export
packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx
defaultAuthOptions changed from private to export const defaultAuthOptions (publicly exported).
Icon updates
packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx, packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
EmailIcon simplified to a stroked SVG with updated root attributes and viewBox; WalletDotIcon now forwards color via inline style for theming.
Stories
packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx, packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
Adds new Storybook stories demonstrating InAppWalletIcon variants (light/dark themes, multiple auth option permutations) and wide-modal ConnectEmbed examples for specific in-app auth options.
Changeset
.changeset/sixty-clubs-fix.md
New changeset file indicating a patch release for updating the in-app wallet icon in the wide connect UI.

Estimated code review effort

🎯 3 (Moderate) | ⏱️ ~20 minutes

  • Inspect in-app-wallet-icon.tsx for correct defaulting, ordering, and layout of auth options and positioning math for multi-icon composition.
  • Verify WalletEntryButton.tsx conditional precedence between iconOverride, InAppWalletIcon, and WalletImage, and confirm nameOverride behavior for single-option in-app wallets.
  • Review SVG changes in EmailIcon.tsx for stroke semantics and WalletDotIcon.tsx for color forwarding to ensure theme compatibility and accessibility (alt attributes).
  • Exercise the new Storybook stories to validate visual permutations and wide-modal rendering.

Pre-merge checks and finishing touches

❌ Failed checks (1 warning)
Check name Status Explanation Resolution
Docstring Coverage ⚠️ Warning Docstring coverage is 6.67% which is insufficient. The required threshold is 80.00%. You can run @coderabbitai generate docstrings to improve docstring coverage.
✅ Passed checks (4 passed)
Check name Status Explanation
Title check ✅ Passed The pull request title clearly and specifically describes the main change: updating the in-app wallet icon in the wide connect UI.
Description check ✅ Passed The PR description is mostly complete with PR-Codex summary providing detailed context of changes, though the template sections (Notes for reviewer and How to test) are empty.
Linked Issues check ✅ Passed The PR implements the objective from PRO-144 by introducing InAppWalletIcon component to replace the social login icon and integrating it into WalletEntryButton for the wide connect modal UI.
Out of Scope Changes check ✅ Passed All changes directly support the goal of updating the in-app wallet icon: new InAppWalletIcon component, related icon updates (EmailIcon, WalletDotIcon), and supporting infrastructure (stories, exported constants).
✨ 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 pro-144

📜 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 ea945bb and 151127d.

📒 Files selected for processing (8)
  • .changeset/sixty-clubs-fix.md (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx (4 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx (1 hunks)
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx (2 hunks)
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • .changeset/sixty-clubs-fix.md
🚧 Files skipped from review as they are similar to previous changes (3)
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
🧰 Additional context used
📓 Path-based instructions (6)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

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

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
packages/thirdweb/src/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

packages/thirdweb/src/**/*.{ts,tsx}: Comment only ambiguous logic in SDK code; avoid restating TypeScript in prose
Load heavy dependencies inside async paths to keep initial bundle lean (e.g. const { jsPDF } = await import("jspdf");)

Lazy-load heavy dependencies inside async paths to keep the initial bundle lean (e.g., const { jsPDF } = await import('jspdf');)

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.{js,jsx,ts,tsx,json}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.stories.tsx

📄 CodeRabbit inference engine (CLAUDE.md)

Add Storybook stories (*.stories.tsx) alongside new UI components for documentation

Files:

  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.stories.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

For new UI components, add Storybook stories (*.stories.tsx) alongside the code

Files:

  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
🧬 Code graph analysis (1)
packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx (3)
packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx (1)
  • defaultAuthOptions (64-71)
packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (1)
  • InAppWalletIcon (19-156)
packages/thirdweb/src/stories/utils.tsx (1)
  • storyClient (14-16)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: Build Packages
  • GitHub Check: Size
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Lint Packages
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (3)
packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx (1)

14-14: LGTM!

The color forwarding via inline style is correctly implemented and aligns with the icon theming improvements in this PR.

packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx (1)

6-20: LGTM!

The refactor to a stroked envelope representation is well-implemented. The new SVG structure with explicit stroke attributes and color forwarding aligns with the PR's icon update objectives.

packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (1)

23-35: LGTM!

The use of .slice() to clone the array before sorting correctly prevents mutation of the shared defaultAuthOptions or wallet config options. The sorting logic appropriately prioritizes social icons.

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.

@github-actions github-actions bot added packages SDK Involves changes to the thirdweb SDK labels Dec 12, 2025
Copy link
Member Author


How to use the Graphite Merge Queue

Add either label to this PR to merge it via the merge queue:

  • merge-queue - adds this PR to the back of the merge queue
  • hotfix - for urgent hot fixes, skip the queue and merge this PR next

You must have a Graphite account in order to use the merge queue. Sign up using this link.

An organization admin has enabled the Graphite Merge Queue in this repository.

Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue.

This stack of pull requests is managed by Graphite. Learn more about stacking.

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

🧹 Nitpick comments (4)
packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx (1)

64-71: Make defaultAuthOptions immutable (or at least protect against mutation).
Since this is now exported and reused, prefer a readonly export to prevent accidental mutation across imports (especially since the new icon code sorts options).

-export const defaultAuthOptions: AuthOption[] = [
+export const defaultAuthOptions = [
   "email",
   "phone",
   "google",
   "apple",
   "facebook",
   "passkey",
-];
+] as const satisfies readonly AuthOption[];
packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx (1)

12-23: Theme provider setup is redundant (nested providers).
Consider removing the meta decorator and relying on ThemeSetup so Light/Dark stories are unambiguous.

Also applies to: 127-141

packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (2)

155-192: Handle unsupported AuthOptions (avoid empty quadrants / blank icon).
If config includes options like "wallet"/"backend" (or any future additions), this returns null and the composite can look broken; consider filtering enabledAuthMethods to supported options or providing a fallback icon.


19-22: Add explicit return types per TS/TSX guidelines.
E.g. : JSX.Element | null for InAppWalletIcon and AuthOptionIcon.

Also applies to: 155-159

📜 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 759f41b and ed5ecdc.

📒 Files selected for processing (8)
  • .changeset/sixty-clubs-fix.md (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx (2 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx (1 hunks)
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx (2 hunks)
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (6)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

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

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
packages/thirdweb/src/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

packages/thirdweb/src/**/*.{ts,tsx}: Comment only ambiguous logic in SDK code; avoid restating TypeScript in prose
Load heavy dependencies inside async paths to keep initial bundle lean (e.g. const { jsPDF } = await import("jspdf");)

Lazy-load heavy dependencies inside async paths to keep the initial bundle lean (e.g., const { jsPDF } = await import('jspdf');)

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.{js,jsx,ts,tsx,json}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.stories.tsx

📄 CodeRabbit inference engine (CLAUDE.md)

Add Storybook stories (*.stories.tsx) alongside new UI components for documentation

Files:

  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.stories.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

For new UI components, add Storybook stories (*.stories.tsx) alongside the code

Files:

  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
🧬 Code graph analysis (4)
packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx (2)
apps/dashboard/src/@/api/team/ecosystems.ts (1)
  • AuthOption (6-25)
packages/thirdweb/src/wallets/types.ts (1)
  • AuthOption (50-50)
packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx (1)
packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (1)
  • InAppWalletIcon (19-153)
packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (4)
packages/thirdweb/src/exports/thirdweb.ts (1)
  • ThirdwebClient (25-25)
packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx (1)
  • defaultAuthOptions (64-71)
packages/thirdweb/src/react/core/design-system/index.ts (3)
  • iconSize (166-176)
  • spacing (142-154)
  • radius (156-164)
packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx (1)
  • EmailIcon (3-23)
packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx (3)
packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx (1)
  • defaultAuthOptions (64-71)
packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (1)
  • InAppWalletIcon (19-153)
packages/thirdweb/src/stories/utils.tsx (1)
  • storyClient (14-16)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: Size
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Unit Tests
  • GitHub Check: Lint Packages
  • GitHub Check: Build Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (5)
.changeset/sixty-clubs-fix.md (1)

1-5: Changeset looks correct for a patch UI/icon update.

packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx (1)

6-21: Color binding via currentColor is applied correctly.

packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx (1)

3-21: SVG refactor is consistent with currentColor theming and looks safe.

packages/thirdweb/src/stories/ConnectEmbed.stories.tsx (1)

4-4: Story addition is a good integration check for the wide modal in-app icon behavior.

Also applies to: 114-130

packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx (1)

20-21: Conditional swap to InAppWalletIcon for in-app wallet is clean and localized.

Also applies to: 66-81

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

📜 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 ed5ecdc and f06baec.

📒 Files selected for processing (8)
  • .changeset/sixty-clubs-fix.md (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx (2 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx (1 hunks)
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx (2 hunks)
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx (1 hunks)
✅ Files skipped from review due to trivial changes (1)
  • .changeset/sixty-clubs-fix.md
🚧 Files skipped from review as they are similar to previous changes (4)
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
🧰 Additional context used
📓 Path-based instructions (6)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

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

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
packages/thirdweb/src/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

packages/thirdweb/src/**/*.{ts,tsx}: Comment only ambiguous logic in SDK code; avoid restating TypeScript in prose
Load heavy dependencies inside async paths to keep initial bundle lean (e.g. const { jsPDF } = await import("jspdf");)

Lazy-load heavy dependencies inside async paths to keep the initial bundle lean (e.g., const { jsPDF } = await import('jspdf');)

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.{js,jsx,ts,tsx,json}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.stories.tsx

📄 CodeRabbit inference engine (CLAUDE.md)

Add Storybook stories (*.stories.tsx) alongside new UI components for documentation

Files:

  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
**/*.stories.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

For new UI components, add Storybook stories (*.stories.tsx) alongside the code

Files:

  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
🧬 Code graph analysis (1)
packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx (1)
packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (1)
  • InAppWalletIcon (19-153)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Build Packages
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Lint Packages
  • GitHub Check: Size
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx (1)

74-78: LGTM! Clean integration of InAppWalletIcon.

The conditional rendering logic is correct, and the type assertion is safely guarded by the wallet.id check.

packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx (1)

26-125: Excellent story coverage for InAppWalletIcon variants.

The story comprehensively demonstrates all authentication method combinations across single, dual, triple, and quad+ configurations in both light and dark themes. This provides strong visual regression testing coverage.

@codecov
Copy link

codecov bot commented Dec 12, 2025

Codecov Report

❌ Patch coverage is 12.83422% with 163 lines in your changes missing coverage. Please review.
✅ Project coverage is 54.49%. Comparing base (759f41b) to head (151127d).
⚠️ Report is 1 commits behind head on main.

Files with missing lines Patch % Lines
.../react/web/ui/ConnectWallet/in-app-wallet-icon.tsx 6.53% 143 Missing ⚠️
...c/react/web/ui/ConnectWallet/WalletEntryButton.tsx 5.00% 19 Missing ⚠️
...react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #8556      +/-   ##
==========================================
- Coverage   54.63%   54.49%   -0.14%     
==========================================
  Files         921      922       +1     
  Lines       61193    61361     +168     
  Branches     4152     4150       -2     
==========================================
+ Hits        33434    33441       +7     
- Misses      27657    27818     +161     
  Partials      102      102              
Flag Coverage Δ
packages 54.49% <12.83%> (-0.14%) ⬇️
Files with missing lines Coverage Δ
...src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx 100.00% <100.00%> (ø)
.../web/wallets/shared/ConnectWalletSocialOptions.tsx 35.63% <100.00%> (ø)
...react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx 6.25% <0.00%> (-0.42%) ⬇️
...c/react/web/ui/ConnectWallet/WalletEntryButton.tsx 12.62% <5.00%> (-1.50%) ⬇️
.../react/web/ui/ConnectWallet/in-app-wallet-icon.tsx 6.53% <6.53%> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@github-actions
Copy link
Contributor

github-actions bot commented Dec 12, 2025

size-limit report 📦

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

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

♻️ Duplicate comments (2)
packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (2)

19-22: Add explicit return types for both components (per TS guidelines).

-export function InAppWalletIcon(props: {
+export function InAppWalletIcon(props: {
   client: ThirdwebClient;
   wallet: Wallet<"inApp">;
-}) {
+}): JSX.Element | null {
   // ...
 }
 
-function AuthOptionIcon(props: {
+function AuthOptionIcon(props: {
   authOption: AuthOption;
   client: ThirdwebClient;
   size: string;
-}) {
+}): JSX.Element | null {
   // ...
 }

Also applies to: 158-162


164-173: Add alt="" for decorative social auth icons (a11y).

       <Img
         src={icon}
         width={props.size}
         height={props.size}
         client={props.client}
+        alt=""
       />
🧹 Nitpick comments (2)
packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx (1)

64-71: Exported defaultAuthOptions should be readonly (or frozen) to prevent accidental mutation.
Since it’s now a public export, consider making it immutable to avoid downstream .push() / .sort() surprises.

-export const defaultAuthOptions: AuthOption[] = [
+export const defaultAuthOptions = Object.freeze([
   "email",
   "phone",
   "google",
   "apple",
   "facebook",
   "passkey",
-];
+]) satisfies readonly AuthOption[];
packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx (1)

140-142: Add explicit return type for uppercaseFirstLetter (and consider a simpler signature).

-function uppercaseFirstLetter(props: { text: string }) {
+function uppercaseFirstLetter(props: { text: string }): string {
   return props.text.charAt(0).toUpperCase() + props.text.slice(1);
 }
📜 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 f06baec and ea945bb.

📒 Files selected for processing (8)
  • .changeset/sixty-clubs-fix.md (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx (4 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (1 hunks)
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx (1 hunks)
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx (2 hunks)
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx (1 hunks)
🚧 Files skipped from review as they are similar to previous changes (2)
  • .changeset/sixty-clubs-fix.md
  • packages/thirdweb/src/stories/in-app-wallet-icon.stories.tsx
🧰 Additional context used
📓 Path-based instructions (6)
**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

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

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
packages/thirdweb/src/**/*.{ts,tsx}

📄 CodeRabbit inference engine (CLAUDE.md)

packages/thirdweb/src/**/*.{ts,tsx}: Comment only ambiguous logic in SDK code; avoid restating TypeScript in prose
Load heavy dependencies inside async paths to keep initial bundle lean (e.g. const { jsPDF } = await import("jspdf");)

Lazy-load heavy dependencies inside async paths to keep the initial bundle lean (e.g., const { jsPDF } = await import('jspdf');)

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
**/*.{js,jsx,ts,tsx,json}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
**/*.{ts,tsx,js,jsx}

📄 CodeRabbit inference engine (AGENTS.md)

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

Files:

  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx
  • packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx
  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx
**/*.stories.tsx

📄 CodeRabbit inference engine (CLAUDE.md)

Add Storybook stories (*.stories.tsx) alongside new UI components for documentation

Files:

  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
**/*.stories.{ts,tsx}

📄 CodeRabbit inference engine (AGENTS.md)

For new UI components, add Storybook stories (*.stories.tsx) alongside the code

Files:

  • packages/thirdweb/src/stories/ConnectEmbed.stories.tsx
🧬 Code graph analysis (2)
packages/thirdweb/src/react/web/wallets/shared/ConnectWalletSocialOptions.tsx (2)
apps/dashboard/src/@/api/team/ecosystems.ts (1)
  • AuthOption (6-25)
packages/thirdweb/src/wallets/types.ts (1)
  • AuthOption (50-50)
packages/thirdweb/src/stories/ConnectEmbed.stories.tsx (2)
packages/thirdweb/src/react/web/ui/ConnectWallet/Modal/ConnectEmbed.tsx (1)
  • ConnectEmbed (199-326)
packages/thirdweb/src/stories/utils.tsx (1)
  • storyClient (14-16)
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (8)
  • GitHub Check: Build Packages
  • GitHub Check: Lint Packages
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Size
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (5)
packages/thirdweb/src/react/web/ui/ConnectWallet/icons/EmailIcon.tsx (1)

5-21: Nice improvement: switch to currentColor + stroke-based SVG is consistent and easier to theme.
No concerns with the updated SVG structure; role="presentation" + style-driven color keeps it flexible.

packages/thirdweb/src/react/web/ui/ConnectWallet/icons/WalletDotIcon.tsx (1)

8-16: Color forwarding via style={{ color: props.color }} is the right move (pairs with currentColor).

packages/thirdweb/src/react/web/ui/ConnectWallet/in-app-wallet-icon.tsx (1)

19-36: Good: .slice() before .sort() avoids mutating shared auth options.
This resolves the “mutating exported/default arrays” footgun.

packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx (1)

77-92: Nice: fall back to InAppWalletIcon and keep alt="" for custom icon overrides.

packages/thirdweb/src/stories/ConnectEmbed.stories.tsx (1)

4-6: Stories look good for exercising wide modal + in-app auth permutations (google/github/mixed).

Also applies to: 114-167

@graphite-app
Copy link
Contributor

graphite-app bot commented Dec 12, 2025

Merge activity

<!--

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

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

## Notes for the reviewer

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

## How to test

Unit tests, playground, etc.

-->

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the in-app wallet feature by updating icons, adding new components for different authentication methods, and improving the UI for wallet connection options.

### Detailed summary
- Updated the in-app wallet icon in the wide connect UI.
- Changed `defaultAuthOptions` from a constant to an exported variable.
- Modified `EmailIcon` component for better styling and structure.
- Added new functions for various modal configurations (`ConfiguredInAppWalletWideModal`, `GoogleLoginWideModal`, `GithubLoginWideModal`).
- Introduced `InAppWalletIcon` component to handle multiple authentication methods visually.
- Created comprehensive storybook examples for `InAppWalletIcon` with various authentication options.

> ✨ 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**
  * Added an in-app wallet icon that displays available authentication methods and adapts layout for single vs. multiple options.

* **UI/UX Improvements**
  * Updated wallet icon visuals and dynamic color handling for more consistent rendering in the connect modal.
  * Simplified email icon visuals for clearer strokes.

* **Stories**
  * Added Storybook examples showcasing the in-app wallet icon across themes and auth-option permutations.

<sub>✏️ Tip: You can customize this high-level summary in your review settings.</sub>
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

packages SDK Involves changes to the thirdweb SDK

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants