woocommerce/plugins/woocommerce-admin
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
..
bin Update woocommerce admin scripts to align more with turborepo (#33982) 2022-07-22 08:32:03 -03:00
client Add date sorting configuration for Analytics (#36492) 2023-02-17 10:29:36 -03:00
docs Rename @woocommerce/admin-library (#33460) 2022-06-17 13:28:34 -07:00
.browserslistrc Add CSS autoprefixer (https://github.com/woocommerce/woocommerce-admin/pull/244) 2018-07-30 10:05:22 -04:00
.distignore Create E2E package (https://github.com/woocommerce/woocommerce-admin/pull/7084) 2021-07-13 16:38:05 -03:00
.eslintignore Ignore core js packages from woo admin's eslint 2022-03-29 16:07:09 +08:00
.eslintrc.js Update woocommerce-admin/.eslintrc.js 2022-03-29 16:08:07 +08:00
.gitattributes Switch to pnpm (https://github.com/woocommerce/woocommerce-admin/pull/8349) 2022-03-04 12:01:16 +08:00
.gitignore Enable Typescript checking on ./client folder (https://github.com/woocommerce/woocommerce-admin/pull/8372) 2022-03-01 12:19:07 +08:00
.npmrc Switch to pnpm (https://github.com/woocommerce/woocommerce-admin/pull/8349) 2022-03-04 12:01:16 +08:00
.prettierrc.js Update @wordpress/eslint-plugin dependency to latest version. (https://github.com/woocommerce/woocommerce-admin/pull/5856) 2021-01-26 13:24:28 +13:00
.stylelintignore CSS Linting: Exclude Storybook CSS (https://github.com/woocommerce/woocommerce-admin/pull/6785) 2021-04-13 10:03:44 +12:00
README.md Update woocommerce-admin README.md 2022-04-14 13:49:51 +08:00
babel.config.js Add @babel/plugin-proposal-class-properties to run storybook (#35867) 2022-12-07 22:26:02 +08:00
package.json Update `config@3.3.7` (from `3.3.3`) (#33828) 2023-02-14 18:34:00 +13:00
stylelint.config.js Update linting, testing, `@types/*` dependencies (https://github.com/woocommerce/woocommerce-admin/pull/8475) 2022-03-18 19:45:14 +08:00
tsconfig.json Update admin tsconfig to isolated from other projects 2022-04-15 13:50:18 +08:00
unminify.js Changed unminify plugin to hook into step before optimization 2022-04-11 21:54:48 +08:00
webpack.config.js Add new `@woocommerce/product-editor` JS package (#36600) 2023-01-31 09:38:28 -04:00

README.md

WooCommerce Admin

This is a javascript-driven, React-based admin interface for WooCommerce.

Development

Please refer to the WooCommerce Admin Development

End-to-end tests

Please refer to the WooCommerce End to End Tests

Common Issues

If you're encountering any issue setting things up, chances are we have been there too. Please have a look at our wiki for a list of common problems.