A feature plugin for a modern, javascript-driven WooCommerce Admin experience.
Switch branches/tags
add-live-test-script add/admin-notices-actioned add/admin-notices-rest-api add/autolabeler add/basic/visual-component-examples add/calypsoify-support add/categories-table-endpoint add/chart-dashboard-block add/column-prefs-to-all-tables add/currency-input-component add/extend-customers-data-from-endpoint add/inbox-read-unread add/php-lint-fix-command add/release-notes-note-pr-template add/renovate-schedule add/screen-settings add/snapshot-update-command add/stock-report add/user-meta-column-prefs add/vs-code-git-ignore add/1028-advanced-numerical-value-filter add/1032-customers-country-filter feature/919 fix/all-css-lints fix/broken-build-tax-code fix/components-local-imports fix/dry-query-creation fix/item-refunds-report-data/1024 fix/stylelint-auto-fixes fix/424 fix/482 fix/489 fix/692 fix/796-polyfill fix/807-getsettings-deprecated fix/845 fix/849-bad-note-id-rest-api-fatal fix/860-v1 fix/1012 master renovate/eslint-5.x renovate/html-to-react-1.x renovate/lock-file-maintenance renovate/major-wordpress-monorepo renovate/node-sass-4.x renovate/raw-loader-1.x renovate/wordpress-monorepo try/add-summary-number try/block-registration try/extensions-api try/fresh-data-package-json try/fresh-data-within-wp-data try/fresh-data-wp-data-external try/query-error-boundary try/react-docgen try/react-styleguide try/restore-lost-rebased-commits try/restore-rebased-commits try/so-meta try/user-meta try/wc-admin-skin try/woocommerce-menus-and-page-controller update/calendar-component-inline-picker update/category-report-summary-numbers update/chart-intervals update/coupon-report-summary-numbers update/docs-files update/docs update/summary-focus-style update/sync-order-stats-on-refund/1073 update/taxes-endpoint-hookup/941 update/x-axis-ticks
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.github Add the auto labeler config (#1064) Dec 11, 2018
bin Update docs and remove reference to internal components Dec 10, 2018
client Add Live Data to Reviews Panel (#1055) Dec 12, 2018
docs Update docs and remove reference to internal components Dec 10, 2018
images Clean up SVG code Sep 27, 2018
includes Add Live Data to Reviews Panel (#1055) Dec 12, 2018
languages Update woo-dash naming to new wc-admin name (#183) Jul 10, 2018
lib Add Customers Report page (#1018) Dec 10, 2018
packages chore(deps): update babel monorepo to v7.2.0 (#981) Dec 13, 2018
tests Remove trailing slash on base_dir variable. (#1078) Dec 12, 2018
.browserslistrc Add CSS autoprefixer (#244) Jul 30, 2018
.distignore Initial commit of plugin scaffold Apr 17, 2018
.editorconfig Initial commit of plugin scaffold Apr 17, 2018
.eslintignore Docs Project: Add documentation parser + inline documentation (#336) Aug 31, 2018
.eslintrc Search: Add inline tags Oct 11, 2018
.gitignore Try: Add Lerna to split out utility packages (#678) Oct 30, 2018
.stylelintrc.json Makes stylelint config match prettier settings (#733) Nov 1, 2018
.travis.yml Corrected path to phpunit for Travis. Nov 2, 2018
CONTRIBUTING.md Update CONTRIBUTING.md with PR instructions (#1066) Dec 12, 2018
Gruntfile.js Removed addtextdomain for grunt Sep 28, 2018
README.md Update README.md Nov 15, 2018
babel.config.js Build: Update babel config (#677) Oct 24, 2018
composer.json Update/php sniffs (#1016) Dec 6, 2018
composer.lock Update/php sniffs (#1016) Dec 6, 2018
lerna.json Try: Add Lerna to split out utility packages (#678) Oct 30, 2018
package-lock.json chore(deps): update dependency eslint-plugin-jest to v22.1.2 (#986) Dec 13, 2018
package.json chore(deps): update dependency eslint-plugin-jest to v22.1.2 (#986) Dec 13, 2018
phpcs.xml.dist Update/php sniffs (#1016) Dec 6, 2018
phpunit.xml.dist Initial setup for unit tests. Sep 20, 2018
postcss.config.js IE11: fix CSS grid in Summary (#353) Sep 6, 2018
renovate.json Ignore PHPUnit updates in renovate (#993) Dec 4, 2018
wc-admin.php Release v0.3.0 (#1065) Dec 11, 2018
webpack.config.js Fix Activity Panel on existing WooCommerce pages (#1004) Dec 6, 2018

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).

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