Commit Graph

1164 Commits

Author SHA1 Message Date
Albert Juhé Lluveras 109592ebc9 Don't encode search text in autocompleters before stringifying it (https://github.com/woocommerce/woocommerce-admin/pull/959) 2018-11-29 19:00:51 -06:00
David Levin 3d4ca67f89 Merge pull request woocommerce/woocommerce-admin#958 from woocommerce/update/summary-number-focus
Update/summary number focus
2018-11-29 13:55:45 -08:00
David Levin f2f8ebebe1 Update styles to remove hheight calc and negative margin h4x 2018-11-29 13:49:45 -08:00
Kelly Dwan 062b3fd529 Packages: Add changelogs and documentation (https://github.com/woocommerce/woocommerce-admin/pull/949)
* Add changelogs for latest package releases

* Add lerna instructions

* Add placeholder changelogs for other packages

* Add “working with existing packages"
2018-11-29 16:34:01 -05:00
Kevin Killingsworth 847131c6c9 Add wc-api and "Fresh Data" (https://github.com/woocommerce/woocommerce-admin/pull/833)
* data: Add @fresh-data/framework to package.json

* data: Add fresh-data and replace orders in table

This PR adds fresh-data with a WooCommerce API spec to fulfill order
information. It then replaces the existing selectors for the orders
table with the new selectors as a proof-of-concept.

* wc-api: Add temporary code for `withSelect`

This adds temporary code for a `withSelect` function outside of
`@wordpress/data` until the context PR is merged:

https://github.com/WordPress/gutenberg/pull/11460

* wc-api: Update fresh-data to 0.5.0
2018-11-29 09:57:49 -06:00
Albert Juhé Lluveras 540a191b57 Use X-WP-Total header to set the total number of items in tables (https://github.com/woocommerce/woocommerce-admin/pull/952)
* Use X-WP-Total header to set the total number of items in tables

* Improve naming

* Improve tests

* Make getReportItems() return a 'data' property by default

* Make getSummary prop behavior more clear
2018-11-29 08:03:04 -06:00
Allen Snook b27aa9b0aa Merge pull request woocommerce/woocommerce-admin#946 from woocommerce/update/0.2.0
Roll version to 0.2.0
2018-11-28 18:53:18 -08:00
Paul Sealock 2a4b9bada9 Merge pull request woocommerce/woocommerce-admin#951 from woocommerce/fix/order-statuses-prefix
Remove order statuses "wc-" prefix
2018-11-29 15:01:06 +13:00
Albert Juhé Lluveras d59e5803d3 Hide selected items from autocomplete dropdown (https://github.com/woocommerce/woocommerce-admin/pull/932) 2018-11-28 16:55:11 -06:00
David Levin 4bfea20e56 Ensure all edges of focus use core-grey-dark-300 2018-11-28 13:31:49 -08:00
David Levin f938afe946 Update Summary Focus Styles 2018-11-28 13:14:15 -08:00
Paul Sealock 47291b3873 Filters: code -> coupon in config 2018-11-29 09:29:12 +13:00
Paul Sealock 41efde0b23 Merge branch 'fix/749' of github.com:woocommerce/wc-admin into fix/749 2018-11-29 09:05:52 +13:00
Albert Juhé Lluveras c65709f2db Fix false positives in Reports stats resolvers (https://github.com/woocommerce/woocommerce-admin/pull/955) 2018-11-28 13:08:53 -06:00
Peter Fabian 8b80de9bc2 Added support for ordering by product name in products endpoint. 2018-11-28 15:14:34 +01:00
Peter Fabian 99e2c463c7 Added parameter mapping for products/stats endpoint. 2018-11-28 11:04:18 +01:00
Peter Fabian e6cca3c083 Replaced code_includes/_excludes with coupon_* as agreed. 2018-11-28 10:53:11 +01:00
Paul Sealock 0ab5c735be Remove order statuses wc- prefix 2018-11-28 15:58:17 +13:00
Allen Snook c9857b9c88 Call wp_set_script_translations when possible 2018-11-28 10:36:08 +13:00
Allen Snook d223eb25fd Roll to 0.2.0 2018-11-27 13:12:16 -08:00
Kelly Dwan 4b8969acc7 chore(release): publish
- @woocommerce/components@1.1.0
 - @woocommerce/date@1.0.2
 - @woocommerce/navigation@1.1.0
2018-11-27 15:57:27 -05:00
Peter Fabian eff3a97573 Added time clause to WHERE subquery and fixed product selection. 2018-11-27 21:41:52 +01:00
Peter Fabian bc29615454 Removed unnecessary SQL conditions. 2018-11-27 21:40:13 +01:00
Peter Fabian a765a6df97 Added tests for advanced filters of orders report. 2018-11-27 21:39:14 +01:00
Jonathan Belcher e2faa2fee2 Tag component snapshots (https://github.com/woocommerce/woocommerce-admin/pull/877)
* Tag component snapshots

* Make snapshots better

* Update snapshots
2018-11-27 13:57:52 -05:00
Kelly Dwan 8828345f86 Remove import from local files (https://github.com/woocommerce/woocommerce-admin/pull/939)
These are exported packages, they can’t rely on any local files.
2018-11-27 10:46:22 -08:00
Albert Juhé Lluveras 5fe5dbe5cd Categories table (https://github.com/woocommerce/woocommerce-admin/pull/903)
* Merge table stores

* Add Categories table

* Add numberFormat to non-currency numbers displayed to the user in the Categories Table

* Rename 'Coupons' to 'Categories' in Categories table title

* Update Categories table to use the ReportTable
2018-11-27 10:44:03 -08:00
Allen Snook dbb386c6e5 Merge pull request woocommerce/woocommerce-admin#938 from woocommerce/fix/937-js-translations
Call wp_set_script_translations when possible
2018-11-27 09:50:51 -08:00
Peter Fabian 688b47aa7c Added tests for advanced filters of orders report. 2018-11-27 17:04:16 +01:00
Peter Fabian f9a46423e0 Added get_order_statuses to REST controllers where it's required. 2018-11-27 16:39:11 +01:00
Peter Fabian c1af1da752 Updated structure of SQL queries for coupons and products.
As there can be multiple couopns and products assigned to one order, it requires different handling to what was initially implemented.
2018-11-27 16:34:12 +01:00
Peter Fabian 8e5709ce26 Updated get_unique_products to be more versatile and support running in other contexts.
In some cases of advanced filters, it produced incorrect SQL code.
Additionally, split of where clause to time clause and rest needed to be reflected here, too.
2018-11-27 16:32:42 +01:00
Peter Fabian 32e30ac274 Made sync of order stats table run also on clean_post_cache.
Otherwise, some changes in master data for orders would not be reflected, as save_post action is skipped if order is updated while the save_post action is running.
2018-11-27 16:29:21 +01:00
Peter Fabian 216b7c94ca Updated structure for includes/excludes coupons and products subqueries.
As there can be multiple coupons and products assigned to one order, it needs to ba handled differently when constructing SQL query.
2018-11-27 16:26:50 +01:00
Peter Fabian 7dd611f4d4 Added table name to time period sql params.
Without this, the subquery could not be used in some contexts, as the column name was ambiguous.
2018-11-27 16:23:40 +01:00
Peter Fabian 8dbcbfc6cb Store coupon id, not coupon item id in the stat table. 2018-11-27 16:18:42 +01:00
Peter Fabian 942db641e8 Added extra trigger for updating stats tables.
If order is updated while save_post action is in progress, then the update does not trigger stats table update, thus stats table gets out of sync with master data.
2018-11-27 16:17:30 +01:00
Robert Elliott 0a134d2d53 Merge pull request woocommerce/woocommerce-admin#910 from woocommerce/fix/chart-empty-data
Bug: noticed a new NaN error caused by attempt to draw chart with empty data
2018-11-27 11:39:40 +02:00
Allen Snook a7667c2aff Call wp_set_script_translations when possible 2018-11-26 16:18:36 -08:00
Jonathan Belcher eddf8bc609 Remove duplicate config
https://github.com/woocommerce/wc-admin/pull/618#issuecomment-441742419
2018-11-26 15:54:50 -05:00
Jonathan Belcher a308fcc830 Adds snapshots for the Split Button component (https://github.com/woocommerce/woocommerce-admin/pull/891)
* Adds snapshots for the Split Button component

* Update snapshots

* Remove duplicate test
2018-11-26 13:44:05 -05:00
Albert Juhé Lluveras 0cbe3034d8 Merge report tables (https://github.com/woocommerce/woocommerce-admin/pull/928)
* Merge report tables

* Remove unnecessary semicolon

* Improve sorting of variables

* Rename props to tableProps in ReportTable
2018-11-26 08:01:20 -06:00
Robert Elliott 2ac101f1c2 fix check on this.props.data 2018-11-26 12:04:37 +02:00
Albert Juhé Lluveras b84fce8580 Add Summary to Products table (https://github.com/woocommerce/woocommerce-admin/pull/904)
* Add Summary to Products table

* Use numberFormat() in tables summary
2018-11-25 21:41:56 -06:00
Albert Juhé Lluveras 0acc43a551 Use numberFormat() to format all non-currency numbers in tables (https://github.com/woocommerce/woocommerce-admin/pull/913) 2018-11-25 21:31:38 -06:00
Peter Fabian a86560498e Added primary key to coupon lookup.
Otherwise REPLACE query adds a multiple identical rows.
2018-11-23 22:29:47 +01:00
Albert Juhé Lluveras e4f05f31cb Make ChartPlaceholder have the same height than the resulting Chart (https://github.com/woocommerce/woocommerce-admin/pull/908)
* Make ChartPlaceholder have the same height than the resulting Chart

* Update Chart docs
2018-11-23 07:54:53 -06:00
Robert Elliott 427d0ac7dd combine isRequesting and check that there is data 2018-11-23 10:31:50 +02:00
Albert Juhé Lluveras 2057741853 Merge table stores (https://github.com/woocommerce/woocommerce-admin/pull/896) 2018-11-22 17:12:12 -06:00
Paul Sealock 77589bae6f Merge pull request woocommerce/woocommerce-admin#902 from woocommerce/fix/chart-placeholder
Chart: persist orderedKeys when requesting data
2018-11-23 09:57:45 +13:00