Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Nov 20, 2024

Move the chart data fetching inside suspense boundary with loading fallback to speed up page load


PR-Codex overview

This PR focuses on improving the layout and structure of various components in the dashboard, enhancing the user interface and experience. It also introduces a loading state and refines the handling of search parameters in the TeamOverviewPage.

Detailed summary

  • Updated the range-selector layout for better spacing.
  • Expanded the EmptyState section to use full width.
  • Adjusted AnalyticsHeader styles and title size.
  • Introduced GenericLoadingPage for loading states.
  • Enhanced TeamOverviewPage to handle search parameters as promises.
  • Refactored content layout in TeamOverviewPage for better organization and readability.

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

@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 20, 2024 20:51 Inactive
@vercel
Copy link

vercel bot commented Nov 20, 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 20, 2024 10:38pm
3 Skipped Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Skipped (Inspect) Nov 20, 2024 10:38pm
thirdweb_playground ⬜️ Skipped (Inspect) Nov 20, 2024 10:38pm
wallet-ui ⬜️ Skipped (Inspect) Nov 20, 2024 10:38pm

@vercel vercel bot temporarily deployed to Preview – wallet-ui November 20, 2024 20:51 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 20, 2024 20:51 Inactive
@changeset-bot
Copy link

changeset-bot bot commented Nov 20, 2024

⚠️ No Changeset found

Latest commit: 642e3d8

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 20, 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.

@MananTank MananTank marked this pull request as ready for review November 20, 2024 20:51
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Nov 20, 2024
Copy link
Member Author

MananTank commented Nov 20, 2024

This stack of pull requests is managed by Graphite. Learn more about stacking.

@codecov
Copy link

codecov bot commented Nov 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 43.88%. Comparing base (a67e980) to head (b52049c).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5475   +/-   ##
=======================================
  Coverage   43.88%   43.88%           
=======================================
  Files        1075     1075           
  Lines       55944    55944           
  Branches     3910     3910           
=======================================
  Hits        24550    24550           
  Misses      30711    30711           
  Partials      683      683           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from a67e980
packages 38.61% <ø> (ø)

*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 20, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 44.97 KB (0%) 900 ms (0%) 2.9 s (+2.11% 🔺) 3.8 s
thirdweb (cjs) 105.01 KB (0%) 2.2 s (0%) 4.4 s (-16.25% 🔽) 6.5 s
thirdweb (minimal + tree-shaking) 5.6 KB (0%) 113 ms (0%) 363 ms (+101.86% 🔺) 475 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 94 ms (+136.29% 🔺) 104 ms
thirdweb/react (minimal + tree-shaking) 18.38 KB (0%) 368 ms (0%) 562 ms (+27.24% 🔺) 929 ms

@MananTank MananTank force-pushed the 11-21-improve_team_overview_page_load_perf_ui_adjustments branch from 5006115 to 642e3d8 Compare November 20, 2024 20:57
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 20, 2024 20:58 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 20, 2024 20:58 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 20, 2024 20:58 Inactive
@MananTank MananTank changed the title Improve team overview page load perf + UI adjustments [Dashboard] Improve team overview page load perf + UI adjustments Nov 20, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Nov 20, 2024

Merge activity

)

Move the chart data fetching inside suspense boundary with loading fallback to speed up page load

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on improving the layout and structure of several components in the dashboard, enhancing the user interface by adjusting styles and adding new features like loading states. It also refines the `TeamOverviewPage` to better handle data and display.

### Detailed summary
- Updated styles in `range-selector.tsx` for improved layout.
- Added `w-full` class in `EmptyState.tsx` for full-width section.
- Adjusted gap sizes in `AnalyticsHeader.tsx`.
- Modified `TeamOverviewPage` to include a loading state using `Suspense`.
- Introduced `OverviewPageContent` function to manage content rendering.
- Enhanced conditionals to simplify rendering logic in `TeamOverviewPage`.

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

<!-- end pr-codex -->
@jnsdls jnsdls force-pushed the 11-21-improve_team_overview_page_load_perf_ui_adjustments branch from 642e3d8 to b52049c Compare November 20, 2024 22:29
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 20, 2024 22:29 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 20, 2024 22:29 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 20, 2024 22:29 Inactive
@graphite-app graphite-app bot merged commit b52049c into main Nov 20, 2024
32 checks passed
@graphite-app graphite-app bot deleted the 11-21-improve_team_overview_page_load_perf_ui_adjustments branch November 20, 2024 22:38
@vercel vercel bot temporarily deployed to Production – wallet-ui November 20, 2024 22:39 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.

3 participants