Skip to content

Conversation

@joaquim-verges
Copy link
Member

@joaquim-verges joaquim-verges commented Jun 23, 2025

Fixes TOOL-4859

Summary by CodeRabbit

  • Bug Fixes
    • Resolved alignment issues for wallet rows in the wide connect modal to ensure proper visual layout.
    • Improved spacing and increased the size of the "Show All Wallets" icon for better visibility.
    • Adjusted wallet button layout for consistent row alignment within the modal.

@vercel
Copy link

vercel bot commented Jun 23, 2025

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

Name Status Preview Comments Updated (UTC)
docs-v2 ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 11:07pm
nebula ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 11:07pm
thirdweb_playground ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 11:07pm
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 11:07pm
wallet-ui ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jun 23, 2025 11:07pm

@changeset-bot
Copy link

changeset-bot bot commented Jun 23, 2025

🦋 Changeset detected

Latest commit: c18183c

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

This PR includes changesets to release 3 packages
Name Type
thirdweb Patch
@thirdweb-dev/nebula Patch
@thirdweb-dev/wagmi-adapter 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 Jun 23, 2025

Walkthrough

This change updates the styling of wallet-related components in the Connect UI to address alignment issues. Adjustments include modifying flex direction, removing certain CSS resets, increasing icon sizes, and adding spacing between icon elements to ensure proper visual alignment in the modal interface.

Changes

Files/Groups Change Summary
.changeset/slow-sites-call.md Added a changeset describing the patch for wallet row alignment in the wide connect modal.
packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx Modified WalletButtonEl styles: removed all: unset, position: relative; set flexDirection: row.
packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx Updated ShowAllWalletsIcon styles: increased icon size, added grid gap for spacing.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant ConnectModal
    participant WalletEntryButton
    participant WalletSelector

    User->>ConnectModal: Opens Connect Wallet modal
    ConnectModal->>WalletEntryButton: Renders wallet row with updated flex direction
    ConnectModal->>WalletSelector: Renders ShowAllWalletsIcon with increased size and spacing
    WalletEntryButton-->>ConnectModal: Wallet row visually aligned
    WalletSelector-->>ConnectModal: Icon properly spaced and sized
    ConnectModal-->>User: Displays visually aligned wallet selection UI
Loading

Assessment against linked issues

Objective Addressed Explanation
Fix alignment issues in Connect UI (TOOL-4859)

Suggested labels

Dashboard

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.
✨ Finishing Touches
  • 📝 Generate Docstrings

🪧 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 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 packages SDK Involves changes to the thirdweb SDK labels Jun 23, 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.

@linear
Copy link

linear bot commented Jun 23, 2025

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)
.changeset/slow-sites-call.md (1)

5-5: Fix typo in changeset description.

There's a spelling error in the description.

-Fix wallet row alignement in wide connect modal
+Fix wallet row alignment in wide connect modal
📜 Review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 66270f7 and c18183c.

📒 Files selected for processing (3)
  • .changeset/slow-sites-call.md (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx (1 hunks)
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
`**/*.@(ts|tsx)`: Accept a typed 'props' object and export a named function (e.g., export function MyComponent()). Combine class names via 'cn', expose 'className' prop if useful. ...

**/*.@(ts|tsx): Accept a typed 'props' object and export a named function (e.g., export function MyComponent()).
Combine class names via 'cn', expose 'className' prop if useful.
Reuse core UI primitives; avoid re-implementing buttons, cards, modals.
Local state or effects live inside; data fetching happens in hooks.
Merge class names with 'cn' from '@/lib/utils' to keep conditional logic readable.
Stick to design-tokens: background ('bg-card'), borders ('border-border'), muted text ('text-muted-foreground') etc.
Use the 'container' class with a 'max-w-7xl' cap for page width consistency.
Spacing utilities ('px-', 'py-', 'gap-*') are preferred over custom margins.
Responsive helpers follow mobile-first ('max-sm', 'md', 'lg', 'xl').
Never hard-code colors – always go through Tailwind variables.
Tailwind CSS is the styling system – avoid inline styles or CSS modules.
Prefix files with 'import "server-only";' so they never end up in the client bundle (for server-only code).

  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletEntryButton.tsx
  • packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx
⏰ Context from checks skipped due to timeout of 90000ms (8)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Unit Tests
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: Size
  • GitHub Check: Build Packages
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
🔇 Additional comments (2)
packages/thirdweb/src/react/web/ui/ConnectWallet/WalletSelector.tsx (1)

713-718: LGTM: Well-structured styling improvements for ShowAllWalletsIcon.

The changes properly use design tokens (spacing["4xs"] and iconSize.xl) and improve the visual presentation by adding appropriate spacing between grid dots and increasing the overall icon size for better consistency.

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

111-111: LGTM: Good defensive styling practice.

Explicitly setting flexDirection: "row" ensures consistent layout behavior and prevents potential alignment issues that could arise from CSS defaults or inheritance.

@github-actions
Copy link
Contributor

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 62.56 KB (0%) 1.3 s (0%) 367 ms (+42.65% 🔺) 1.7 s
thirdweb (cjs) 350.74 KB (0%) 7.1 s (0%) 1.9 s (+4.98% 🔺) 8.9 s
thirdweb (minimal + tree-shaking) 5.72 KB (0%) 115 ms (0%) 97 ms (+474% 🔺) 212 ms
thirdweb/chains (tree-shaking) 530 B (0%) 11 ms (0%) 86 ms (+1004.89% 🔺) 97 ms
thirdweb/react (minimal + tree-shaking) 19.61 KB (0%) 393 ms (0%) 146 ms (+291.03% 🔺) 538 ms

@codecov
Copy link

codecov bot commented Jun 23, 2025

Codecov Report

Attention: Patch coverage is 0% with 4 lines in your changes missing coverage. Please review.

Project coverage is 52.08%. Comparing base (66270f7) to head (c18183c).

Files with missing lines Patch % Lines
.../src/react/web/ui/ConnectWallet/WalletSelector.tsx 0.00% 3 Missing ⚠️
...c/react/web/ui/ConnectWallet/WalletEntryButton.tsx 0.00% 1 Missing ⚠️
Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7425   +/-   ##
=======================================
  Coverage   52.08%   52.08%           
=======================================
  Files         947      947           
  Lines       63636    63636           
  Branches     4222     4216    -6     
=======================================
  Hits        33146    33146           
  Misses      30384    30384           
  Partials      106      106           
Flag Coverage Δ
packages 52.08% <0.00%> (ø)
Files with missing lines Coverage Δ
...c/react/web/ui/ConnectWallet/WalletEntryButton.tsx 14.45% <0.00%> (+0.17%) ⬆️
.../src/react/web/ui/ConnectWallet/WalletSelector.tsx 9.68% <0.00%> (-0.02%) ⬇️
🚀 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.

@joaquim-verges joaquim-verges merged commit c26be2d into main Jun 23, 2025
26 of 27 checks passed
@joaquim-verges joaquim-verges deleted the Fix_wallet_row_alignment_in_wide_connect_modal branch June 23, 2025 23:38
@joaquim-verges joaquim-verges mentioned this pull request Jun 23, 2025
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.

3 participants