Skip to content

Conversation

@gregfromstl
Copy link
Contributor

@gregfromstl gregfromstl commented Nov 7, 2024

CNCT-2282


PR-Codex overview

This PR focuses on refactoring various components in the dashboard application, improving the handling of analytics, and enhancing the UI elements like charts and tooltips. Additionally, it removes some unused components and optimizes data fetching.

Detailed summary

  • Removed ConnectSDKCard.tsx and ConnectAnalyticsDashboard.tsx.
  • Updated the CombinedBarChartCard to include prefetch functionality.
  • Enhanced PieChartCard to map over items for better data handling.
  • Adjusted BarChart tooltip width from 150px to 200px.
  • Added valueFormatter to ChartTooltipContent.
  • Redirects in page.tsx instead of rendering ConnectAnalyticsDashboard.
  • Introduced local state management in RangeSelector for range and interval.
  • Prefetching analytics data for different intervals in RangeSelector.
  • Removed unused functions related to wallet usage in useApi.ts.
  • Updated user metrics calculations in UsersChartCard.
  • Streamlined data mapping in WalletDistributionCard and AuthMethodDistributionCard.

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

@linear
Copy link

linear bot commented Nov 7, 2024

CNCT-2282 Cleanup UI

@vercel
Copy link

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

@changeset-bot
Copy link

changeset-bot bot commented Nov 7, 2024

⚠️ No Changeset found

Latest commit: d34357e

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 7, 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 7, 2024
@gregfromstl gregfromstl added the merge-queue Adds the pull request to Graphite's merge queue. label Nov 7, 2024
@gregfromstl gregfromstl self-assigned this Nov 7, 2024
Copy link
Contributor Author

gregfromstl commented Nov 7, 2024

Merge activity

  • Nov 7, 3:06 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 7, 3:24 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 7, 3:31 PM EST: Graphite disabled "merge when ready" on this PR due to: a merge conflict with the target branch; resolve the conflict and try again..
  • Nov 7, 3:31 PM EST: @graphite-app we removed the merge queue label because we could not find a Graphite account associated with your GitHub profile.

You must have a Graphite account in order to use the merge queue. Create an account and try again using this link

  • Nov 7, 7:11 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 7, 7:11 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 7, 7:31 PM EST: A user added this pull request to the Graphite merge queue.
  • Nov 7, 7:35 PM EST: A user merged this pull request with the Graphite merge queue.

@codecov
Copy link

codecov bot commented Nov 7, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.76%. Comparing base (03ce881) to head (d34357e).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #5344   +/-   ##
=======================================
  Coverage   45.76%   45.76%           
=======================================
  Files        1069     1069           
  Lines       55606    55606           
  Branches     4074     4074           
=======================================
  Hits        25446    25446           
  Misses      29471    29471           
  Partials      689      689           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from 03ce881
packages 40.91% <ø> (ø)

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

@github-actions
Copy link
Contributor

github-actions bot commented Nov 7, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 43 KB (0%) 861 ms (0%) 2.5 s (-34.16% 🔽) 3.3 s
thirdweb (cjs) 103.05 KB (0%) 2.1 s (0%) 4.5 s (-36.95% 🔽) 6.5 s
thirdweb (minimal + tree-shaking) 4.85 KB (0%) 97 ms (0%) 401 ms (+133.77% 🔺) 498 ms
thirdweb/chains (tree-shaking) 506 B (0%) 10 ms (0%) 43 ms (+2.71% 🔺) 53 ms
thirdweb/react (minimal + tree-shaking) 17.56 KB (0%) 352 ms (0%) 638 ms (+15.25% 🔺) 989 ms

CNCT-2282

<!-- start pr-codex -->

---

## PR-Codex overview
This PR primarily focuses on refactoring components related to analytics and charts in the dashboard, removing unused components, improving data handling, and enhancing UI elements for better responsiveness and clarity.

### Detailed summary
- Deleted `ConnectSDKCard.tsx` and `ConnectAnalyticsDashboard.tsx` files.
- Removed the `Analytics` link from the sidebar.
- Enhanced `PieChartCard` and `BarChart` components with better data mapping and UI adjustments.
- Updated `RangeSelector` to handle local state for range and interval.
- Removed unused API functions related to wallet usage.
- Improved data filtering logic in `WalletDistributionCard` and `AuthMethodDistributionCard`.
- Adjusted image rendering for better layout consistency in charts.

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

<!-- end pr-codex -->
@gregfromstl gregfromstl force-pushed the greg/cnct-2282-cleanup-ui branch from 44f2216 to d34357e Compare November 8, 2024 00:32
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground November 8, 2024 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 November 8, 2024 00:32 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui November 8, 2024 00:32 Inactive
@graphite-app graphite-app bot merged commit d34357e into main Nov 8, 2024
31 checks passed
@graphite-app graphite-app bot deleted the greg/cnct-2282-cleanup-ui branch November 8, 2024 00:35
@vercel vercel bot temporarily deployed to Production – thirdweb_playground November 8, 2024 00:35 Inactive
@vercel vercel bot temporarily deployed to Production – docs-v2 November 8, 2024 00:35 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui November 8, 2024 00:35 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