Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Sep 18, 2025


PR-Codex overview

This PR enhances the documentation for the SwapWidget component, introducing a simplified swap interface and showcasing its configuration options for default token selections. It removes the previous complex implementation and emphasizes usability.

Detailed summary

  • Added DocImage component to display swap-dark.png.
  • Updated documentation to introduce the SwapWidget component.
  • Removed the old SwapInterface function and its complexity.
  • Added examples for configuring default token selections in the SwapWidget.
  • Included a new section for a live playground link.
  • Provided tips for gas optimization in the documentation.

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

@vercel
Copy link

vercel bot commented Sep 18, 2025

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

Project Deployment Preview Comments Updated (UTC)
docs-v2 Ready Ready Preview Comment Sep 19, 2025 0:57am
4 Skipped Deployments
Project Deployment Preview Comments Updated (UTC)
nebula Skipped Skipped Sep 19, 2025 0:57am
thirdweb_playground Skipped Skipped Sep 19, 2025 0:57am
thirdweb-www Skipped Skipped Sep 19, 2025 0:57am
wallet-ui Skipped Skipped Sep 19, 2025 0:57am

@vercel vercel bot temporarily deployed to Preview – wallet-ui September 18, 2025 20:49 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 18, 2025 20:49 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www September 18, 2025 20:49 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula September 18, 2025 20:49 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Sep 18, 2025

⚠️ No Changeset found

Latest commit: 1d90437

Merging this PR will not cause a version bump for any packages. If these changes should not result in a new version, you're good to go. If these changes should result in a version bump, you need to add a changeset.

This PR includes no changesets

When changesets are added to this PR, you'll see the packages that this PR includes changesets for and the associated semver types

Click here to learn what changesets are, and how to add one.

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

@coderabbitai
Copy link
Contributor

coderabbitai bot commented Sep 18, 2025

Important

Review skipped

Auto reviews are disabled on base/target branches other than the default branch.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 09-19-portal_add_swapwidget_in_bridge_swap_page

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

@MananTank MananTank marked this pull request as ready for review September 18, 2025 20:49
@MananTank MananTank requested review from a team as code owners September 18, 2025 20:49
@github-actions github-actions bot added the Portal Involves changes to the Portal (docs) codebase. label Sep 18, 2025
Copy link
Member Author

MananTank commented Sep 18, 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.

@codecov
Copy link

codecov bot commented Sep 18, 2025

Codecov Report

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

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #8072   +/-   ##
=======================================
  Coverage   56.34%   56.34%           
=======================================
  Files         906      906           
  Lines       59168    59168           
  Branches     4176     4176           
=======================================
  Hits        33341    33341           
  Misses      25721    25721           
  Partials      106      106           
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.

@github-actions
Copy link
Contributor

github-actions bot commented Sep 18, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 63.96 KB (0%) 1.3 s (0%) 223 ms (+106.26% 🔺) 1.6 s
thirdweb (cjs) 361.44 KB (0%) 7.3 s (0%) 1.2 s (+15.61% 🔺) 8.4 s
thirdweb (minimal + tree-shaking) 5.73 KB (0%) 115 ms (0%) 90 ms (+1301.26% 🔺) 205 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 64 ms (+1980.71% 🔺) 74 ms
thirdweb/react (minimal + tree-shaking) 19.14 KB (0%) 383 ms (0%) 64 ms (+1256.1% 🔺) 447 ms

@MananTank MananTank force-pushed the 09-19-portal_add_swapwidget_in_bridge_swap_page branch from 68f12be to 84e9985 Compare September 18, 2025 23:44
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 18, 2025 23:44 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula September 18, 2025 23:44 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 18, 2025 23:44 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www September 18, 2025 23:44 Inactive
@MananTank MananTank force-pushed the 09-19-portal_add_swapwidget_in_bridge_swap_page branch from 84e9985 to 87f50be Compare September 18, 2025 23:57
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 18, 2025 23:57 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www September 18, 2025 23:57 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 18, 2025 23:57 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula September 18, 2025 23:57 Inactive
@graphite-app graphite-app bot changed the base branch from mny-190 to graphite-base/8072 September 19, 2025 00:17
@graphite-app
Copy link
Contributor

graphite-app bot commented Sep 19, 2025

Merge activity

@graphite-app graphite-app bot changed the base branch from graphite-base/8072 to main September 19, 2025 00:31
graphite-app bot pushed a commit that referenced this pull request Sep 19, 2025
<!--

## 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 updating the documentation for the `SwapWidget` component, simplifying the swap interface example, and enhancing user guidance on configuring default token selections.

### Detailed summary
- Added `DocImage` component to display `swap-dark.png`.
- Updated the swap interface example to use `SwapWidget`.
- Simplified the example function to `Example`.
- Provided instructions for configuring default token selections.
- Included code snippets for various default configurations.
- Removed the detailed implementation of the previous swap interface.

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

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the 09-19-portal_add_swapwidget_in_bridge_swap_page branch from 87f50be to b7b1d02 Compare September 19, 2025 00:31
@vercel vercel bot temporarily deployed to Preview – nebula September 19, 2025 00:31 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www September 19, 2025 00:31 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 19, 2025 00:31 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 19, 2025 00:31 Inactive
<!--

## 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 updating the documentation for the `SwapWidget` component, simplifying the example code, and enhancing the user experience by adding new features and usage guidelines.

### Detailed summary
- Added `DocImage` component to display `swap-dark.png`.
- Simplified the swap interface example to use the `SwapWidget`.
- Introduced a live playground section for the `SwapWidget`.
- Added configuration options for default token selection in the widget.
- Removed the complex swap interface code for clarity.
- Included tips for gas optimization and route caching.

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

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the 09-19-portal_add_swapwidget_in_bridge_swap_page branch from b7b1d02 to 1d90437 Compare September 19, 2025 00:32
@vercel vercel bot temporarily deployed to Preview – nebula September 19, 2025 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui September 19, 2025 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground September 19, 2025 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb-www September 19, 2025 00:32 Inactive
@graphite-app graphite-app bot merged commit 1d90437 into main Sep 19, 2025
24 checks passed
@graphite-app graphite-app bot deleted the 09-19-portal_add_swapwidget_in_bridge_swap_page branch September 19, 2025 00:58
@vercel vercel bot temporarily deployed to Production – thirdweb_playground September 19, 2025 00:58 Inactive
@vercel vercel bot temporarily deployed to Production – nebula September 19, 2025 00:58 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb-www September 19, 2025 00:58 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui September 19, 2025 00:58 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Portal Involves changes to the Portal (docs) codebase.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants