woocommerce/plugins/woocommerce-admin/client/analytics/components
Eason 6d17019827
Fix the inconsistent formatting of the numeric columns in the Leaderboards on the Analytics > Dashboard page (#49097)
* Add the `format` property to the items of the `rows` array in Analytics' Leaderboards API response to indicate how it's formatted.

* Make the `Leaderboard` component within Analytics aware of the currency context and format the numeric columns accordingly.

* Avoid a warning from the test of `Leaderboard` component when running JS tests.

File: client/analytics/components/leaderboard/test/index.js
Ref: https://github.com/woocommerce/woocommerce/blob/9.0.2/packages/js/components/src/pagination/pagination.tsx#L44

* Apply better practice to the test of `Leaderboard` component.

File: client/analytics/components/leaderboard/test/index.js

* Add changelog.

* Make the `Leaderboard` component not create a new function for every `row` rendering.

Address: https://github.com/woocommerce/woocommerce/pull/49097#discussion_r1667009910
2024-07-08 11:15:12 +08:00
..
leaderboard Fix the inconsistent formatting of the numeric columns in the Leaderboards on the Analytics > Dashboard page (#49097) 2024-07-08 11:15:12 +08:00
report-chart Fix analytics chart previous year data when date range includes 29 Feb (#45874) 2024-05-30 12:54:00 +08:00
report-error Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
report-filters Add tests to tracks events fired through JS (#38124) 2023-05-10 09:36:42 -03:00
report-summary Moving currencyContext to currency package and updating references (#36959) 2023-02-28 08:55:49 -08:00
report-table Stylelint: Update config to double quotes (#45607) 2024-03-26 10:41:34 -03:00
index.js Align WooCommerce javascript code standards/linting/styles with WordPress core. (https://github.com/woocommerce/woocommerce-admin/pull/3674) 2020-02-14 15:23:21 +13:00