woocommerce/plugins/woocommerce-admin/client
Nathan Silveira 9d7e503519
Add date sorting configuration for Analytics (#36492)
* Include fields date_paid and date_completed to wp_wc_order_stats

TODO: add script to create new columns in the database

* Add update script and new columns in get_schema

* Add new configuration in Analytics > Settings to configure type of date used in Revenue report

* Change date_column_name to date_paid

TODO: This will be configurable in future

* Add date type config field

* Use customizable date field in DataStore

* Change label

* Fix linter errors

* Remove blank line

* Put default column name back to date_created

* Make date_paid and date_completed nullable to help with unit tests

* Remove new table creation in update function and use query method instead of get_var

* Extend stats constructor

* Improve date type configuration description

* Set date column name default to date_created to test if build passes

* Fix phpcs issue on constructor

* Remove cache bypass added by mistake

* Improve changelog

* Fill date_paid and date_completed for refunds to avoid problems whem they are being used to sort
Fix unit tests when date_paid or date_completed are being used as sort date

* Change default to date_created

* Bump update script to 7.5.0

* Add prefix and postmeta variables for script
2023-02-17 10:29:36 -03:00
..
activity-panel Adding delayed spotlight to feedback button on current product page (#35865) 2022-12-15 16:09:21 -08:00
analytics Add date sorting configuration for Analytics (#36492) 2023-02-17 10:29:36 -03:00
customer-effort-score-tracks Fixing issue preventing import productes CES exit page from firing (#36656) 2023-01-27 12:14:59 -08:00
dashboard Update country select control regex (#36159) 2022-12-22 21:30:50 -08:00
embedded-body-layout CES exit prompt for product editing screens (#35728) 2022-12-12 09:56:28 -04:00
guided-tours Adding delayed spotlight to feedback button on current product page (#35865) 2022-12-15 16:09:21 -08:00
header Fix overlapping header elements on product page (#36495) 2023-01-23 10:14:58 -08:00
homescreen add: slot for header banner slotfill (#36467) 2023-01-20 22:01:20 +08:00
hooks Allow product tab navigation without prompting for unsaved changes (#36235) 2023-01-05 18:30:36 -08:00
inbox-panel Fix unread notes count in inbox panel (#35396) 2022-11-23 08:52:46 -08:00
layout Add product variation flag to hide WIP (#36311) 2023-01-05 18:30:23 -08:00
lib Update linting, testing, `@types/*` dependencies (https://github.com/woocommerce/woocommerce-admin/pull/8475) 2022-03-18 19:45:14 +08:00
marketing Add SlotFill for marketing overview screen (#36828) 2023-02-17 09:46:52 +08:00
mobile-banner Fix JS lint errors (#33484) 2022-06-21 16:37:34 +08:00
navigation Set up i18n-text-domain rule and fix missing text domain (#33780) 2022-07-08 18:37:30 +08:00
payments Deploy payments banner in settings page (#34326) 2022-08-17 11:33:24 +08:00
payments-welcome WCPay Experiment: Create an Inbox Note if user wants more info on WCPay (#35581) 2022-11-16 13:22:16 +00:00
products Remove variations logic from the AttributeControl component (#36563) 2023-02-02 13:04:32 -08:00
profile-wizard Fix "Save changes?" modal saves the options after selecting the 'Discard' option (#36160) 2022-12-28 16:23:16 +08:00
settings Add Missing Tracks Events to Tax Settings Conflict Warning (#36042) 2022-12-16 16:57:09 +08:00
settings-recommendations Fix JS lint errors (#33484) 2022-06-21 16:37:34 +08:00
shipping Fix "1 of 2 steps" is shown for the first step in a 3 step tour (#34413) 2022-08-29 17:25:24 +08:00
store-management-links Codemod to change i18n text domain from 'woocommerce-admin' to 'woocommerce' in WCA Client 2022-04-01 11:41:32 +08:00
stylesheets Fix the display of letter descenders in the shipping class dropdown menu (#35258) 2022-10-25 17:28:37 -03:00
task-lists Add slot for ProgressHeader and ProgressTitle (#36482) 2023-01-19 13:21:54 -08:00
tasks Have "Grow your store" appear first in marketing task by default (#36826) 2023-02-17 11:28:20 +08:00
two-column-tasks Add SlotFill for Task List Footer (#36527) 2023-01-23 13:48:42 +08:00
typings Add product variation flag to hide WIP (#36311) 2023-01-05 18:30:23 -08:00
utils Add/35126 ces exit prompt orders (#35762) 2022-12-15 15:50:34 -04:00
wp-admin-scripts Adding ces exit prompt when product importer abandoned (#35996) 2022-12-15 13:18:35 -08:00
index.js Enhancement: Tax settings conflict warning (#36010) 2022-12-15 21:04:28 +08:00
jest.config.js Prefixed Private JS Packages (#33218) 2022-05-31 15:42:00 -07:00
tsconfig.test.json Update admin tsconfig to isolated from other projects 2022-04-15 13:50:18 +08:00