woocommerce/plugins/woocommerce-admin
Albert Juhé Lluveras d8ed3b6614 Implement tabular data filtering (https://github.com/woocommerce/woocommerce-admin/pull/1381)
* Move labels loading logic into a lib

* Move lib/labels into lib/async-requests

* Implement tabular data filtering

* Allow searching for string in report tables

* Add table filtering to customers table

* Get ids from searched string to populate the table

* Fix autocompleter keyboard interactions

* Improve props naming

* Cleanup report customers data store

* Prevent an edge case issue that might not update the selectedOptions when directily modifying the URL

* Fix wrong selected autocompleter option

* Add missing translation domain

* Move searchItemsByString to wc-api/items/utils.js

* Avoid autocompleter results appearing when there was no search string

* Alphabetically order 'allowFreeTextSearch' prop

* Reset selected table rows when directly modifying the URL

* Simplify props destructuring

* Undo customers data store change

* Simplify isProductDetailsView expression

* Improve order

* Filter tax code parts before modifying them
2019-02-01 10:55:19 +01:00
..
.github Add Accessibility section to the PR template (https://github.com/woocommerce/woocommerce-admin/pull/1133) 2018-12-19 17:33:02 -05:00
bin Only install/activate Gutenberg plugin if WP version under test is earlier than 5.0. 2019-01-22 10:44:00 -07:00
client Implement tabular data filtering (https://github.com/woocommerce/woocommerce-admin/pull/1381) 2019-02-01 10:55:19 +01:00
docs Release/v0.6.0 (https://github.com/woocommerce/woocommerce-admin/pull/1417) 2019-01-30 10:51:03 -08:00
images Clean up SVG code 2018-09-27 15:41:12 -07:00
includes Added indices for faster joins with customer table and filtering by order status. 2019-01-31 10:54:55 +01:00
languages Update woo-dash naming to new wc-admin name (https://github.com/woocommerce/woocommerce-admin/pull/183) 2018-07-10 08:48:06 -04:00
lib Add settings page with excluded order statuses (https://github.com/woocommerce/woocommerce-admin/pull/1364) 2019-01-31 09:04:11 +08:00
packages Implement tabular data filtering (https://github.com/woocommerce/woocommerce-admin/pull/1381) 2019-02-01 10:55:19 +01:00
tests Add SKU to product variations table (https://github.com/woocommerce/woocommerce-admin/pull/1422) 2019-01-31 09:27:15 +08:00
.browserslistrc Add CSS autoprefixer (https://github.com/woocommerce/woocommerce-admin/pull/244) 2018-07-30 10:05:22 -04:00
.distignore Initial commit of plugin scaffold 2018-04-17 17:04:17 -04:00
.editorconfig Initial commit of plugin scaffold 2018-04-17 17:04:17 -04:00
.eslintignore Docs Project: Add documentation parser + inline documentation (https://github.com/woocommerce/woocommerce-admin/pull/336) 2018-08-31 13:27:21 -04:00
.eslintrc Set eslint react version to 'detect' (https://github.com/woocommerce/woocommerce-admin/pull/1300) 2019-01-17 10:25:08 +01:00
.gitignore Try: Add Lerna to split out utility packages (https://github.com/woocommerce/woocommerce-admin/pull/678) 2018-10-30 14:57:48 -04:00
.nvmrc Add nvmrc for newest lts release (https://github.com/woocommerce/woocommerce-admin/pull/1108) 2018-12-18 16:06:27 -06:00
.stylelintrc.json Makes stylelint config match prettier settings (https://github.com/woocommerce/woocommerce-admin/pull/733) 2018-11-01 17:03:00 -04:00
.travis.yml Corrected path to phpunit for Travis. 2018-11-02 15:15:23 +01:00
CONTRIBUTING.md Update CONTRIBUTING.md with PR instructions (https://github.com/woocommerce/woocommerce-admin/pull/1066) 2018-12-11 21:02:08 -06:00
Gruntfile.js Removed addtextdomain for grunt 2018-09-28 12:23:19 -03:00
README.md Adding npm test to "helper scripts" section. (https://github.com/woocommerce/woocommerce-admin/pull/1087) 2018-12-13 16:47:13 -08:00
babel.config.js Build: Update babel config (https://github.com/woocommerce/woocommerce-admin/pull/677) 2018-10-24 17:17:23 -04:00
composer.json Update/php sniffs (https://github.com/woocommerce/woocommerce-admin/pull/1016) 2018-12-06 09:31:02 -08:00
composer.lock Update/php sniffs (https://github.com/woocommerce/woocommerce-admin/pull/1016) 2018-12-06 09:31:02 -08:00
lerna.json Try: Add Lerna to split out utility packages (https://github.com/woocommerce/woocommerce-admin/pull/678) 2018-10-30 14:57:48 -04:00
package-lock.json Lock file maintenance (https://github.com/woocommerce/woocommerce-admin/pull/1362) 2019-01-30 16:15:54 -05:00
package.json Update dependency core-js to v2.6.3 (https://github.com/woocommerce/woocommerce-admin/pull/1375) 2019-01-30 15:59:19 -05:00
phpcs.xml.dist Update/php sniffs (https://github.com/woocommerce/woocommerce-admin/pull/1016) 2018-12-06 09:31:02 -08:00
phpunit.xml.dist Initial setup for unit tests. 2018-09-20 16:20:04 +02:00
postcss.config.js IE11: fix CSS grid in Summary (https://github.com/woocommerce/woocommerce-admin/pull/353) 2018-09-06 17:11:34 +02:00
renovate.json Change renovate to a once-weekly schedule (https://github.com/woocommerce/woocommerce-admin/pull/1076) 2018-12-13 12:20:36 -05:00
wc-admin.php Release/v0.6.0 (https://github.com/woocommerce/woocommerce-admin/pull/1417) 2019-01-30 10:51:03 -08:00
webpack.config.js Update usage of lib/number to @woocommerce/number (https://github.com/woocommerce/woocommerce-admin/pull/1400) 2019-01-29 08:48:46 -08:00

README.md

WooCommerce Admin

This is a feature plugin for a modern, javascript-driven WooCommerce Admin experience.


⚠️ This project is in active development, and is not ready for general use. You can follow the features in development by looking at the project's issues. We do not recommend running this on production sites.


Prerequisites

Gutenberg and WooCommerce should be installed prior to activating the WooCommerce Admin feature plugin.

For better debugging, it's also recommended you add define( 'SCRIPT_DEBUG', true ); to your wp-config. This will load the unminified version of all libraries, and specifically the development build of React.

Development

After cloning the repo, install dependencies with npm install. Now you can build the files using one of these commands:

  • npm run build : Build a production version
  • npm start : Build a development version, watch files for changes
  • npm run build:release : Build a WordPress plugin ZIP file (wc-admin.zip will be created in the repository root)

There are also some helper scripts:

  • npm run lint : Run eslint over the javascript files
  • npm run i18n : A multi-step process, used to create a pot file from both the JS and PHP gettext calls. First it runs i18n:js, which creates a temporary .pot file from the JS files. Next it runs i18n:php, which converts that .pot file to a PHP file. Lastly, it runs i18n:pot, which creates the final .pot file from all the PHP files in the plugin (including the generated one with the JS strings).
  • npm test : Run the JS test suite

Privacy

If you have enabled WooCommerce usage tracking ( option woocommerce_allow_tracking ) then, in addition to the tracking described in https://woocommerce.com/usage-tracking/, this plugin also sends information about the actions that site administrators perform to Automattic - see https://automattic.com/privacy/#information-we-collect-automatically for more information.

Contributing

There are many ways to contribute reporting bugs, feature suggestions and fixing bugs. For full details, please see CONTRIBUTING.md