Skip to content

[TOOL-4336] Dashboard: Fix contracts on custom chains not shown in contracts table #6916

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
merged 1 commit into from
May 1, 2025

Conversation

MananTank
Copy link
Member

@MananTank MananTank commented May 1, 2025


PR-Codex overview

This PR primarily focuses on renaming and refactoring the getChains function to getChainsForNebula and updating its usage across various components. Additionally, it introduces a new utility function, fetchChainWithLocalOverrides, to enhance chain fetching with local overrides.

Detailed summary

  • Renamed getChains to getChainsForNebula in getChainIds.ts.
  • Updated references to getChains to getChainsForNebula in:
    • page.tsx of the login component.
    • page.tsx of the main app page.
  • Introduced fetchChainWithLocalOverrides in fetchChainWithLocalOverrides.ts for enhanced chain fetching.
  • Updated getSortedDeployedContracts to use fetchChainWithLocalOverrides.
  • Replaced direct calls to fetchChain with fetchChainWithLocalOverrides in getContractFromParams.ts.

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

Copy link

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

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 1, 2025 20:24 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 1, 2025 20:24 Inactive
@vercel vercel bot temporarily deployed to Preview – login May 1, 2025 20:24 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 1, 2025 20:24 Inactive
Copy link

linear bot commented May 1, 2025

Copy link

changeset-bot bot commented May 1, 2025

⚠️ No Changeset found

Latest commit: 004f377

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

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

MananTank commented May 1, 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 title [TOOL-4336] Dashboard: Fix custom chains not shown in contracts table [TOOL-4336] Dashboard: Fix contracts on custom chains not shown in contracts table May 1, 2025
Copy link

codecov bot commented May 1, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 55.10%. Comparing base (e23f53b) to head (004f377).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #6916      +/-   ##
==========================================
- Coverage   55.11%   55.10%   -0.01%     
==========================================
  Files         896      896              
  Lines       57192    57192              
  Branches     3957     3957              
==========================================
- Hits        31520    31516       -4     
- Misses      25575    25579       +4     
  Partials       97       97              
Flag Coverage Δ
packages 55.10% <ø> (-0.01%) ⬇️

see 3 files with indirect coverage changes

🚀 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 May 1, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 51.19 KB (0%) 1.1 s (0%) 308 ms (+350.26% 🔺) 1.4 s
thirdweb (cjs) 143.86 KB (0%) 2.9 s (0%) 438 ms (+130.02% 🔺) 3.4 s
thirdweb (minimal + tree-shaking) 5.67 KB (0%) 114 ms (0%) 126 ms (+2589.02% 🔺) 240 ms
thirdweb/chains (tree-shaking) 514 B (0%) 11 ms (0%) 27 ms (+1450.8% 🔺) 37 ms
thirdweb/react (minimal + tree-shaking) 19.38 KB (0%) 388 ms (0%) 163 ms (+787.17% 🔺) 551 ms

Copy link
Contributor

graphite-app bot commented May 1, 2025

Merge activity

…ntracts table (#6916)

<!--

## 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 chain fetching functionality within the application. It renames and updates the `getChains` function to `getChainsForNebula`, introduces a new utility `fetchChainWithLocalOverrides`, and modifies various components to utilize these changes.

### Detailed summary
- Renamed `getChains` to `getChainsForNebula` in `getChainIds.ts`.
- Updated references to `getChains` in `page.tsx` and `login/page.tsx` to use `getChainsForNebula`.
- Introduced `fetchChainWithLocalOverrides` in `fetchChainWithLocalOverrides.ts`.
- Replaced `fetchChain` with `fetchChainWithLocalOverrides` in `getSortedDeployedContracts.tsx` and `getContractFromParams.ts`.
- Removed redundant local chain fetching logic from `getContractFromParams.ts`.

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

<!-- end pr-codex -->
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground May 1, 2025 20:59 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui May 1, 2025 20:59 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 May 1, 2025 20:59 Inactive
@vercel vercel bot temporarily deployed to Preview – login May 1, 2025 20:59 Inactive
@graphite-app graphite-app bot merged commit 004f377 into main May 1, 2025
23 checks passed
@graphite-app graphite-app bot deleted the tool-4336 branch May 1, 2025 21:07
@vercel vercel bot temporarily deployed to Production – thirdweb_playground May 1, 2025 21:07 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 May 1, 2025 21:07 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