-
Notifications
You must be signed in to change notification settings - Fork 544
[TOOL-2821] Improve performance of snapshot viewer component + fix date not shown in phases #5824
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
|
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
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. |
New dependencies detected. Learn more about Socket for GitHub ↗︎
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #5824 +/- ##
=======================================
Coverage 53.34% 53.34%
=======================================
Files 1101 1101
Lines 59124 59124
Branches 4825 4825
=======================================
Hits 31541 31541
Misses 26864 26864
Partials 719 719
*This pull request uses carry forward flags. Click here to find out more. |
size-limit report 📦
|
Merge activity
|
…te not shown in phases (#5824) ## Problem solved Short description of the bug fixed or feature added <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on enhancing the `date-utils` and `claim-conditions` components, updating the handling of date types, and refactoring the `SnapshotUpload` component to improve data processing and user experience. It also introduces a new dependency, `p-limit`, for better concurrency control. ### Detailed summary - Updated `toDateTimeLocal` function to handle `Date` instances directly. - Replaced `SnapshotUpload` with `SnapshotViewerSheet` in `claim-conditions-form`. - Enhanced `AirdropUpload` to show a loading spinner when data is being normalized. - Refactored `useCsvUpload` to use `useQuery` instead of `useQueries`. - Improved error handling and data validation in `SnapshotUpload`. - Added new dependency `p-limit` for managing concurrent requests. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
370aa0a
to
243c497
Compare
Problem solved
Short description of the bug fixed or feature added
PR-Codex overview
This PR focuses on enhancing the
date-utils
function, updating component imports, and improving theSnapshotUpload
andAirdropUpload
components for better handling of data and user interactions.Detailed summary
toDateTimeLocal
function to check forDate
instance.SnapshotUpload
withSnapshotViewerSheet
in theClaimConditionsForm
.AirdropUpload
with loading state handling.useCsvUpload
to useuseQuery
instead ofuseQueries
.Spinner
for loading states inSnapshotUpload
.SnapshotUpload
andAirdropUpload
components.