-
Notifications
You must be signed in to change notification settings - Fork 544
Fix: Trend badge formatting #7007
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. |
Merge activity
|
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #7007 +/- ##
=======================================
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 📦
|
PR-Codex overview
This PR focuses on updating the calculation of percentage changes and formatting for better clarity in the
Payouts
,common
, andPayNewCustomers
components.Detailed summary
Payouts.tsx
, updated the trend calculation to handle cases wherelastPeriod.value
is0
, returning100
instead of performing division.common.tsx
, replaced the display ofpercentValue
with a formatted string usingIntl.NumberFormat
to show percentage without decimal places.PayNewCustomers.tsx
, similar trend calculation adjustment as inPayouts.tsx
to improve handling of zero values.