woocommerce/plugins/woocommerce-admin/client/wc-api
Kevin Killingsworth 11176f7b0e wc-api: Add user meta for UI preferences (https://github.com/woocommerce/woocommerce-admin/pull/1057)
* wc-api: Add user meta for UI preferences

This adds wc-api code to store UI preferences and provides one example
of updating the revenue table to save column preferences.

* wc-api user: fix returns of operations to arrays

Before, a function was returning undefined when the resourceNames didn't
include what we wanted for the user operations. This was causing some
console errors.

* ReportTable: use columnPrefsKey

This uses `columnPrefsKey` for the user preferences key instead of some
erroneously hard-coded values.

* Fix formatting/comments

These are a couple of small formatting and comment fixes.

* Replace woocommerce_meta_ prefix with wc_admin_

This changes the prefix for the meta fields for the `woocommerce_meta`
user meta array to be `wc_admin_` which better hints at the purpose of
these settings.
2018-12-13 13:24:54 -06:00
..
notes Fix Activity Panel on existing WooCommerce pages (https://github.com/woocommerce/woocommerce-admin/pull/1004) 2018-12-06 17:08:40 -05:00
orders Consider pre-flight wc-api requests to be “requesting”. 2018-12-07 16:39:43 -07:00
reports Add customers endpoint to wc-api operations (https://github.com/woocommerce/woocommerce-admin/pull/1061) 2018-12-12 09:52:50 +08:00
reviews Add Live Data to Reviews Panel (https://github.com/woocommerce/woocommerce-admin/pull/1055) 2018-12-12 08:35:56 -05:00
user wc-api: Add user meta for UI preferences (https://github.com/woocommerce/woocommerce-admin/pull/1057) 2018-12-13 13:24:54 -06:00
wp-data-store wc-api: Add user meta for UI preferences (https://github.com/woocommerce/woocommerce-admin/pull/1057) 2018-12-13 13:24:54 -06:00
constants.js Add wc-api and "Fresh Data" (https://github.com/woocommerce/woocommerce-admin/pull/833) 2018-11-29 09:57:49 -06:00
utils.js Attempt to include report stats type in resource name prefix rather than identifier. 2018-12-07 16:39:42 -07:00
wc-api-spec.js wc-api: Add user meta for UI preferences (https://github.com/woocommerce/woocommerce-admin/pull/1057) 2018-12-13 13:24:54 -06:00
with-select.js wc-api: Add user meta for UI preferences (https://github.com/woocommerce/woocommerce-admin/pull/1057) 2018-12-13 13:24:54 -06:00