Skip to content

Dashboard: Migrate Published Contract page from chakra to tailwind, UI improvements #7728

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

Conversation

MananTank
Copy link
Member

@MananTank MananTank commented Jul 27, 2025


PR-Codex overview

This PR focuses on improving the UI components and structure of the published contract pages in the dashboard. It includes style adjustments, component refactoring, and the introduction of props for better customization.

Detailed summary

  • Updated version-selector.tsx to change width styling.
  • Enhanced PublishedContractBreadcrumbs to accept className prop.
  • Simplified PublishedContractLayout to directly return children.
  • Refactored DeployFormForUri by removing unnecessary wrappers.
  • Modified ExplorePage layout for improved spacing and structure.
  • Changed PublishedActions to use ArrowUpRightIcon and improved button structure.
  • Updated DeployContractInfo for better image handling and layout.
  • Refined MarkdownRenderer styles for better readability.
  • Adjusted PublishedContract component layout and styling.
  • Added PublishedContractBreadcrumbs to multiple pages for consistent navigation.
  • Updated PublisherHeader styles for improved visual hierarchy.

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

Summary by CodeRabbit

  • New Features

    • Added breadcrumb navigation to published contract and deploy pages for improved navigation clarity.
  • Refactor

    • Replaced Chakra UI components with Tailwind CSS for consistent styling and layout across published contract pages.
    • Simplified and reorganized contract detail and publisher header layouts for better readability and usability.
    • Updated contract info display to use an enhanced image component with fallback support.
    • Streamlined deploy and published contract page structures by removing redundant wrappers and improving container usage.
  • Style

    • Adjusted spacing, borders, and typography for headings, lists, and paragraphs in Markdown rendering.
    • Refined button and icon styles for contract actions and links.
    • Improved overall page structure and container consistency.
    • Modified version selector styling for a more compact and rounded appearance.
  • Bug Fixes

    • Enhanced fallback behavior for contract images when unavailable.
  • Chores

    • Removed unused sharing utility and related "Share" button from contract actions.
    • Cleaned up unused Chakra UI imports and wrappers.

Copy link

vercel bot commented Jul 27, 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 27, 2025 7:35pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Jul 27, 2025 7:35pm
nebula ⬜️ Skipped (Inspect) Jul 27, 2025 7:35pm
thirdweb_playground ⬜️ Skipped (Inspect) Jul 27, 2025 7:35pm
wallet-ui ⬜️ Skipped (Inspect) Jul 27, 2025 7:35pm

@vercel vercel bot temporarily deployed to Preview – nebula July 27, 2025 14:47 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 July 27, 2025 14:47 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 27, 2025 14:47 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 27, 2025 14:47 Inactive
Copy link

changeset-bot bot commented Jul 27, 2025

⚠️ No Changeset found

Latest commit: c7fab9f

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

Copy link
Contributor

coderabbitai bot commented Jul 27, 2025

Walkthrough

This update refactors several dashboard components to replace Chakra UI elements with Tailwind CSS utility classes, restructures layouts for published contract pages, and updates styling for markdown-rendered content. It also removes a share link utility, simplifies button actions, and introduces improved breadcrumb and image fallback components, with no changes to core logic or control flow.

Changes

File(s) / Path(s) Change Summary
apps/dashboard/src/@/components/blocks/markdown-renderer.tsx Updated CSS class names for headings, lists, and paragraphs to adjust borders, spacing, and line heights in Markdown rendering.
apps/dashboard/src/@/components/contract-components/publisher/publisher-header.tsx Refactored layout and styling for the "Published by" section, improved avatar and account link display, added icon-enhanced label, and removed button-based navigation.
apps/dashboard/src/@/components/contracts/published-contract/index.tsx Replaced Chakra UI components with Tailwind CSS, restructured layout into a two-column grid, simplified sections, updated button and link styles, and adjusted type declarations.
apps/dashboard/src/@/utils/shareLink.ts Deleted utility function for sharing or copying links.
apps/dashboard/src/app/(app)/(dashboard)/explore/page.tsx Modified header and content layout, updated container and spacing classes, and removed unused spacer elements.
apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/[version]/page.tsx Removed Chakra UI wrappers, added a new breadcrumbs component, reorganized layout using bordered containers, and updated component placements.
apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/components/breadcrumbs.client.tsx Added optional className prop, used cn utility for class composition, and updated container styling.
apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/layout.tsx Removed breadcrumbs and extra wrappers; layout now directly renders children.
apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/page.tsx Removed ChakraProvider and Separator, reorganized structure with new breadcrumbs and bordered containers, updated classNames, and moved PublishedActions inside DeployContractHeader.
apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/contract-actions-published.client.tsx Simplified actions: removed share button and utility, retained only the deploy button with updated icon and structure.
apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/contract-header.tsx Added optional className prop, updated container class composition, and adjusted alignment.
apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/contract-info.tsx Replaced native image with custom Img component with fallback, updated layout and heading sizes, and improved image display consistency.
apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/publish-based-deploy.tsx Added breadcrumbs component, reorganized layout into bordered and padded containers, and updated classNames.
apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/uri-based-deploy.tsx Removed ChakraProvider wrapper; now directly returns the form component.
apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/version-selector.tsx Reduced minimum width, removed hover background, and made select trigger fully rounded.

Sequence Diagram(s)

sequenceDiagram
    participant User
    participant PublishedContractPage
    participant PublishedContractBreadcrumbs
    participant DeployContractHeader
    participant PublishedActions
    participant PublishedContract

    User->>PublishedContractPage: Load contract page
    PublishedContractPage->>PublishedContractBreadcrumbs: Render breadcrumbs
    PublishedContractPage->>DeployContractHeader: Render header with actions
    DeployContractHeader->>PublishedActions: Render deploy button
    PublishedContractPage->>PublishedContract: Render contract details
Loading

Estimated code review effort

🎯 4 (Complex) | ⏱️ ~40 minutes

Suggested reviewers

  • jnsdls

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 df1828e and c7fab9f.

📒 Files selected for processing (15)
  • apps/dashboard/src/@/components/blocks/markdown-renderer.tsx (5 hunks)
  • apps/dashboard/src/@/components/contract-components/publisher/publisher-header.tsx (2 hunks)
  • apps/dashboard/src/@/components/contracts/published-contract/index.tsx (3 hunks)
  • apps/dashboard/src/@/utils/shareLink.ts (0 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/explore/page.tsx (1 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/[version]/page.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/components/breadcrumbs.client.tsx (1 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/layout.tsx (1 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/page.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/contract-actions-published.client.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/contract-header.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/contract-info.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/publish-based-deploy.tsx (2 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/uri-based-deploy.tsx (1 hunks)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/version-selector.tsx (1 hunks)
💤 Files with no reviewable changes (1)
  • apps/dashboard/src/@/utils/shareLink.ts
✅ Files skipped from review due to trivial changes (3)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/version-selector.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/uri-based-deploy.tsx
  • apps/dashboard/src/@/components/blocks/markdown-renderer.tsx
🚧 Files skipped from review as they are similar to previous changes (11)
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/layout.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/contract-actions-published.client.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/components/breadcrumbs.client.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/[version]/page.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/contract-header.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/explore/page.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/[publisher]/[contract_id]/page.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/publish-based-deploy.tsx
  • apps/dashboard/src/app/(app)/(dashboard)/published-contract/components/contract-info.tsx
  • apps/dashboard/src/@/components/contract-components/publisher/publisher-header.tsx
  • apps/dashboard/src/@/components/contracts/published-contract/index.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: Size
  • GitHub Check: E2E Tests (pnpm, vite)
  • GitHub Check: E2E Tests (pnpm, webpack)
  • GitHub Check: E2E Tests (pnpm, esbuild)
  • GitHub Check: Unit Tests
  • GitHub Check: Build Packages
  • GitHub Check: Lint Packages
  • GitHub Check: Analyze (javascript)
✨ Finishing Touches
  • 📝 Generate Docstrings
🧪 Generate unit tests
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch 07-27-dashboard_migrate_published_contract_page_from_chakra_to_tailwind_ui_improvements

🪧 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 generate unit tests to generate unit tests for 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 the Dashboard Involves changes to the Dashboard. label Jul 27, 2025
@MananTank MananTank marked this pull request as ready for review July 27, 2025 14:47
@MananTank MananTank requested review from a team as code owners July 27, 2025 14:47
Copy link
Member Author

MananTank commented Jul 27, 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.

@MananTank MananTank force-pushed the 07-27-dashboard_migrate_published_contract_page_from_chakra_to_tailwind_ui_improvements branch from 9294255 to df1828e Compare July 27, 2025 14:48
@vercel vercel bot temporarily deployed to Preview – docs-v2 July 27, 2025 14:48 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 27, 2025 14:48 Inactive
@vercel vercel bot temporarily deployed to Preview – nebula July 27, 2025 14:48 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 27, 2025 14:48 Inactive
Copy link

codecov bot commented Jul 27, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 56.18%. Comparing base (882ed83) to head (c7fab9f).
⚠️ Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #7728   +/-   ##
=======================================
  Coverage   56.18%   56.18%           
=======================================
  Files         908      908           
  Lines       58236    58236           
  Branches     4200     4200           
=======================================
  Hits        32718    32718           
  Misses      25410    25410           
  Partials      108      108           
Flag Coverage Δ
packages 56.18% <ø> (ø)
🚀 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 27, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 63.33 KB (0%) 1.3 s (0%) 345 ms (+79.44% 🔺) 1.7 s
thirdweb (cjs) 353.15 KB (0%) 7.1 s (0%) 1.6 s (+6.32% 🔺) 8.7 s
thirdweb (minimal + tree-shaking) 5.7 KB (0%) 114 ms (0%) 128 ms (+982.13% 🔺) 242 ms
thirdweb/chains (tree-shaking) 526 B (0%) 11 ms (0%) 4 ms (+7.7% 🔺) 15 ms
thirdweb/react (minimal + tree-shaking) 19.24 KB (0%) 385 ms (0%) 219 ms (+636.27% 🔺) 604 ms

Copy link
Contributor

graphite-app bot commented Jul 27, 2025

Merge activity

…I improvements (#7728)

<!--

## 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 improving the UI components and structure of the published contract pages in the dashboard. It enhances layouts, updates component props, and modifies styles for better user experience and consistency.

### Detailed summary
- Updated `version-selector` styles.
- Modified `PublishedContractBreadcrumbs` to accept `className` prop.
- Simplified `PublishedContractLayout` by returning only `props.children`.
- Refactored `DeployFormForUri` to remove `ChakraProviderSetup`.
- Enhanced `ExplorePage` layout and styles.
- Changed icons in `PublishedActions` and updated button structure.
- Improved `DeployContractInfo` layout and styles.
- Updated `MarkdownRenderer` styles for better spacing and alignment.
- Refactored `PublishedContract` to use `className` prop for styling.
- Added `PublishedContractBreadcrumbs` to multiple pages for better navigation.
- Improved `PublisherHeader` layout and styling.
- Removed unused imports and cleaned up code.

> ✨ 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 breadcrumb navigation to published contract and deploy pages for improved navigation clarity.

* **Refactor**
  * Replaced Chakra UI components with Tailwind CSS for more consistent styling and layout across published contract pages.
  * Simplified and reorganized contract detail and publisher header layouts for better readability and usability.
  * Updated contract info display to use an enhanced image component with fallback support.

* **Style**
  * Adjusted spacing, borders, and typography for headings, lists, and paragraphs in Markdown rendering.
  * Refined button and icon styles for contract actions and links.
  * Improved overall page structure and container consistency.

* **Bug Fixes**
  * Enhanced fallback behavior for contract images when unavailable.

* **Chores**
  * Removed unused sharing utility and related "Share" button from contract actions.
  * Cleaned up unused Chakra UI imports and wrappers.

* **Documentation**
  * No user-facing documentation changes included.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
@graphite-app graphite-app bot force-pushed the 07-27-dashboard_migrate_published_contract_page_from_chakra_to_tailwind_ui_improvements branch from df1828e to c7fab9f Compare July 27, 2025 19:27
@vercel vercel bot temporarily deployed to Preview – nebula July 27, 2025 19:27 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground July 27, 2025 19:27 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 July 27, 2025 19:27 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui July 27, 2025 19:27 Inactive
@graphite-app graphite-app bot merged commit c7fab9f into main Jul 27, 2025
25 checks passed
@graphite-app graphite-app bot deleted the 07-27-dashboard_migrate_published_contract_page_from_chakra_to_tailwind_ui_improvements branch July 27, 2025 19:36
@vercel vercel bot temporarily deployed to Production – nebula July 27, 2025 19:36 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui July 27, 2025 19:36 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 July 27, 2025 19:36 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground July 27, 2025 19:36 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