-
Notifications
You must be signed in to change notification settings - Fork 293
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
Format numbers in Key Metric Widget tiles #7190
Comments
@jimmymadon the format specified by the AC is locale-specific. The number should simply be properly formatted according to the locale, just like any other number. |
@aaemnnosttv Updated the AC slightly here and moved it to ACR. |
Thanks @jimmymadon – are there any other widget tiles that are in process which could need the same fix here or does it only affect these two? Also are there any that are in the EB that could use a note added to avoid missing this again? |
@aaemnnosttv Thanks - I've added a note on #6247 for @eugene-manuilov as that issue is in CR and added a note in the ACs/IB for #6249. Those are the only two Key Metric widget tile issues which have numbers that are not percentages. We do end up formatting all percentages anyways so those should be fine. |
Thanks @jimmymadon – for the AC I think we can word them in a way that is not specific to these two tiles. This essentially applies to all "secondary" numbers in KMW tiles (those aside from metric and change).
Most other numbers in the plugin are formatted using I'll update this to move it forward for the sake of time 👍 |
IB ✅ Since this has a PR ready I'll review it as well, so moving this right to CR 🙂 |
Feature Description
Larger numbers for total figures in all currently implemented KMW tiles should be formatted as per the Figma mock below.
Expected:
Actual:
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
1234
inen-US
:1,234
)metric
type and generally use the appropriate formatting options to match the design (e.g. integers shouldn't end in.0
, etc)Implementation Brief
numFmt
with the decimal style to format totals in both the widgets mentioned in the AC.Test Coverage
QA Brief
New Visitors
andLoyal Visitors
widgets, show the formatted number strings. Storybook stories don't have high enough numbers to test this formatting.Changelog entry
The text was updated successfully, but these errors were encountered: