Skip to content

Conversation

@MananTank
Copy link
Member

@MananTank MananTank commented Oct 10, 2024

Problem solved

Short description of the bug fixed or feature added


PR-Codex overview

This PR focuses on enhancing the PayAnalytics and ConnectAnalyticsDashboard components by improving date handling and adding new date range selection features.

Detailed summary

  • Added subDays import from date-fns for date calculations.
  • Refactored getLastNDaysRange to use subDays for calculating past dates.
  • Updated Filters component to include a header with a Select for date presets.
  • Introduced DateRangeSelector and IntervalSelector components in ConnectAnalyticsDashboard.
  • Implemented state management for date ranges and interval types in ConnectAnalyticsDashboard.

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

@vercel
Copy link

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

@changeset-bot
Copy link

changeset-bot bot commented Oct 10, 2024

⚠️ No Changeset found

Latest commit: d7e34f2

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 – wallet-ui October 10, 2024 17:48 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 10, 2024 17:48 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 10, 2024 17:48 Inactive
@github-actions github-actions bot added the Dashboard Involves changes to the Dashboard. label Oct 10, 2024
Copy link
Member Author

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

Join @MananTank and the rest of your teammates on Graphite Graphite

@MananTank MananTank changed the title Add Date Range Selector for Connect Analaytics Add Date Range Selector on Connect Analytics page Oct 10, 2024
@MananTank MananTank marked this pull request as ready for review October 10, 2024 17:49
@codecov
Copy link

codecov bot commented Oct 10, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 47.74%. Comparing base (e06cc9b) to head (d7e34f2).
Report is 1 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #4988   +/-   ##
=======================================
  Coverage   47.74%   47.74%           
=======================================
  Files        1059     1059           
  Lines       57328    57328           
  Branches     3944     3944           
=======================================
  Hits        27369    27369           
  Misses      29268    29268           
  Partials      691      691           
Flag Coverage Δ *Carryforward flag
legacy_packages 65.68% <ø> (ø) Carriedforward from e06cc9b
packages 43.53% <ø> (ø)

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

@github-actions
Copy link
Contributor

github-actions bot commented Oct 10, 2024

size-limit report 📦

Path Size Loading time (3g) Running time (snapdragon) Total time
thirdweb (esm) 42.07 KB (0%) 842 ms (0%) 335 ms (+17.81% 🔺) 1.2 s
thirdweb (cjs) 101.87 KB (0%) 2.1 s (0%) 733 ms (+9.65% 🔺) 2.8 s
thirdweb (minimal + tree-shaking) 4.84 KB (0%) 97 ms (0%) 15 ms (-61.6% 🔽) 112 ms
thirdweb/chains (tree-shaking) 498 B (0%) 10 ms (0%) 6 ms (+8.8% 🔺) 16 ms
thirdweb/react (minimal + tree-shaking) 17.24 KB (0%) 345 ms (0%) 172 ms (+63.35% 🔺) 516 ms

@MananTank MananTank force-pushed the 10-10-add_date_range_selector_for_connect_analaytics branch from 0fd4f70 to ebeb42f Compare October 10, 2024 18:06
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 10, 2024 18:06 Inactive
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 10, 2024 18:06 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 10, 2024 18:06 Inactive
@MananTank MananTank requested a review from jnsdls October 10, 2024 18:07
@MananTank MananTank force-pushed the 10-10-add_date_range_selector_for_connect_analaytics branch from ebeb42f to ef393ad Compare October 10, 2024 18:25
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 10, 2024 18:25 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 10, 2024 18:25 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 10, 2024 18:25 Inactive
@MananTank MananTank changed the title Add Date Range Selector on Connect Analytics page Add Date Range and Interval Selector on Connect Analytics page Oct 10, 2024
@graphite-app
Copy link
Contributor

graphite-app bot commented Oct 10, 2024

Merge activity

## Problem solved

Short description of the bug fixed or feature added

<!-- start pr-codex -->

---

## PR-Codex overview
This PR focuses on enhancing the date range selection functionality in the `PayAnalytics` and `ConnectAnalyticsDashboard` components by incorporating the `subDays` function and restructuring the date range handling.

### Detailed summary
- Added `subDays` import from `date-fns` for date calculations.
- Refactored `getLastNDaysRange` to use `subDays` for calculating past dates.
- Moved and restructured the `presets` rendering logic in `Filters` for clarity.
- Introduced `DateRangeSelector` and `IntervalSelector` components in `ConnectAnalyticsDashboard`.
- Replaced `useMemo` with `useState` for managing date ranges in `ConnectAnalyticsDashboard`.
- Simplified date range handling and interval type selection.

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

<!-- end pr-codex -->
@MananTank MananTank force-pushed the 10-10-add_date_range_selector_for_connect_analaytics branch from ef393ad to d7e34f2 Compare October 10, 2024 18:37
@vercel vercel bot temporarily deployed to Preview – thirdweb_playground October 10, 2024 18:37 Inactive
@vercel vercel bot temporarily deployed to Preview – wallet-ui October 10, 2024 18:37 Inactive
@vercel vercel bot temporarily deployed to Preview – docs-v2 October 10, 2024 18:37 Inactive
@graphite-app graphite-app bot merged commit d7e34f2 into main Oct 10, 2024
30 checks passed
@graphite-app graphite-app bot deleted the 10-10-add_date_range_selector_for_connect_analaytics branch October 10, 2024 18:41
@vercel vercel bot temporarily deployed to Production – docs-v2 October 10, 2024 18:41 Inactive
@vercel vercel bot temporarily deployed to Production – thirdweb_playground October 10, 2024 18:41 Inactive
@vercel vercel bot temporarily deployed to Production – wallet-ui October 10, 2024 18:41 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