Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Jan 22, 2025

PR-Codex overview

This PR updates the TeamProjectsPage and related functions to replace the handling of total connections with analytics for monthly active users. It introduces pagination and modifies sorting and data retrieval to enhance project analytics.

Detailed summary

  • Added subDays import for date manipulation.
  • Changed function getProjectsWithTotalWallets to getProjectsWithAnalytics.
  • Updated return type to use ProjectWithAnalytics.
  • Replaced totalConnections with monthlyActiveUsers in project data.
  • Implemented pagination for project display.
  • Updated sorting logic to sort by monthlyActiveUsers.
  • Modified UI to reflect new data structure and pagination.

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

@linear
Copy link

linear bot commented Jan 22, 2025

@vercel vercel bot temporarily deployed to Preview – docs-v2 January 22, 2025 18:03 Inactive
@vercel
Copy link

vercel bot commented Jan 22, 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 Jan 23, 2025 0:12am
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Jan 23, 2025 0:12am
thirdweb_playground ⬜️ Skipped (Inspect) Jan 23, 2025 0:12am
wallet-ui ⬜️ Skipped (Inspect) Jan 23, 2025 0:12am

@changeset-bot
Copy link

changeset-bot bot commented Jan 22, 2025

⚠️ No Changeset found

Latest commit: e35dbfd

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

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground January 22, 2025 18:03 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui January 22, 2025 18:03 Inactive
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Jan 22, 2025
@MananTank MananTank marked this pull request as ready for review January 22, 2025 18:03
@MananTank MananTank requested review from a team as code owners January 22, 2025 18:03
Copy link
Member Author

MananTank commented Jan 22, 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-3124] Dashboard: Show 8 top projects, Add show more button for full list [TOOL-3124] Dashboard: Show limited top projects, Add show more button for full list Jan 22, 2025
@codecov
Copy link

codecov bot commented Jan 22, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 54.89%. Comparing base (9f79277) to head (ace1dc5).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #6027   +/-   ##
=======================================
  Coverage   54.89%   54.89%           
=======================================
  Files        1151     1151           
  Lines       61210    61210           
  Branches     5167     5167           
=======================================
  Hits        33600    33600           
  Misses      26882    26882           
  Partials      728      728           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 9f79277
packages 52.56% <ø> (ø)

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

@github-actions
Copy link
Contributor

github-actions bot commented Jan 22, 2025

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 46.71 KB (0%) 935 ms (0%) 765 ms (+42.39% 🔺) 1.7 s
thirdweb (cjs) 116.78 KB (0%) 2.4 s (0%) 1.2 s (-1.45% 🔽) 3.5 s
thirdweb (minimal + tree-shaking) 5.59 KB (0%) 112 ms (0%) 103 ms (+131.27% 🔺) 214 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 18 ms (-37.6% 🔽) 28 ms
thirdweb/react (minimal + tree-shaking) 19.22 KB (0%) 385 ms (0%) 252 ms (+227.64% 🔺) 637 ms

@MananTank MananTank force-pushed the 01-22-_tool-3124_dashboard_show_8_top_projects_add_show_more_button_for_full_list branch from c2d1ac2 to 3e02c99 Compare January 22, 2025 18:34
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground January 22, 2025 18:34 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 22, 2025 18:34 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui January 22, 2025 18:34 Inactive
@MananTank MananTank changed the base branch from TOOL-3123 to graphite-base/6027 January 22, 2025 23:30
@MananTank MananTank force-pushed the 01-22-_tool-3124_dashboard_show_8_top_projects_add_show_more_button_for_full_list branch from 3e02c99 to 1ca62ac Compare January 22, 2025 23:44
@MananTank MananTank changed the base branch from graphite-base/6027 to main January 22, 2025 23:44
@vercel vercel bot temporarily deployed to Preview – wallet-ui January 22, 2025 23:44 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 22, 2025 23:44 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground January 22, 2025 23:44 Inactive
@MananTank MananTank force-pushed the 01-22-_tool-3124_dashboard_show_8_top_projects_add_show_more_button_for_full_list branch from 1ca62ac to 1b02a89 Compare January 23, 2025 11:24
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground January 23, 2025 11:24 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui January 23, 2025 11:24 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 23, 2025 11:24 Inactive
@MananTank MananTank changed the title [TOOL-3124] Dashboard: Show limited top projects, Add show more button for full list [TOOL-3124] Dashboard: Show limited top projects, sort by Montly active users Jan 23, 2025
@MananTank MananTank force-pushed the 01-22-_tool-3124_dashboard_show_8_top_projects_add_show_more_button_for_full_list branch from 1b02a89 to e35dbfd Compare January 23, 2025 11:34
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 23, 2025 11:34 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui January 23, 2025 11:34 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground January 23, 2025 11:34 Inactive
@MananTank MananTank changed the title [TOOL-3124] Dashboard: Show limited top projects, sort by Montly active users [TOOL-3124] Dashboard: paginate projects, sort by Montly active users Jan 23, 2025
@graphite-app
Copy link
Contributor

graphite-app bot commented Jan 23, 2025

Merge activity

…#6027)

<!-- start pr-codex -->

## PR-Codex overview
This PR focuses on enhancing the project analytics in the dashboard by changing how project data is retrieved and displayed. It updates the calculation of user connections to reflect monthly active users and introduces pagination for project listings.

### Detailed summary
- Replaced `getProjectsWithTotalWallets` with `getProjectsWithAnalytics`.
- Updated project data structure to include `monthlyActiveUsers` instead of `totalConnections`.
- Introduced pagination in the `TeamProjectsPage` component.
- Changed sorting criteria from `totalConnections` to `monthlyActiveUsers`.
- Updated UI elements to reflect the new data fields.

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

<!-- end pr-codex -->
@MananTank MananTank force-pushed the 01-22-_tool-3124_dashboard_show_8_top_projects_add_show_more_button_for_full_list branch from e35dbfd to ace1dc5 Compare January 23, 2025 12:10
@vercel vercel bot temporarily deployed to Preview – docs-v2 January 23, 2025 12:10 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui January 23, 2025 12:10 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground January 23, 2025 12:10 Inactive
@graphite-app graphite-app bot merged commit ace1dc5 into main Jan 23, 2025
31 checks passed
@graphite-app graphite-app bot deleted the 01-22-_tool-3124_dashboard_show_8_top_projects_add_show_more_button_for_full_list branch January 23, 2025 12:13
@vercel vercel bot temporarily deployed to Production – wallet-ui January 23, 2025 12:13 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 January 23, 2025 12:13 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground January 23, 2025 12:13 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.

4 participants