Skip to content

Conversation

@jnsdls
Copy link
Member

@jnsdls jnsdls commented Apr 15, 2025

currently blocked by analytics API needing to go to prod


PR-Codex overview

This PR focuses on enhancing the RPC usage dashboard in the application by adding new components for visualizing request data, updating existing UI elements, and integrating new API responses for more detailed usage analytics.

Detailed summary

  • Added a new navigation label for RPC in the usage layout.
  • Updated the label for maxLimit in the chart component.
  • Introduced CountGraph and RateGraph components to visualize RPC usage over time.
  • Implemented a new API response type Last24HoursRPCUsageApiResponse.
  • Enhanced getLast24HoursRPCUsage function to fetch and return detailed usage data.
  • Updated ThirdwebAreaChart to support maxLimit and footer props.
  • Added detailed error handling and user feedback in the RPCUsage component.
  • Included alerts for rate limit warnings and exceeded limits in the RPCUsage dashboard.

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

@vercel
Copy link

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

@vercel vercel bot temporarily deployed to Preview – docs-v2 April 15, 2025 18:50 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 15, 2025 18:50 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 15, 2025 18:50 Inactive
@vercel vercel bot temporarily deployed to Preview – login April 15, 2025 18:50 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Apr 15, 2025

⚠️ No Changeset found

Latest commit: 348e3ab

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

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Apr 15, 2025
@jnsdls jnsdls added the DO NOT MERGE This pull request is still in progress and is not ready to be merged. label Apr 15, 2025 — with Graphite App
Copy link
Member Author

jnsdls commented Apr 15, 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.

@jnsdls jnsdls marked this pull request as ready for review April 15, 2025 18:50
@jnsdls jnsdls requested review from a team as code owners April 15, 2025 18:50
@codecov
Copy link

codecov bot commented Apr 15, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.79%. Comparing base (e4590a7) to head (348e3ab).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6733   +/-   ##
=======================================
  Coverage   54.79%   54.79%           
=======================================
  Files         895      895           
  Lines       56376    56376           
  Branches     3849     3849           
=======================================
  Hits        30894    30894           
  Misses      25387    25387           
  Partials       95       95           
Flag Coverage Δ
packages 54.79% <ø> (ø)
🚀 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.

@jnsdls jnsdls force-pushed the Add_RPC_usage_dashboard_with_rate_limit_monitoring branch from a644828 to 4cc2acc Compare April 15, 2025 18:53
@vercel vercel bot temporarily deployed to Preview – login April 15, 2025 18:53 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 15, 2025 18:53 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 15, 2025 18:53 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 15, 2025 18:53 Inactive
@github-actions
Copy link
Contributor

github-actions bot commented Apr 15, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 50.33 KB (0%) 1.1 s (0%) 198 ms (+200.89% 🔺) 1.3 s
thirdweb (cjs) 136.91 KB (0%) 2.8 s (0%) 302 ms (+62.65% 🔺) 3.1 s
thirdweb (minimal + tree-shaking) 5.63 KB (0%) 113 ms (0%) 90 ms (+1039.31% 🔺) 203 ms
thirdweb/chains (tree-shaking) 514 B (0%) 11 ms (0%) 72 ms (+4582.18% 🔺) 82 ms
thirdweb/react (minimal + tree-shaking) 19.35 KB (0%) 388 ms (0%) 95 ms (+762.23% 🔺) 482 ms

@jnsdls jnsdls force-pushed the Add_RPC_usage_dashboard_with_rate_limit_monitoring branch from 4cc2acc to 90d62a2 Compare April 15, 2025 18:58
@vercel vercel bot temporarily deployed to Preview – login April 15, 2025 18:58 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 15, 2025 18:58 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 15, 2025 18:58 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 15, 2025 18:58 Inactive
@jnsdls jnsdls force-pushed the Add_RPC_usage_dashboard_with_rate_limit_monitoring branch from 90d62a2 to 46c4abe Compare April 15, 2025 19:02
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 15, 2025 19:02 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 15, 2025 19:02 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 15, 2025 19:02 Inactive
@vercel vercel bot temporarily deployed to Preview – login April 15, 2025 19:02 Inactive
@graphite-app
Copy link
Contributor

graphite-app bot commented Apr 15, 2025

Merge activity

currently blocked by analytics API needing to go to prod

<!-- start pr-codex -->

---

## PR-Codex overview
This PR introduces a new RPC usage dashboard for monitoring requests over the last 24 hours. It adds new components for visualizing request data and enhances the existing layout to accommodate this functionality.

### Detailed summary
- Added a new `RPC` tab in the usage layout.
- Introduced `CountGraph` and `RateGraph` components for visualizing RPC data.
- Implemented API call to fetch last 24 hours RPC usage data.
- Enhanced `ThirdwebAreaChart` to support max limit display.
- Updated error handling and user feedback for API data fetching.

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

<!-- end pr-codex -->
@graphite-app graphite-app bot force-pushed the Add_RPC_usage_dashboard_with_rate_limit_monitoring branch from 46c4abe to 348e3ab Compare April 15, 2025 19:25
@vercel vercel bot temporarily deployed to Preview – login April 15, 2025 19:25 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui April 15, 2025 19:25 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 April 15, 2025 19:25 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground April 15, 2025 19:25 Inactive
@graphite-app graphite-app bot merged commit 348e3ab into main Apr 15, 2025
23 checks passed
@graphite-app graphite-app bot deleted the Add_RPC_usage_dashboard_with_rate_limit_monitoring branch April 15, 2025 19:33
@vercel vercel bot temporarily deployed to Production – login April 15, 2025 19:33 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui April 15, 2025 19:33 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground April 15, 2025 19:33 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 April 15, 2025 19:33 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. DO NOT MERGE This pull request is still in progress and is not ready to be merged.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants