Skip to content

[TOOL-4248] Dashboard: Fix explore category page not showing contract cards #6829

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 Apr 23, 2025


PR-Codex overview

This PR focuses on updating the ExploreCategoryPage component by removing the dependency on the ThirdwebClient type and instead utilizing a getThirdwebClient function to obtain a client instance directly.

Detailed summary

  • Removed client: ThirdwebClient; from ExploreCategoryPageProps.
  • Added const client = getThirdwebClient(undefined); to retrieve the client.
  • Updated the client prop in the ContractCard component to use the new client variable.

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

Copy link

changeset-bot bot commented Apr 23, 2025

⚠️ No Changeset found

Latest commit: fe46e81

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

vercel bot commented Apr 23, 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 Apr 23, 2025 6:08pm
4 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Apr 23, 2025 6:08pm
login ⬜️ Skipped (Inspect) Apr 23, 2025 6:08pm
thirdweb_playground ⬜️ Skipped (Inspect) Apr 23, 2025 6:08pm
wallet-ui ⬜️ Skipped (Inspect) Apr 23, 2025 6:08pm

@vercel vercel bot temporarily deployed to Preview – wallet-ui April 23, 2025 17:48 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 23, 2025 17:48 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 23, 2025 17:48 Inactive
@vercel vercel bot temporarily deployed to Preview – login April 23, 2025 17:48 Inactive
@MananTank MananTank marked this pull request as ready for review April 23, 2025 17:48
@MananTank MananTank requested review from a team as code owners April 23, 2025 17:48
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Apr 23, 2025
Copy link
Member Author

MananTank commented Apr 23, 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 changed the base branch from Add_plan_cancellation_and_re-subscription_functionality to graphite-base/6829 April 23, 2025 17:49
@MananTank MananTank force-pushed the graphite-base/6829 branch from b722df1 to 4baefa5 Compare April 23, 2025 17:49
@MananTank MananTank force-pushed the 04-23-dashboard_fix_explore_category_page_not_undefined_client branch from 7d9ead3 to fdce789 Compare April 23, 2025 17:49
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 23, 2025 17:49 Inactive
@vercel vercel bot temporarily deployed to Preview – login April 23, 2025 17:49 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 23, 2025 17:49 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 23, 2025 17:49 Inactive
@MananTank MananTank changed the base branch from graphite-base/6829 to main April 23, 2025 17:49
@MananTank MananTank added the hotfix This pull request should be prioritized in the merge queue. label Apr 23, 2025 — with Graphite App
@MananTank MananTank changed the title Dashboard: Fix explore category page not undefined client Dashboard: Fix explore category page not showing contract cards Apr 23, 2025
@MananTank MananTank changed the title Dashboard: Fix explore category page not showing contract cards [TOOL-4248] Dashboard: Fix explore category page not showing contract cards Apr 23, 2025
Copy link

linear bot commented Apr 23, 2025

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.

@jnsdls approved this PR from Slack with Graphite

Copy link

codecov bot commented Apr 23, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.18%. Comparing base (525e603) to head (fe46e81).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6829   +/-   ##
=======================================
  Coverage   55.18%   55.18%           
=======================================
  Files         896      896           
  Lines       56953    56953           
  Branches     3946     3946           
=======================================
  Hits        31429    31429           
  Misses      25428    25428           
  Partials       96       96           
Flag Coverage Δ
packages 55.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

graphite-app bot commented Apr 23, 2025

Merge activity

… cards (#6829)

<!--

## 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 `ExploreCategoryPage` component in the `page.tsx` file to utilize a new client obtained from `getThirdwebClient` instead of passing it as a prop. This change simplifies the component's props and enhances its internal logic.

### Detailed summary
- Removed the `client` prop from `ExploreCategoryPageProps`.
- Introduced `const client = getThirdwebClient(undefined);` to obtain the client internally.
- Updated the `client` prop of the `ContractCard` component to use the newly defined `client` variable instead of `props.client`.

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

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the 04-23-dashboard_fix_explore_category_page_not_undefined_client branch from fdce789 to fe46e81 Compare April 23, 2025 18:01
@vercel vercel bot temporarily deployed to Preview – login April 23, 2025 18:02 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 23, 2025 18:02 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 23, 2025 18:02 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 23, 2025 18:02 Inactive
Copy link
Contributor

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 50.92 KB (0%) 1.1 s (0%) 187 ms (+162.3% 🔺) 1.3 s
thirdweb (cjs) 143.74 KB (0%) 2.9 s (0%) 333 ms (+83.86% 🔺) 3.3 s
thirdweb (minimal + tree-shaking) 5.66 KB (0%) 114 ms (0%) 82 ms (+1808.56% 🔺) 195 ms
thirdweb/chains (tree-shaking) 514 B (0%) 11 ms (0%) 36 ms (+2432.86% 🔺) 46 ms
thirdweb/react (minimal + tree-shaking) 19.33 KB (0%) 387 ms (0%) 108 ms (+874.6% 🔺) 494 ms

@graphite-app graphite-app bot merged commit fe46e81 into main Apr 23, 2025
23 checks passed
@graphite-app graphite-app bot deleted the 04-23-dashboard_fix_explore_category_page_not_undefined_client branch April 23, 2025 18:09
@graphite-app graphite-app bot removed the hotfix This pull request should be prioritized in the merge queue. label Apr 23, 2025
@vercel vercel bot temporarily deployed to Production – wallet-ui April 23, 2025 18:09 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 April 23, 2025 18:09 Inactive
@vercel vercel bot temporarily deployed to Production – login April 23, 2025 18:09 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground April 23, 2025 18:09 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