-
Notifications
You must be signed in to change notification settings - Fork 571
[Dashboard] Fix: Display latest value in PayNewCustomers component #7002
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. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7002 +/- ##
=======================================
Coverage 54.60% 54.60%
=======================================
Files 903 903
Lines 57936 57936
Branches 3971 3971
=======================================
Hits 31638 31638
Misses 26197 26197
Partials 101 101
🚀 New features to boost your workflow:
|
size-limit report 📦
|
Merge activity
|
…7002) 🤖 Generated with [Claude Code](https://claude.ai/code) <!-- ## title your PR with this format: "[SDK/Dashboard/Portal] Feature/Fix: Concise title for the changes" If you did not copy the branch name from Linear, paste the issue tag here (format is TEAM-0000): ## Notes for the reviewer Anything important to call out? Be sure to also clarify these in your comments. ## How to test Unit tests, playground, etc. --> <!-- start pr-codex --> --- ## PR-Codex overview This PR focuses on improving the logic used to display the total value in the `SkeletonContainer` of the `PayNewCustomers` component. It ensures that when `graphData` is empty, it returns "NA", and otherwise, it retrieves the last value or defaults to 0. ### Detailed summary - Updated the logic in `SkeletonContainer`: - Changed the expression to return `graphData[graphData.length - 1]?.value || 0` when `graphData` is not empty. - Maintained the output of "NA" when `isEmpty` is true. > ✨ Ask PR-Codex anything about this PR by commenting with `/codex {your question}` <!-- end pr-codex -->
f1cddd6
to
816aa61
Compare
🤖 Generated with Claude Code
PR-Codex overview
This PR updates the logic for displaying the total value of new customers in the
PayNewCustomers
component. It changes how the value is computed when thegraphData
is empty or when accessing the latest value.Detailed summary
loadedData
prop in theSkeletonContainer
.curr.value
to retrieving the last value ingraphData
or returning0
if not available.graphData
is empty by displaying "NA".