-
Notifications
You must be signed in to change notification settings - Fork 590
Comparing changes
Open a pull request
base repository: thirdweb-dev/js
base: @thirdweb-dev/[email protected]
head repository: thirdweb-dev/js
compare: main
- 20 commits
- 106 files changed
- 7 contributors
Commits on Sep 19, 2025
-
Dashboard: Add Tokens page (#8073)
<!-- ## 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 enhancements to the token management system, focusing on adding price-related fields, sorting options, and improving the user interface for token display and selection. ### Detailed summary - Added `marketCapUsd` and `volume24hUsd` fields to the `Token` type. - Introduced `sortBy` option in token fetching. - Updated `PublicPageConnectButton` to include a `detailsButton`. - Created a new `Page` component for displaying token information. - Implemented a `PageHeader` component for navigation. - Added `TokenPage` component for token management with sorting capabilities. - Developed `TokensTable` component for listing tokens with price, market cap, and volume. - Introduced `BridgeNetworkSelector` for selecting blockchain networks. - Enhanced UI with loading states and better token presentation. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - New Features - Introduced a Tokens dashboard page with header and hero section. - Added network selector for choosing chains. - Implemented token list with columns for Token, Price, Market Cap, and 24h Volume. - Enabled sorting by Popular (market cap) and Trending (volume), plus pagination. - Improved Connect button with an additional details button style. - Enhancements - Loading states and empty-state messaging for token lists. - Backend now supports token sorting and exposes market cap and 24h volume for richer displays. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for 0250215 - Browse repository at this point
Copy the full SHA 0250215View commit details -
[MNY-189] SDK: SwapWidget UI improvements (#8080)
<!-- ## 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 UI improvements for the `SwapWidget`, enhancing responsiveness, styling, and functionality, particularly for mobile users. It also refines token selection and formatting for better user experience. ### Detailed summary - Removed a changeset file related to `SwapWidget` UI improvements. - Adjusted breakpoints and font sizes in `design-system/index.ts`. - Enhanced `SearchInput` styling in `SearchInput.tsx`. - Added `tokenAmountFormatter` utility in `utils.ts`. - Made `children` prop optional in `basic.tsx`. - Updated color values in `sdk-component-theme.ts`. - Enhanced `Input` component styles in `formElements.tsx`. - Improved `BuyAndSwapEmbed.tsx` with better token handling. - Introduced `useIsMobile` hook for mobile detection. - Updated `ArrowUpDownIcon.tsx` SVG for better rendering. - Added hover background support in `buttons.tsx`. - Renamed `WithData` to `WithDataDesktop` in `SelectChain.stories.tsx`. - Added mobile versions of `WithData` and `Loading` functions in `SelectChain.stories.tsx`. - Updated `SwapWidget` stories to manage token selections and themes. - Refined `select-chain.tsx` for better mobile handling. - Improved `swap-ui.tsx` with mobile responsiveness and token selection logic. - Enhanced `select-token-ui.tsx` with mobile UI improvements and token display logic. - Added `ActiveWalletDetails` for displaying wallet information. - Updated various button and token display styles for consistency and better UX. > ✨ 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** * Swap widget: onDisconnect callback, details modal, max-fill, improved wallet/account display, clearer loading/insufficient-balance states; stories now disable token-selection persistence. * Mobile detection hook enabling separate mobile/desktop flows. * **UI/Style** * Enhanced token/chain visuals (gradients, smaller icon size), adjusted spacing and input sizing, customizable button hover backgrounds. * **Refactor** * Unified token amount formatting and simplified numeric displays. * **Chores** * Added changeset entry for UI improvements. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for 93f913c - Browse repository at this point
Copy the full SHA 93f913cView commit details -
Dashboard: Remove /routes (#8084)
<!-- ## 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 the removal of several files related to the `bridge` feature in the dashboard and the addition of a new `tokens` page with metadata for improved SEO. ### Detailed summary - Deleted files related to the `bridge` feature: - `utils.ts` - `layout.tsx` - `route.ts` - `page.tsx` - `opengraph-image.png` - Various components under `routes/components/client` and `routes/components/server` - Added a new `tokens` page in `page.tsx` with: - Metadata for SEO, including title and description - Import of `PageHeader` and `TokenPage` components > ✨ 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 - Redirects: Visiting /routes now automatically navigates to /tokens (temporary redirect). - Tokens page now includes enriched metadata for improved previews and sharing. - Refactor - Removed the legacy Routes dashboard and associated UI controls, streamlining navigation to the Tokens experience. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for dd69316 - Browse repository at this point
Copy the full SHA dd69316View commit details -
[MNY-191] Dashboard: Add header in /bridge (#8085)
<!-- ## 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 layout and components of the `Bridge` application by improving styling, adding new components, and refactoring existing structures for better usability and aesthetics. ### Detailed summary - Updated `<body>` class in `layout.tsx` for improved layout. - Changed width class in `UniversalBridgeEmbed.tsx` for full responsiveness. - Added `relative z-10` class to the main `<div>` in `BuyAndSwapEmbed.tsx`. - Introduced a new `PageHeader` component in `header.tsx` with navigation links. - Refactored `BridgePage` in `page.tsx` to include `PageHeader` and remove unnecessary elements. - Added `DotsBackgroundPattern` function for a decorative background effect. - Integrated `AppFooter` in `BridgePage` for consistent footer display. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
Configuration menu - View commit details
-
Copy full SHA for d53f8a2 - Browse repository at this point
Copy the full SHA d53f8a2View commit details
Commits on Sep 20, 2025
-
[BLD-325] Dashboard: Rename floating chat button label (#8086)
<!-- ## 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 `CustomChatButton` component and its usage in various layouts by simplifying the button structure, changing icons, and removing unnecessary wrapper elements. ### Detailed summary - Removed the wrapper `<div>` around the `CustomChatButton` in `layout.tsx` files. - Changed the icon in `CustomChatButton` from `MessageCircleIcon` to `CircleQuestionMarkIcon`. - Updated button label from dynamic to static "Need help?". - Adjusted button class names for styling consistency. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
Configuration menu - View commit details
-
Copy full SHA for 6f88d38 - Browse repository at this point
Copy the full SHA 6f88d38View commit details -
Dashboard: Add search in tokens page (#8088)
<!-- ## 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 enhances the `Token` and `TokenPage` components by adding search functionality for tokens and improving the bridge network selection process. ### Detailed summary - Added `query` parameter in `tokens` function for searching tokens by name or symbol. - Updated `Page` component to fetch supported chains asynchronously. - Modified `TokenPage` to accept `chains` as a prop and integrated search functionality. - Enhanced `BridgeNetworkSelector` to utilize passed `chains` prop instead of querying. - Added search input for token filtering in the `TokenPage`. > ✨ 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 token search on the Tokens page; search by name or symbol with a new inline search field beside sort controls. * Search intelligently interacts with sorting: choosing Popular or Trending clears the search. * **Improvements** * Faster, more reliable page load by fetching supported networks server‑side and passing them to the page. * Refined network selector UI with a consistent placeholder and smoother option rendering. * **Refactor** * Streamlined components to receive pre-fetched chain data, reducing in-component data fetching and simplifying state. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for b7732d3 - Browse repository at this point
Copy the full SHA b7732d3View commit details -
Playground: Redirect corrections (#8087)
<!-- ## 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 routing configuration in the `next.config.mjs` file to allow for dynamic path segments in specific routes. ### Detailed summary - Changed `source` for `/insight` to `/insight/:path*`, allowing for dynamic paths. - Changed `source` for `/payments/backend` to `/payments/backend/:path*`, enabling dynamic path handling. - Both routes maintain their respective `destination` and `permanent` settings. > ✨ 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 * **Bug Fixes** * Fixed redirects for /insight and /payments/backend to handle nested paths, ensuring deep links (e.g., subpages) correctly route to their destinations without 404s. * Maintains existing base redirects and leaves other routes untouched, improving navigation reliability without altering overall site behavior. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for 96ebf37 - Browse repository at this point
Copy the full SHA 96ebf37View commit details -
Configuration menu - View commit details
-
Copy full SHA for 1338a0c - Browse repository at this point
Copy the full SHA 1338a0cView commit details -
Fix typos in comments and docs across thirdweb packages (#8033)
Signed-off-by: sashaodessa <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for 51177fb - Browse repository at this point
Copy the full SHA 51177fbView commit details
Commits on Sep 22, 2025
-
Configuration menu - View commit details
-
Copy full SHA for a85ef0b - Browse repository at this point
Copy the full SHA a85ef0bView commit details -
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for c328aa1 - Browse repository at this point
Copy the full SHA c328aa1View commit details -
Dashboard: Fix broken opengraph-image.tsx (#8094)
<!-- ## 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 refactoring the use of `useId` in several components by replacing it with static string values for IDs, improving consistency and potentially performance in the components related to Open Graph images. ### Detailed summary - Removed `useId` from `contract-wallet-analytics.ts`, replacing it with a static variable. - Updated `TWLogo` component in `opengraph-image.tsx` to use static IDs instead of `useId`. - Changed `OgBrandIcon` component in `opengraph-image.tsx` to use a static gradient ID. - Updated `TWLogo` component in another `opengraph-image.tsx` file to use static IDs instead of `useId`. > ✨ 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 - None. - Bug Fixes - Improved reliability of OpenGraph images by using stable SVG IDs for gradients and clip paths, ensuring consistent rendering across sharing platforms on chain, contract, and drop pages. - Chores - Removed unnecessary debug logging from wallet analytics to reduce console noise. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for b37ed57 - Browse repository at this point
Copy the full SHA b37ed57View commit details -
Configuration menu - View commit details
-
Copy full SHA for 5249cb7 - Browse repository at this point
Copy the full SHA 5249cb7View commit details -
[MNY-204] Dashboard: Add tracking for BuyWidget, SDK: update callback…
… types in BuyWidget (#8100) <!-- ## 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 enhances the `BuyWidget` and related components by updating the callback props to include a `quote` object, allowing for better tracking of token buy events and improving error handling. ### Detailed summary - Updated `onSuccess`, `onError`, and `onCancel` props in `BuyWidget` to accept a `quote` object. - Enhanced error reporting with detailed information in `reportTokenBuyFailed`, `reportTokenBuyCancelled`, and `reportTokenBuySuccessful`. - Modified `BuyAndSwapEmbed` component to handle the new callback signatures. - Adjusted `BridgeOrchestrator` to utilize the `quote` object in its flow. > ✨ 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 - Buy and Bridge flows now provide quote details to success, error, and cancel callbacks. - Token-level analytics added for buy flows (success, failure, cancel). - Breaking Changes - Callback signatures changed to include quote parameters; client implementations must be updated. - Documentation - Examples updated to show new callback parameters and usage. - Chores - Standardized analytics for asset purchases where contract type may be unspecified. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for a94f229 - Browse repository at this point
Copy the full SHA a94f229View commit details -
[MNY-193] Dashboard: Update Client Ids for Buy and Swap widgets in ch…
…ain, bridge and asset pages (#8101) <!-- ## 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 refactoring components and updating environment variable handling for the `BuyAndSwapEmbed` and `BuyFundsSection` components in a dashboard application. It enhances the usage of client IDs and improves the structure of props. ### Detailed summary - Removed `client` prop from `BuyAndSwapEmbed` and `BuyFundsSection`. - Introduced `clientId` handling in `getConfiguredThirdwebClient`. - Updated `BuyAndSwapEmbed` to use `useMemo` for client configuration based on `pageType`. - Added multiple `NEXT_PUBLIC_*_CLIENT_ID` constants in `public-envs.ts`. - Cleaned up imports and types in various files for better clarity. > ✨ 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 - Auto-configured client selection per page type (asset/bridge/chain) for Buy, Swap, and Bridge embeds, improving reliability without manual setup. - Refactor - Simplified components by removing the need to pass a client prop; widgets now use an internal, memoized client. - Chores - Added new public environment variables for page-specific client IDs to enable tailored configuration: - NEXT_PUBLIC_ASSET_PAGE_CLIENT_ID - NEXT_PUBLIC_BRIDGE_PAGE_CLIENT_ID - NEXT_PUBLIC_CHAIN_PAGE_CLIENT_ID <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for e568bce - Browse repository at this point
Copy the full SHA e568bceView commit details
Commits on Sep 23, 2025
-
[MNY-195] Dashboard: Remove Dexscreener on erc20 public page, add tok…
…en info card (#8103) <!-- ## 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 UI components and functionality in the `ERC20` public page, improving styles, and refactoring the token info fetching logic. ### Detailed summary - Removed `dex-screener.tsx` and `dex-screener-chains.ts`. - Adjusted padding in `ContractHeader.tsx`. - Added shadow to a div in `BuyAndSwapEmbed.tsx`. - Updated border styles in `ERC20PublicPage.tsx`. - Introduced `TokenInfoSection` for displaying token info. - Refactored `fetchTokenInfoFromBridge` to use `ThirdwebClient`. - Added icons in `ContractAnalyticsOverview` and `RecentTransfers`. - Improved layout and styles for various components. > ✨ 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 token summary section (Price, Market Cap, 24h Volume) on ERC20 public pages. * **Style** * Visual polish: added shadow, larger rounded corners, adjusted headers, spacing, and rounded chart containers. * Chart and analytics headers now support/display icons; some header background styling simplified. * **Changes** * Removed embedded DexScreener integration and related chain-slug mapping. * **Refactor** * Token info fetching switched to a client-based SDK call; formatting helpers added for USD display. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for b366d56 - Browse repository at this point
Copy the full SHA b366d56View commit details -
[Dashboard] Add ai usage billing banner to dashboard (#8104)
Co-authored-by: Cursor Agent <[email protected]>
Configuration menu - View commit details
-
Copy full SHA for a81899d - Browse repository at this point
Copy the full SHA a81899dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 60021b3 - Browse repository at this point
Copy the full SHA 60021b3View commit details -
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Configuration menu - View commit details
-
Copy full SHA for db38380 - Browse repository at this point
Copy the full SHA db38380View commit details -
[BLD-330] Playground: Add missing payments overview page (#8107)
<!-- ## 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 new `OverviewPage` component for the payments section, updates the layout of the `OverviewPage`, and adds a new payment feature card for the x402 payment protocol. ### Detailed summary - Updated `OverviewPage` to allow a maximum width of 80% for the description. - Created a new `Page` component in `page.tsx` that utilizes `OverviewPage` with a title, description, and feature cards. - Added a new feature card for the x402 payment protocol in `pages-metadata.ts`. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex --> <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Introduced a Payments page with a clear overview, icon, and quick links to payment options. * Added an x402 payment protocol card to the Payments overview, enabling API payments with any web3 wallet and direct navigation. * **Style** * Refined overview layout by limiting description width for improved readability on wide screens. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
Configuration menu - View commit details
-
Copy full SHA for db145b5 - Browse repository at this point
Copy the full SHA db145b5View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff @thirdweb-dev/[email protected]