Skip to content

[TOOL-4959] Dashboard: Asset page UI improvements #7599

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged

Conversation

MananTank
Copy link
Member

@MananTank MananTank commented Jul 11, 2025


PR-Codex overview

This PR primarily focuses on enhancing the ERC20 public page and its components by improving layout, adding token price data fetching, and refining UI elements for better usability and aesthetics.

Detailed summary

  • Deleted unused files: useTokenPriceData.ts and ContractCreatorBadge.tsx.
  • Updated PageHeader to change border style.
  • Added tooltip prop in CopyAddressButton.
  • Refactored fetchTokenInfoFromBridge to use DASHBOARD_THIRDWEB_SECRET_KEY.
  • Introduced getTokenPriceData for fetching token price data.
  • Enhanced ERC20PublicPage to include token price data.
  • Improved ContractHeaderUI layout and added social links.
  • Updated TokenStats to use fetched token price data instead of local state.
  • Refined styles and structure in components like RecentTransfers and PriceChartUI.

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

Summary by CodeRabbit

  • New Features

    • Introduced a customizable grid background pattern component for enhanced visual design.
    • Added support for displaying token price data and analytics on ERC20 public pages, including conditional rendering of token statistics.
    • Enabled tooltip customization for the copy address button.
  • Refactor

    • Simplified and unified chart headers and analytics section layouts.
    • Streamlined fetching and handling of token price data with a new asynchronous function and removed the previous hook.
    • Improved layout and container styling across ERC20 and NFT public pages, including card backgrounds, borders, and spacing.
    • Adjusted component structures for better visual separation and consistency.
    • Removed the contract creator badge component and replaced it with a simpler contract owner link.
    • Updated contract header to simplify block explorer display and enhance visual hierarchy.
    • Refactored token stats and price chart components for simplified data handling and styling.
  • Style

    • Updated card and header styles for better visual hierarchy and clarity.
    • Enhanced recent transfers and contract header sections with improved padding, borders, and rounded corners.
    • Removed small shadow effects from cards and refined header background and border styles.
    • Restyled pagination buttons with full rounding and adjusted font sizes and spacing in various components.

Copy link

linear bot commented Jul 11, 2025

Copy link

vercel bot commented Jul 11, 2025

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

Name Status Preview Comments Updated (UTC)
thirdweb-www ✅ Ready (Inspect) Visit Preview 💬 Add feedback Jul 12, 2025 0:29am
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Jul 12, 2025 0:29am
nebula ⬜️ Skipped (Inspect) Jul 12, 2025 0:29am
thirdweb_playground ⬜️ Skipped (Inspect) Jul 12, 2025 0:29am
wallet-ui ⬜️ Skipped (Inspect) Jul 12, 2025 0:29am

@vercel vercel bot temporarily deployed to Preview – docs-v2 July 11, 2025 20:02 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 11, 2025 20:02 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 11, 2025 20:02 Inactive
Copy link

changeset-bot bot commented Jul 11, 2025

⚠️ No Changeset found

Latest commit: cdc7d95

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

This PR includes no changesets

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

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

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

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 11, 2025 20:02 Inactive
Copy link
Contributor

coderabbitai bot commented Jul 11, 2025

"""

Walkthrough

This update restructures the ERC20 token asset page, introducing token price data fetching and conditional display of the price chart. The metadata header is visually enhanced and repositioned, the buy card is placed beside the header, and the layout is adjusted for improved hierarchy and responsiveness. Supporting components and styling are updated accordingly.

Changes

File(s) Change Summary
area-chart.tsx, contract-analytics.tsx Extended chart header customization via headerClassName; chart margin explicitly set. Refactored analytics overview to use new chart header prop.
background-patterns.tsx Added new GridPattern SVG component for decorative backgrounds with customizable grid and squares overlay.
card.tsx Removed "shadow-sm" class from card container for styling adjustment.
PageHeader.tsx Changed border styling: replaced dashed border with solid border and background color.
ContractCreatorBadge.tsx Deleted the component that displayed contract creator badge.
ContractHeader.tsx Added className prop, revamped layout and styling for the contract header, changed explorer badge logic to show only one, and updated badge link styling. Replaced contract creator badge with a social link labeled "Contract Owner".
PriceChart.tsx Refactored to accept tokenPriceData as a prop, removed internal data fetching, updated layout and styling, and simplified loading logic.
RecentTransfers.tsx Updated card and table styling, improved header, and simplified outer wrapper.
contract-analytics.tsx Moved analytics header into chart component, adjusted layout and props for new integration.
useTokenPriceData.ts Removed the useTokenPriceData hook and associated type; replaced by standalone async fetch function.
erc20.tsx Integrated getTokenPriceData fetch in main page, restructured layout: moved buy card, improved header, added grid background, and conditionally rendered price chart and stats based on data availability.
nft-page-layout.tsx Moved contract header to a separate bordered container above main content for visual separation.
_apis/token-price-data.ts Added new module defining TokenPriceData type and async getTokenPriceData function to fetch token price data from remote API with server-side secret key.
CopyAddressButton.tsx Added optional tooltip prop to customize tooltip text on copy address button.
_utils/fetch-coin-info.ts Changed fetch authorization from client ID header to server secret key header; enforced server-only execution.

Sequence Diagram(s)

sequenceDiagram
    participant Page as ERC20PublicPage
    participant API as Token Price API
    participant TokenStats as TokenStats
    participant Chart as ContractAnalyticsOverview
    participant Recent as RecentTransfers

    Page->>API: getTokenPriceData(chainId, contractAddress)
    API-->>Page: tokenPriceData (or undefined)
    Page->>Page: Render PageHeader, ContractHeaderUI, BuyCard, GridPattern
    alt tokenPriceData available
        Page->>TokenStats: Render with tokenPriceData
        Page->>Chart: Render analytics overview
    else tokenPriceData not available
        Page->>Chart: Render analytics overview only
    end
    Page->>Recent: Render recent transfers
Loading

Assessment against linked issues

Objective Addressed Explanation
Move the buy card next to the header (TOOL-4959)
Rich metadata header - big icon, socials, etc (TOOL-4959)
Price chart below, hide if no data (TOOL-4959)
Transactions under chart (TOOL-4959)

Assessment against linked issues: Out-of-scope changes

Code Change Explanation
Removal of ContractCreatorBadge component (public-pages/erc20/_components/ContractCreatorBadge.tsx) This deletion is unrelated to the stated objectives which focus on UI layout and data integration, not component removals.
Addition of CopyAddressButton tooltip prop (@/components/ui/CopyAddressButton.tsx) Tooltip customization is a minor UI enhancement not mentioned in linked objectives.
Change in fetch authorization header to server secret key (public-pages/erc20/_utils/fetch-coin-info.ts) Security improvement not directly related to UI or layout changes requested in linked issues.
Addition of GridPattern SVG component for background decoration (@/components/ui/background-patterns.tsx) Decorative background addition is not explicitly required by linked objectives.
Addition of getTokenPriceData async fetch function and type (public-pages/erc20/_apis/token-price-data.ts) While related to token price data fetching, this is a new utility module not explicitly called out in linked objectives.
"""

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.

📜 Recent review details

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

📥 Commits

Reviewing files that changed from the base of the PR and between 6bf5dfb and cdc7d95.

📒 Files selected for processing (15)
  • apps/dashboard/src/@/components/blocks/charts/area-chart.tsx (4 hunks)
  • apps/dashboard/src/@/components/ui/CopyAddressButton.tsx (2 hunks)
  • apps/dashboard/src/@/components/ui/background-patterns.tsx (2 hunks)
  • apps/dashboard/src/@/components/ui/card.tsx (1 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PageHeader.tsx (1 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_apis/token-price-data.ts (1 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/ContractCreatorBadge.tsx (0 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/ContractHeader.tsx (7 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/PriceChart.tsx (9 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/RecentTransfers.tsx (5 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/contract-analytics/contract-analytics.tsx (1 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_hooks/useTokenPriceData.ts (0 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_utils/fetch-coin-info.ts (2 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/erc20.tsx (4 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/nft/nft-page-layout.tsx (1 hunks)
💤 Files with no reviewable changes (2)
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/ContractCreatorBadge.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_hooks/useTokenPriceData.ts
🚧 Files skipped from review as they are similar to previous changes (13)
  • apps/dashboard/src/@/components/ui/card.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/_components/PageHeader.tsx
  • apps/dashboard/src/@/components/ui/CopyAddressButton.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/RecentTransfers.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_utils/fetch-coin-info.ts
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_apis/token-price-data.ts
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/nft/nft-page-layout.tsx
  • apps/dashboard/src/@/components/blocks/charts/area-chart.tsx
  • apps/dashboard/src/@/components/ui/background-patterns.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/contract-analytics/contract-analytics.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/PriceChart.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/erc20.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/(chain)/[chain_id]/[contractAddress]/public-pages/erc20/_components/ContractHeader.tsx
⏰ 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, webpack)
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Size
  • GitHub Check: Unit Tests
  • GitHub Check: Build Packages
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
✨ 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.

@MananTank MananTank marked this pull request as ready for review July 11, 2025 20:02
@MananTank MananTank requested review from a team as code owners July 11, 2025 20:02
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Jul 11, 2025
Copy link
Member Author

MananTank commented Jul 11, 2025


How to use the Graphite Merge Queue

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

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

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

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

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

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

Copy link

codecov bot commented Jul 11, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 56.45%. Comparing base (592bf6f) to head (cdc7d95).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7599   +/-   ##
=======================================
  Coverage   56.45%   56.45%           
=======================================
  Files         906      906           
  Lines       58115    58115           
  Branches     4226     4226           
=======================================
  Hits        32810    32810           
  Misses      25195    25195           
  Partials      110      110           
Flag Coverage Δ
packages 56.45% <ø> (ø)
🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Copy link
Contributor

github-actions bot commented Jul 11, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 63.25 KB (0%) 1.3 s (0%) 294 ms (+49.31% 🔺) 1.6 s
thirdweb (cjs) 353.31 KB (0%) 7.1 s (0%) 1.7 s (+7.51% 🔺) 8.8 s
thirdweb (minimal + tree-shaking) 5.7 KB (0%) 114 ms (0%) 95 ms (+513.7% 🔺) 209 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 17 ms (+238.02% 🔺) 27 ms
thirdweb/react (minimal + tree-shaking) 19.59 KB (0%) 392 ms (0%) 116 ms (+246.57% 🔺) 508 ms

@graphite-app graphite-app bot changed the base branch from 07-11-dashboard_fix_erc20_asset_page_crash_when_number_of_tokens_claimed_is_a_fraction to graphite-base/7599 July 11, 2025 20:38
Copy link
Member

@jnsdls jnsdls left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small nit, but lgtm

@graphite-app graphite-app bot force-pushed the graphite-base/7599 branch from c863047 to 8973174 Compare July 11, 2025 20:47
@graphite-app graphite-app bot force-pushed the 07-12-_tool-4959_dashboard_asset_page_ui_improvements branch from 9f747e3 to ccb8716 Compare July 11, 2025 20:47
@vercel vercel bot temporarily deployed to Preview – docs-v2 July 11, 2025 20:47 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 11, 2025 20:47 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 11, 2025 20:47 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 11, 2025 20:47 Inactive
@graphite-app graphite-app bot changed the base branch from graphite-base/7599 to main July 11, 2025 20:48
@graphite-app graphite-app bot force-pushed the 07-12-_tool-4959_dashboard_asset_page_ui_improvements branch from ccb8716 to c76c372 Compare July 11, 2025 20:48
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 11, 2025 20:48 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 July 11, 2025 20:48 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 11, 2025 23:51 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 11, 2025 23:51 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 July 11, 2025 23:51 Inactive
MananTank added a commit that referenced this pull request Jul 11, 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 refining the UI components and enhancing the functionality of the `ERC20` public page. It includes improvements in layout, styling, and the introduction of new features related to token price data and analytics.

### Detailed summary
- Deleted unused files: `useTokenPriceData.ts` and `ContractCreatorBadge.tsx`.
- Updated `PageHeader` to change border style.
- Added `tooltip` prop in `CopyAddressButton`.
- Changed API key usage in `fetchTokenInfoFromBridge`.
- Enhanced `ThirdwebAreaChart` with better props handling.
- Introduced `GridPattern` component for background.
- Improved `RecentTransfers` UI and pagination buttons.
- Updated `PriceChart` and `TokenStats` to directly use passed props for token price data.
- Refactored `ContractHeaderUI` to improve layout and social link handling.

> ✨ 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 customizable grid background pattern component for enhanced visual design.
  * Added support for displaying token price data and analytics on ERC20 public pages, including conditional rendering of token statistics.
  * Enabled tooltip customization for the copy address button.

* **Bug Fixes**
  * The contract creator badge icon is now visible, and spacing between elements has been improved.

* **Refactor**
  * Simplified and unified chart headers and analytics section layouts.
  * Streamlined fetching and handling of token price data with a new asynchronous function and removed the previous hook.
  * Improved layout and container styling across ERC20 and NFT public pages, including card backgrounds, borders, and spacing.
  * Adjusted component structures for better visual separation and consistency.
  * Removed the contract creator badge component and replaced it with a simpler contract owner link.

* **Style**
  * Updated card and header styles for better visual hierarchy and clarity.
  * Enhanced recent transfers and contract header sections with improved padding, borders, and rounded corners.
  * Removed small shadow effects from cards and refined header background and border styles.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@MananTank MananTank force-pushed the 07-12-_tool-4959_dashboard_asset_page_ui_improvements branch from 1fa2e96 to 9821b1e Compare July 11, 2025 23:57
@vercel vercel bot temporarily deployed to Preview – nebula July 11, 2025 23:57 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 11, 2025 23:57 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 July 11, 2025 23:57 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 11, 2025 23:57 Inactive
MananTank added a commit that referenced this pull request Jul 12, 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 refining the UI components and enhancing the functionality of the `ERC20` public page. It includes improvements in layout, styling, and the introduction of new features related to token price data and analytics.

### Detailed summary
- Deleted unused files: `useTokenPriceData.ts` and `ContractCreatorBadge.tsx`.
- Updated `PageHeader` to change border style.
- Added `tooltip` prop in `CopyAddressButton`.
- Changed API key usage in `fetchTokenInfoFromBridge`.
- Enhanced `ThirdwebAreaChart` with better props handling.
- Introduced `GridPattern` component for background.
- Improved `RecentTransfers` UI and pagination buttons.
- Updated `PriceChart` and `TokenStats` to directly use passed props for token price data.
- Refactored `ContractHeaderUI` to improve layout and social link handling.

> ✨ 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 customizable grid background pattern component for enhanced visual design.
  * Added support for displaying token price data and analytics on ERC20 public pages, including conditional rendering of token statistics.
  * Enabled tooltip customization for the copy address button.

* **Bug Fixes**
  * The contract creator badge icon is now visible, and spacing between elements has been improved.

* **Refactor**
  * Simplified and unified chart headers and analytics section layouts.
  * Streamlined fetching and handling of token price data with a new asynchronous function and removed the previous hook.
  * Improved layout and container styling across ERC20 and NFT public pages, including card backgrounds, borders, and spacing.
  * Adjusted component structures for better visual separation and consistency.
  * Removed the contract creator badge component and replaced it with a simpler contract owner link.

* **Style**
  * Updated card and header styles for better visual hierarchy and clarity.
  * Enhanced recent transfers and contract header sections with improved padding, borders, and rounded corners.
  * Removed small shadow effects from cards and refined header background and border styles.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@MananTank MananTank force-pushed the 07-12-_tool-4959_dashboard_asset_page_ui_improvements branch from 9821b1e to 6bf5dfb Compare July 12, 2025 00:08
@vercel vercel bot temporarily deployed to Preview – docs-v2 July 12, 2025 00:08 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 12, 2025 00:08 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 12, 2025 00:08 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 12, 2025 00:08 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 refining the UI components and enhancing the functionality of the `ERC20` public page. It includes improvements in layout, styling, and the introduction of new features related to token price data and analytics.

### Detailed summary
- Deleted unused files: `useTokenPriceData.ts` and `ContractCreatorBadge.tsx`.
- Updated `PageHeader` to change border style.
- Added `tooltip` prop in `CopyAddressButton`.
- Changed API key usage in `fetchTokenInfoFromBridge`.
- Enhanced `ThirdwebAreaChart` with better props handling.
- Introduced `GridPattern` component for background.
- Improved `RecentTransfers` UI and pagination buttons.
- Updated `PriceChart` and `TokenStats` to directly use passed props for token price data.
- Refactored `ContractHeaderUI` to improve layout and social link handling.

> ✨ 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 customizable grid background pattern component for enhanced visual design.
  * Added support for displaying token price data and analytics on ERC20 public pages, including conditional rendering of token statistics.
  * Enabled tooltip customization for the copy address button.

* **Bug Fixes**
  * The contract creator badge icon is now visible, and spacing between elements has been improved.

* **Refactor**
  * Simplified and unified chart headers and analytics section layouts.
  * Streamlined fetching and handling of token price data with a new asynchronous function and removed the previous hook.
  * Improved layout and container styling across ERC20 and NFT public pages, including card backgrounds, borders, and spacing.
  * Adjusted component structures for better visual separation and consistency.
  * Removed the contract creator badge component and replaced it with a simpler contract owner link.

* **Style**
  * Updated card and header styles for better visual hierarchy and clarity.
  * Enhanced recent transfers and contract header sections with improved padding, borders, and rounded corners.
  * Removed small shadow effects from cards and refined header background and border styles.
<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@MananTank MananTank force-pushed the 07-12-_tool-4959_dashboard_asset_page_ui_improvements branch from 6bf5dfb to cdc7d95 Compare July 12, 2025 00:20
@vercel vercel bot temporarily deployed to Preview – docs-v2 July 12, 2025 00:20 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 12, 2025 00:20 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 12, 2025 00:20 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 12, 2025 00:20 Inactive
@graphite-app graphite-app bot merged commit cdc7d95 into main Jul 12, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 07-12-_tool-4959_dashboard_asset_page_ui_improvements branch July 12, 2025 00:29
@vercel vercel bot temporarily deployed to Production – wallet-ui July 12, 2025 00:29 Inactive
@vercel vercel bot temporarily deployed to Production – nebula July 12, 2025 00:29 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground July 12, 2025 00:29 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 July 12, 2025 00:29 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Dashboard Involves changes to the Dashboard.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants