Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented Nov 23, 2024

CNCT-2395

Screenshot 2024-11-22 at 9 52 09 PM

PR-Codex overview

This PR refactors the analytics-related imports and types, moving them from @/api/analytics to a new types/analytics module. It enhances type safety and organization by centralizing analytics type definitions.

Detailed summary

  • Changed import paths for analytics types from @/api/analytics to types/analytics.
  • Introduced new types in types/analytics.ts: WalletStats, WalletUserStats, InAppWalletStats, EcosystemWalletStats, UserOpStats, RpcMethodStats, and AnalyticsQueryParams.
  • Updated various components and functions to use the new types.
  • Added getRpcMethodUsage and isProjectActive functions in @/api/analytics.
  • Modified components to include new charts and analytics features, such as RpcMethodBarChartCard.

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

@linear
Copy link

linear bot commented Nov 23, 2024

@vercel
Copy link

vercel bot commented Nov 23, 2024

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 Nov 24, 2024 11:16pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Nov 24, 2024 11:16pm
thirdweb_playground ⬜️ Skipped (Inspect) Nov 24, 2024 11:16pm
wallet-ui ⬜️ Skipped (Inspect) Nov 24, 2024 11:16pm

@changeset-bot
Copy link

changeset-bot bot commented Nov 23, 2024

⚠️ No Changeset found

Latest commit: dfc824d

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

@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 23, 2024

Your org has enabled the Graphite merge queue for merging into main

Add the label “merge-queue” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. Or use the label “hotfix” to add to the merge queue as a hot fix.

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

@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Nov 23, 2024
@codecov
Copy link

codecov bot commented Nov 23, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.81%. Comparing base (7dd4298) to head (dfc824d).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5504   +/-   ##
=======================================
  Coverage   43.81%   43.81%           
=======================================
  Files        1075     1075           
  Lines       55991    55991           
  Branches     3908     3908           
=======================================
  Hits        24534    24534           
  Misses      30774    30774           
  Partials      683      683           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 7dd4298
packages 38.54% <ø> (ø)

*This pull request uses carry forward flags. Click here to find out more.

---- 🚨 Try these New Features:

@github-actions
Copy link
Contributor

github-actions bot commented Nov 23, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.97 KB (0%) 900 ms (0%) 464 ms (+54.97% 🔺) 1.4 s
thirdweb (cjs) 105.01 KB (0%) 2.2 s (0%) 760 ms (+28.14% 🔺) 2.9 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 113 ms (0%) 186 ms (+634.82% 🔺) 298 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 29 ms (+493.39% 🔺) 39 ms
thirdweb/react (minimal + tree-shaking) 18.38 KB (0%) 368 ms (0%) 111 ms (+94.56% 🔺) 478 ms

Copy link
Contributor Author

gregfromstl commented Nov 23, 2024

Merge activity

  • Nov 23, 1:44 PM EST: The merge label 'merge-queue' was detected. This PR will be added to the Graphite merge queue once it meets the requirements.
  • Nov 24, 6:11 PM EST: A user added this pull request to the Graphite merge queue.
  • Nov 24, 6:16 PM EST: A user merged this pull request with the Graphite merge queue.

CNCT-2395

<img width="1161" alt="Screenshot 2024-11-22 at 9 52 09 PM" src="https://github.com/user-attachments/assets/e46f1645-11bb-42d5-abcf-147852a3e8ce">

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on refactoring the analytics data handling by shifting the source of types from the `@/api/analytics` module to a new `types/analytics` module. This change enhances type definitions and improves code organization.

### Detailed summary
- Changed import paths for various analytics types to `types/analytics`.
- Added new interfaces in `apps/dashboard/src/types/analytics.ts` for `WalletStats`, `WalletUserStats`, `InAppWalletStats`, `EcosystemWalletStats`, `UserOpStats`, `RpcMethodStats`, and `AnalyticsQueryParams`.
- Updated multiple components and utilities to utilize the new type definitions.
- Implemented a new RPC method usage function in `apps/dashboard/src/@/api/analytics.ts`.
- Added `RpcMethodBarChartCard` component to visualize RPC method usage in `apps/dashboard/src/app/team/[team_slug]/[project_slug]/page.tsx`.

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

<!-- end pr-codex -->
@gregfromstl gregfromstl force-pushed the greg/cnct-2395-rpc-analytics-charts branch from 20b68b4 to dfc824d Compare November 24, 2024 23:12
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 24, 2024 23:12 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 24, 2024 23:12 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 24, 2024 23:12 Inactive
@graphite-app graphite-app bot merged commit dfc824d into main Nov 24, 2024
31 checks passed
@graphite-app graphite-app bot deleted the greg/cnct-2395-rpc-analytics-charts branch November 24, 2024 23:16
@vercel vercel bot temporarily deployed to Production – wallet-ui November 24, 2024 23:16 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground November 24, 2024 23:16 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 November 24, 2024 23:16 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. merge-queue Adds the pull request to Graphite's merge queue.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants