Peter Fabian
6c456657e8
Changed coupon_gross_discount to amount.
2018-12-18 12:01:42 +08:00
Peter Fabian
f0b97a42b0
Changed data type in schema for dates to date-time.
2018-12-18 12:01:41 +08:00
Peter Fabian
db8004aaf7
PHPCS fixes.
2018-12-18 12:01:41 +08:00
Peter Fabian
28f6f7ece5
PHPCS changes so that I will be able to merge master into this branch.
...
Otherwise I get errors during merge commit.
2018-12-18 12:01:41 +08:00
Peter Fabian
46bf4bedc8
Added basic tests for coupons and coupons/stats.
2018-12-18 12:01:40 +08:00
Peter Fabian
21ac75d21e
Made extended_info always appear in coupons endpoint.
2018-12-18 12:01:40 +08:00
Peter Fabian
3e45c6a82c
Fixed invalid sort criterion for coupons endpoint.
2018-12-18 12:01:39 +08:00
Peter Fabian
3535f52d78
Removed interval parameter for coupons endpoint.
2018-12-18 12:01:39 +08:00
Peter Fabian
6950522f91
Removed timezone info that was added incorrectly
2018-12-18 12:01:39 +08:00
Peter Fabian
a346f13beb
Added extended info.
2018-12-18 12:01:38 +08:00
Peter Fabian
5eee869a74
Added small fixes to set up coupon endpoints.
2018-12-18 12:01:38 +08:00
Peter Fabian
1630cb9c6f
Removed unsupported parameter from coupons endpoint.
2018-12-18 12:01:18 +08:00
Peter Fabian
357b8f914a
Added query classes and data stores for coupons and coupons/stats.
2018-12-18 12:01:17 +08:00
Peter Fabian
e273d055ef
Moved functions from orders data store to allow code reuse.
2018-12-18 12:00:33 +08:00
Joshua T Flowers
9486ab7896
Update/taxes endpoint hookup/941 ( https://github.com/woocommerce/woocommerce-admin/pull/1008 )
...
* Hook up taxes to endpoint
* Hook up tax stats endpoint
* Add default tax stat totals for empty results
* Create subtotals from intervals in API
* Change orders to orders_count to keep consistent naming
2018-12-18 10:26:46 +08:00
Justin Shreve
5924be5fa2
Add base downloads report page ( https://github.com/woocommerce/woocommerce-admin/pull/1106 )
2018-12-17 15:50:45 -05:00
Justin Shreve
e42ad6956b
Add customer email filter ( https://github.com/woocommerce/woocommerce-admin/pull/1092 )
...
* Add customer email filter
* Handle PR feedback: Fix up if statement and add extra info to validation comment
2018-12-17 11:20:11 -05:00
Albert Juhé Lluveras
f819f762c4
Update docs
2018-12-17 12:22:58 +01:00
Albert Juhé Lluveras
c341137a1b
Store shouldRenderTags in a variable
2018-12-17 12:21:17 +01:00
Albert Juhé Lluveras
d8bf42fc4d
Typo
2018-12-17 12:20:23 +01:00
Albert Juhé Lluveras
501842a421
Rename 'isError' methods to 'getError' when they return an object instead of a boolean
2018-12-15 13:38:54 +01:00
Albert Juhé Lluveras
77381c0e20
Rename isError to getError in report table props
2018-12-15 13:15:13 +01:00
Albert Juhé Lluveras
41c48126bf
Rename isGetCustomersError to getCustomersError
2018-12-15 13:09:47 +01:00
Jeff Stieler
08c31151b4
Merge pull request woocommerce/woocommerce-admin#1089 from woocommerce/add/1028-advanced-numerical-value-filter
...
Add Advanced Numerical Value Filter
2018-12-14 18:02:16 -07:00
Albert Juhé Lluveras
e4fb53b8f8
Stock report ( https://github.com/woocommerce/woocommerce-admin/pull/977 )
...
* Create Stock report
* Create Stock report page
* Display product name in Stock table
* Hide 'Parent' column in Stock table
* Add stock to endpoints map
* Remove dateRangeFilter.show from ReportFilters
* Fix stock status link
* Set the default order to 'stock_quanity'
* Add correct name to StockReport
2018-12-14 15:58:08 -08:00
Albert Juhé Lluveras
f9533afdda
Rename 'totalCount' to 'totalResults' ( https://github.com/woocommerce/woocommerce-admin/pull/1093 )
2018-12-14 15:56:52 -08:00
Jeff Stieler
6eadf9c875
NumberFilter: rename “more than” and “less than” to represent a non-positional input range for “between” rules, simplify rule change logic.
2018-12-14 16:53:13 -07:00
Timmy Crawford
88b81beac0
Updating changelogs for npm release. ( https://github.com/woocommerce/woocommerce-admin/pull/1088 )
...
* Updating changelogs for npm release.
* Adding in a few more changelog items.
2018-12-14 10:44:24 -08:00
Jeff Stieler
fea292125d
Fix import path for formatCurrency().
2018-12-14 11:26:11 -07:00
Albert Juhé Lluveras
346ed578ae
Update comment to specify extendItemsMethodNames must be available in 'wc-api'
2018-12-14 18:12:56 +01:00
Albert Juhé Lluveras
3e9f141eca
Fixes
2018-12-14 18:06:02 +01:00
Jeff Stieler
93b05bba94
Square off the corners of TextControlWithAffixes.
2018-12-14 09:59:37 -07:00
Jeff Stieler
2b8526bbfb
Stope NumberFilter inputs from overflowing their container in “between” mode.
2018-12-14 09:59:23 -07:00
Albert Juhé Lluveras
d972ebf672
Only update search filters based on query if the query changed
2018-12-14 17:38:31 +01:00
Albert Juhé Lluveras
302ff934d1
Make sure 'filter:advanced' is set in the URL when setting a search filter
2018-12-14 17:30:07 +01:00
Albert Juhé Lluveras
07227271fd
Avoid duplicated ids when searching customers from the table search box
2018-12-14 17:19:30 +01:00
Albert Juhé Lluveras
bc5073ecd4
Make sure filters are updated when using the table search box
2018-12-14 17:14:24 +01:00
Claudio Sanches
80f1b2f256
[REST API] Stock endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/974 )
...
* New reports stock endpoint
* Register new endpoint
* Unit tests
* Included "name" into stock results
* Fixed sku type
* Improve stock _links returning properly links for variations and parent products
* Fixed docblock
* Sort stock by stock_quantity by default
* Fixed orderby
* Ignore sticky posts
* Fixed variable names
2018-12-14 07:43:39 -08:00
Albert Juhé Lluveras
4656f459a7
Remove old comment
2018-12-14 16:35:32 +01:00
Justin Shreve
43055d25a5
Add a country filter to the customers report ( https://github.com/woocommerce/woocommerce-admin/pull/1080 )
...
* Add an advanced country filter to the customers report
* Handle PR feedback: Fix PropType warnings, move filter/label logic to config getLabels() function, fix typo.
* Add flag thumbnail to the country filter
* Update README and CHANGELOG
2018-12-14 10:13:34 -05:00
Albert Juhé Lluveras
578e01b12f
Hide selected items in filters from table search box autocompleter
2018-12-14 14:31:57 +01:00
Albert Juhé Lluveras
bb16ba07c8
Use search box for searches instead of comparisons in Customers table
2018-12-14 14:31:41 +01:00
Albert Juhé Lluveras
ce080f4fe0
Use WC regular endpoint instead of reports endpoint to load customers autocompleter suggestions
2018-12-14 11:27:59 +01:00
renovate[bot]
5e1437b8ea
Pin dependency docsify-cli to 4.3.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1086 )
2018-12-14 13:34:47 +08:00
renovate[bot]
39ed6de5d4
chore(deps): update dependency raw-loader to v1 ( https://github.com/woocommerce/woocommerce-admin/pull/1051 )
2018-12-14 13:30:45 +08:00
renovate[bot]
0c22ec990e
Update dependency html-to-react to v1.3.4 ( https://github.com/woocommerce/woocommerce-admin/pull/1011 )
2018-12-14 13:28:44 +08:00
Andrew Dixon
c343ebb81b
Adding npm test to "helper scripts" section. ( https://github.com/woocommerce/woocommerce-admin/pull/1087 )
2018-12-13 16:47:13 -08:00
Timmy Crawford
dec2bf07b2
Add alert when wc-admin build does not exist. ( https://github.com/woocommerce/woocommerce-admin/pull/1077 )
...
* Add alert when wc-admin build does not exist.
* Updates per feedback.
* Typo and fix for ci ( i hope )
2018-12-13 16:44:58 -08:00
Jeff Stieler
aef873b386
Add examples of NumberFilter to the docs.
2018-12-13 17:30:29 -07:00
Jeff Stieler
89b4ab4d10
Format currency values for NumberFilter legend text.
2018-12-13 17:30:29 -07:00
Jeff Stieler
8e8e6d6d97
Use store’s currency symbol position setting to select prefix/suffix when rendering an advanced number filter input.
2018-12-13 17:30:29 -07:00
Jeff Stieler
de53c50514
Handle NumberFilter value when changing rule type.
2018-12-13 17:30:29 -07:00
Jeff Stieler
38bb06d39b
Render “currency” input type for NumberFilter component.
2018-12-13 17:30:29 -07:00
Jeff Stieler
cb09c195c8
Render a currency-prefixed input for advanced number filters of type “currency”.
2018-12-13 17:30:27 -07:00
Jeff Stieler
e620f8ef92
Generate screen reader text for number filter value .
2018-12-13 17:30:14 -07:00
Jeff Stieler
39a2da70b6
Display advanced number filters inline.
2018-12-13 17:30:01 -07:00
Jeff Stieler
477c83bac2
Use external config for NumberFilter rules. Fixes filter query parsing.
2018-12-13 17:29:59 -07:00
Jeff Stieler
3f2ea6bfb6
Add WIP NumberFilter advanced filter component.
2018-12-13 17:29:39 -07:00
Jeff Stieler
7cf157077a
Merge pull request woocommerce/woocommerce-admin#1081 from woocommerce/add/currency-input-component
...
Add `TextControlWithAffixes` component
2018-12-13 15:58:42 -07:00
Kelly Dwan
846d3b7f43
Add documentation for how to write documentation ( https://github.com/woocommerce/woocommerce-admin/pull/1083 )
...
* Add documentation for how to write documentation
* Update docsify & add prismjs dependency
2018-12-13 16:15:52 -05:00
Kevin Killingsworth
a7aed85244
Add column visibility prefs to all tables ( https://github.com/woocommerce/woocommerce-admin/pull/1082 )
...
* Add column prefs to the other tables
This adds column prefs to the other remaining report tables.
* Table columns: Override defaults with user prefs.
* table columns: Add remaining analytics tables
* user read/update operation: Combine responses
This combines the response handling for the read and update operations.
2018-12-13 14:34:23 -06:00
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
Albert Juhé Lluveras
d9fe77de24
Add autocompleter for customer name
2018-12-13 18:51:48 +01:00
Kelly Dwan
1adf421137
Change renovate to a once-weekly schedule ( https://github.com/woocommerce/woocommerce-admin/pull/1076 )
2018-12-13 12:20:36 -05:00
Timmy Crawford
19b209fca4
Add util to packages to fix build. ( https://github.com/woocommerce/woocommerce-admin/pull/1079 )
2018-12-13 09:06:26 -08:00
Kelly Dwan
87daca2723
Add IDs to affixes, use these in the input’s describedby
2018-12-13 12:04:57 -05:00
Kelly Dwan
8f5861f8b5
Update the examples
2018-12-13 12:04:28 -05:00
Jeff Stieler
b8ba4ed16d
Fix linting issues with TextControlWithAffixes.
2018-12-13 09:34:46 -07:00
Jeff Stieler
32018506dc
Generate TextControlWithAffixes documentation from the component itself.
2018-12-13 09:21:47 -07:00
Jeff Stieler
700f3ad20f
Make affix background white and remove wrapping behavior from TextControlWithAffixes.
2018-12-13 09:05:03 -07:00
renovate[bot]
2dbbc39071
chore(deps): update dependency node-sass to v4.11.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1043 )
2018-12-13 15:48:59 +08:00
renovate[bot]
2583818a0b
chore(deps): update dependency eslint to v5.10.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1041 )
2018-12-13 15:34:44 +08:00
Jeff Stieler
e3be069601
Hook up TextControlWithAffixes to state for interactivity.
2018-12-12 23:15:39 -07:00
Jeff Stieler
44f025f308
Remove Calypso transform focus hack from TextControlWithAffixes (it’s broken here).
2018-12-12 23:11:27 -07:00
renovate[bot]
711d05c763
chore(deps): update dependency eslint-plugin-jest to v22.1.2 ( https://github.com/woocommerce/woocommerce-admin/pull/986 )
2018-12-13 12:57:14 +08:00
renovate[bot]
25ed79669e
chore(deps): update babel monorepo to v7.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/981 )
2018-12-13 12:55:20 +08:00
renovate[bot]
ea8ac0117b
chore(deps): update dependency lerna to v3.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/945 )
2018-12-13 12:32:01 +08:00
renovate[bot]
1afd824729
Update dependency webpack to v4.27.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1007 )
2018-12-13 12:24:01 +08:00
Joshua T Flowers
ee5b282957
Fix screen reader label IDs ( https://github.com/woocommerce/woocommerce-admin/pull/1071 )
2018-12-13 09:59:16 +08:00
Timmy Crawford
88b899f7cb
Remove trailing slash on base_dir variable. ( https://github.com/woocommerce/woocommerce-admin/pull/1078 )
2018-12-12 13:13:49 -08:00
Jeff Stieler
0f7d8a753a
Add documentation page for TextControlWithAffixes.
...
Just a combination of the TextControl docs from Gutenberg and the FormTextInputWithAffixes doc from Calypso. :)
2018-12-12 13:51:25 -07:00
Jeff Stieler
28a57f2a1d
Rework border radius logic for all affix combinations including wrapping cases.
2018-12-12 13:51:25 -07:00
Jeff Stieler
4bfe767ad7
Add TextControlWithAffixes to devdocs listing.
2018-12-12 13:51:25 -07:00
Jeff Stieler
aab376a731
Rework TextControlWithAffixes to keep BaseControl at the top of the component tree.
2018-12-12 13:51:25 -07:00
Jeff Stieler
704ee79359
Port over Calypso’s FormTextInputWithAffixes component as TextControlWithAffixes.
2018-12-12 13:51:25 -07:00
Peter Fabian
43b60489ff
Merge pull request woocommerce/woocommerce-admin#1060 from woocommerce/fix/remove-force-update-in-tests
...
Removed force update in tests
2018-12-12 19:47:16 +01:00
Albert Juhé Lluveras
c0ee524d6b
Remove unnecessary query parameters
2018-12-12 15:51:24 +01:00
Albert Juhé Lluveras
110c4f0f73
Fix missing AOV value
2018-12-12 15:46:40 +01:00
Albert Juhé Lluveras
9b4e7ad963
Extract extendTableData to a utils file
2018-12-12 15:25:36 +01:00
Albert Juhé Lluveras
c679c8bad7
Extend customers data with data from WC endpoint
2018-12-12 15:22:25 +01:00
Justin Shreve
20e202080a
Add Live Data to Reviews Panel ( https://github.com/woocommerce/woocommerce-admin/pull/1055 )
...
* Add Live Data to Reviews Panel
Adds the ability to embed the product in a product review response
* Clean up code needed to embed some product fields.
* Add API response tests
2018-12-12 08:35:56 -05:00
Albert Juhé Lluveras
40b00ec7b2
Merge pull request woocommerce/woocommerce-admin#1052 from woocommerce/add/table-header-screenreader-label
...
Add screen reader labels to table headers which are not buttons
2018-12-12 11:33:44 +01:00
renovate[bot]
9601cd64dd
Update dependency core-js to v2.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1001 )
2018-12-12 16:00:36 +08:00
renovate[bot]
0249dc758c
Update dependency css-loader to v2 ( https://github.com/woocommerce/woocommerce-admin/pull/1020 )
2018-12-12 15:50:39 +08:00
Kevin Killingsworth
92d79bf605
Update CONTRIBUTING.md with PR instructions ( https://github.com/woocommerce/woocommerce-admin/pull/1066 )
...
When I was trying to commit on a fresh clone, I discovered we have to `composer install` before we can commit. So I updated our documentation to reflect that and gave it a home in some other instructions.
2018-12-11 21:02:08 -06:00
Albert Juhé Lluveras
8ad6ce9f06
Add customers endpoint to wc-api operations ( https://github.com/woocommerce/woocommerce-admin/pull/1061 )
2018-12-12 09:52:50 +08:00
Kevin Killingsworth
62c9a952a1
Table: Add onColumnsChange ( https://github.com/woocommerce/woocommerce-admin/pull/1056 )
...
This adds an `onColumnsChange` property which is called when the column
visiblity is toggled on the table. It also cleans up a bit of the
showCols code and fixes an incorrect update in the component update.
2018-12-11 13:34:16 -06:00
Timmy Crawford
f0b832bf24
Release v0.3.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1065 )
...
* Update versions to 0.3.0
* Release 0.3.0
2018-12-11 11:03:30 -08:00
Paul Sealock
c7546865b9
Merge pull request woocommerce/woocommerce-admin#1058 from woocommerce/update/docs-and-script
...
Update docs and remove reference to internal components
2018-12-12 07:36:25 +13:00
Paul Sealock
fdd60a35ee
Merge pull request woocommerce/woocommerce-admin#1054 from woocommerce/add/customers-advanced-filters
...
Customers: add one advanced filter
2018-12-12 07:33:58 +13:00
Kelly Dwan
3763ec5f16
Add the auto labeler config ( https://github.com/woocommerce/woocommerce-admin/pull/1064 )
2018-12-11 10:40:12 -06:00
Peter Fabian
256a7fd708
Test should run without explicitly calling update for lookups.
...
Same as code in general, tests should also check whether the lookups are updated correctly without explicitly needing to call update on data stores.
2018-12-11 12:41:47 +01:00
Peter Fabian
deba4a354a
PHPCS updates.
2018-12-11 12:41:35 +01:00
Peter Fabian
c612f85c6c
PHPCS updates.
2018-12-11 12:39:44 +01:00
Allen Snook
de105648be
Activity Panel: Inbox: Filter update and error notes out of the inbox ( https://github.com/woocommerce/woocommerce-admin/pull/893 )
...
* Filter update and error notes out of the inbox
* Remove redundant trim().
* Fix test for admin notes API type parameter.
2018-12-11 09:00:57 +08:00
Joshua T Flowers
76f3f8605f
Add z-index to admin menu wrap to fix menu overlapping ( https://github.com/woocommerce/woocommerce-admin/pull/1049 )
2018-12-11 08:59:35 +08:00
Joshua T Flowers
04d3ce6eb1
Add taxes endpoint and data store ( https://github.com/woocommerce/woocommerce-admin/pull/1000 )
...
* Add taxes endpoint and data store
* Add sorting options and normalize orderby param
* Add report taxes unit tests
* Add tax rate to response
* Add country, state, priority, and name to response
* Fix tax codes query param
* Add class comment
* Add missing to record query
* Add comment about ambiguous column
2018-12-11 08:58:05 +08:00
Joshua T Flowers
557cec57cb
Add tax stats endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1019 )
2018-12-11 08:55:05 +08:00
Paul Sealock
30289cd240
Update docs and remove reference to internal components
2018-12-11 11:27:32 +13:00
Paul Sealock
7f00329889
update comments
2018-12-11 11:18:45 +13:00
Paul Sealock
2240d3d713
Customers: add one advanced filter
2018-12-11 09:01:22 +13:00
Albert Juhé Lluveras
d79b490dda
Add Customers Report page ( https://github.com/woocommerce/woocommerce-admin/pull/1018 )
...
* Create Customers Report page
* Hide date range filter if dateRangeFilter.show is false
* Rename dateRangeFilter.show to showDatePicker in filters config
* Add correct key 'average_order_value'
* Fix customers autocompleter not working
2018-12-10 13:26:43 -06:00
Paul Sealock
93a7472e54
REST API: Add stock info to products and variations
2018-12-11 07:19:46 +13:00
Justin Shreve
569947fb0e
Remove lodash noConflict ( https://github.com/woocommerce/woocommerce-admin/pull/1053 )
2018-12-10 11:48:19 -05:00
Albert Juhé Lluveras
bb3e66ef32
Fix wrong default data structure in 'getReportTableData' ( https://github.com/woocommerce/woocommerce-admin/pull/1042 )
...
* Fix wrong default data structure in 'getReportTableData'
* Update tests
* Change default prop for tableData from null to an empty object in ReportTable
2018-12-10 09:51:11 -06:00
Albert Juhé Lluveras
e8e67e8a76
Add screen reader labels to table headers which are not buttons
2018-12-10 16:45:15 +01:00
Jeff Stieler
4cd01a3b3b
Merge pull request woocommerce/woocommerce-admin#1006 from woocommerce/fix/856-typeerror-interval-over-100-days
...
Use `wc-api` for Reports.
2018-12-10 08:26:42 -07:00
Albert Juhé Lluveras
51bc679fd0
Fix customers autocompleter not working
2018-12-10 16:23:34 +01:00
Albert Juhé Lluveras
6208fb9f34
Add correct key 'average_order_value'
2018-12-10 16:23:02 +01:00
Jeff Stieler
a8247e8e7e
Remove defunct todo comment about swagger hub endpoint pagination headers.
2018-12-10 08:19:28 -07:00
Albert Juhé Lluveras
93a18be2f0
Rename dateRangeFilter.show to showDatePicker in filters config
2018-12-10 16:18:17 +01:00
Jeff Stieler
25f63b0404
Merge pull request woocommerce/woocommerce-admin#1040 from woocommerce/fix/979-devdocs-console-errors
...
Fix console errors in DevDocs
2018-12-10 08:15:44 -07:00
Jeff Stieler
7291a880eb
Update filter component examples with real usage from Orders report.
...
Also resolves JS errors that were occurring.
2018-12-07 17:07:15 -07:00
Jeff Stieler
71e210d1f8
Fix missing key warning on TableCard devdocs example.
2018-12-07 16:47:30 -07:00
Jeff Stieler
d0066f0a60
Add support for “variations” Report Items type.
2018-12-07 16:39:44 -07:00
Jeff Stieler
be74e22a01
Remove unnecessary variable and rename Report Items selectors for consistency.
2018-12-07 16:39:44 -07:00
Jeff Stieler
e3362ddcde
Update report utils tests to use wc-api.
2018-12-07 16:39:44 -07:00
Jeff Stieler
7aeb69916a
Fix swagger hub requests from wc-api (url vs. path).
2018-12-07 16:39:43 -07:00
Jeff Stieler
d28eb0bcc9
Consider pre-flight wc-api requests to be “requesting”.
2018-12-07 16:39:43 -07:00
Jeff Stieler
16f24a31ba
Hook up ReportTable to wc-api.
2018-12-07 16:39:42 -07:00
Jeff Stieler
47703fa9b9
Remove debug logging, restore RevenueReportTable component.
2018-12-07 16:39:42 -07:00
Jeff Stieler
98478653e4
Attempt to include report stats type in resource name prefix rather than identifier.
2018-12-07 16:39:42 -07:00
Jeff Stieler
de1da53aaa
Use wc-api for Report Chart data.
2018-12-07 16:39:41 -07:00
Jeff Stieler
c8a76d6dc0
Use fresh-data/wc-api for revenue report table.
2018-12-07 16:39:41 -07:00
Jeff Stieler
0d6cd1a776
Add report stats to the `wc-api` spec.
2018-12-07 16:39:40 -07:00
Jeff Stieler
cfd4462941
Allow nested objects in the `getResourceName()` identifier.
2018-12-07 16:39:40 -07:00
Jeff Stieler
736d927ead
Add fresh-data backed report stats operations and selectors.
2018-12-07 16:39:40 -07:00
Kevin Killingsworth
acfe2d28ae
withSelect: fix for multiple select() calls ( https://github.com/woocommerce/woocommerce-admin/pull/1037 )
...
* withSelect: fix for multiple select() calls
This fixes a problem with a fresh-data store implementation that was
cancelling out previous requirements when mapSelectToProps
select( 'wc-api' ) was called more than once.
* wc-api: Only clear if no requirements selected.
Small update to only clear out a component's requirements if withSelect
returns without any requirements.
2018-12-07 17:04:52 -06:00
Albert Juhé Lluveras
a393ba543b
Fix ReportNumber sometimes receiving NaN values ( https://github.com/woocommerce/woocommerce-admin/pull/1026 )
...
* Fix ReportNumber sometimes receiving NaN values
* Remove unnecessary utils function
* Destructure summaryData
2018-12-07 15:13:02 -06:00
Albert Juhé Lluveras
44e97caeab
Hide date range filter if dateRangeFilter.show is false
2018-12-07 14:19:20 -06:00
Albert Juhé Lluveras
3a9beb238e
Add missing comma to chart tooltip label ( https://github.com/woocommerce/woocommerce-admin/pull/1021 )
2018-12-07 11:47:30 -06:00
Albert Juhé Lluveras
d161732c0a
Create Customers Report page
2018-12-06 16:25:31 -06:00
Timmy Crawford
46c8518fe1
Add/tax report filters/924 ( https://github.com/woocommerce/woocommerce-admin/pull/1017 )
...
* Add comparison filter to tax reports
* Extract tax code function to utils
* Filter tax code strings and add priority
2018-12-06 17:18:46 -05:00
Justin Shreve
8d4b0fcc07
Fix Activity Panel on existing WooCommerce pages ( https://github.com/woocommerce/woocommerce-admin/pull/1004 )
...
* Fix Activity Panel on embedded pages
* Fix comment typo
2018-12-06 17:08:40 -05:00
Timmy Crawford
7f35fe7ed1
Update/php sniffs ( https://github.com/woocommerce/woocommerce-admin/pull/1016 )
...
* Use WooCommerce Sniffs 0.0.5
* Updated phpcs.xml.dist to use the correct PHPCS rules
2018-12-06 09:31:02 -08:00
Kevin Killingsworth
8bb3175172
Table Component: Update showcols to use keys ( https://github.com/woocommerce/woocommerce-admin/pull/971 )
...
* component/table: Update showcols to use keys
This updates the table component to use keys to keep track of which
columns should be visible instead of column indices. This will be
necessary for keeping track of which columns were selected after a
component has been unmounted and re-mounted again later. (e.g. for
persistence or saving of user preferences)
* components/table: Add changelog entry
2018-12-05 16:30:01 -06:00
Albert Juhé Lluveras
96d930b119
Fix Orders table summary display 'order' in singular when it should be plural ( https://github.com/woocommerce/woocommerce-admin/pull/1003 )
2018-12-05 15:54:52 -06:00
Jeff Stieler
c170e289f5
Merge pull request woocommerce/woocommerce-admin#853 from woocommerce/add/711-bump-notes
...
Activity Panel: Inbox: Bump notes for expiring subs at certain days-remaining thresholds
2018-12-05 13:40:04 -07:00
Kevin Killingsworth
a6993f4709
Update @fresh-data/framework to 0.5.1 ( https://github.com/woocommerce/woocommerce-admin/pull/997 )
2018-12-05 10:52:49 -06:00
Robert Elliott
ca28c42ead
separate legend styling out
2018-12-05 12:50:07 +02:00
Robert Elliott
c9ccc015ca
move chart and d3chart components into @woocommerce/components package
2018-12-05 12:50:04 +02:00
Joshua T Flowers
5d3c771d45
Trigger sync_order on order stats table when refunding ( https://github.com/woocommerce/woocommerce-admin/pull/990 )
2018-12-05 10:10:22 +08:00
Joshua T Flowers
755b9c94f7
Reduce order table net revenue by refund total ( https://github.com/woocommerce/woocommerce-admin/pull/988 )
...
* Reduce order table net revenue by refund total
* Use order utils to get refund total
2018-12-05 10:06:00 +08:00
Joshua T Flowers
9e1cb88dfa
Add filters for order tables column headers/rows ( https://github.com/woocommerce/woocommerce-admin/pull/781 )
...
* Add filters for order tables column headers/rows
* Move filters inside rows
* Rename filter constants
* Apply filters directly to rows
* Rename Orders table filter to be more consistent with core
* Filter entire reports table
2018-12-05 09:44:32 +08:00
Albert Juhé Lluveras
e1fd72d06b
Fix 'categories' value in Categories report table summary ( https://github.com/woocommerce/woocommerce-admin/pull/995 )
...
* Add table summary to Revenue report
* Fix 'categories' value in Categories report table summary
2018-12-04 13:29:58 -06:00
Albert Juhé Lluveras
98289b32c9
Add table summary to Revenue report ( https://github.com/woocommerce/woocommerce-admin/pull/994 )
2018-12-04 13:28:18 -06:00
Justin Shreve
cf8d2bd6b0
Ignore PHPUnit updates in renovate ( https://github.com/woocommerce/woocommerce-admin/pull/993 )
2018-12-04 14:05:29 -05:00
Albert Juhé Lluveras
2387908ab6
Move activity-card CSS inside the activity-card directory ( https://github.com/woocommerce/woocommerce-admin/pull/984 )
2018-12-04 10:01:43 -06:00
renovate[bot]
0e92e03027
chore(deps): update dependency webpack to v4.27.0 ( https://github.com/woocommerce/woocommerce-admin/pull/992 )
2018-12-04 10:28:47 -05:00
renovate[bot]
19aad73f03
Update dependency autoprefixer to v9.4.2 ( https://github.com/woocommerce/woocommerce-admin/pull/976 )
2018-12-04 10:05:09 -05:00
Peter Fabian
1c8459244a
Merge branch 'master' into fix/749
...
# Conflicts:
# includes/data-stores/class-wc-admin-reports-products-data-store.php
2018-12-04 12:07:43 +01:00
Peter Fabian
670801cee8
Merge pull request woocommerce/woocommerce-admin#978 from woocommerce/fix/PHP52-compat
...
Fixed PHP 5.2 compatibility
2018-12-04 12:00:37 +01:00
Paul Sealock
bf0e025b05
REST API: isolate extened info in /reports/products
2018-12-04 13:01:36 +13:00
Albert Juhé Lluveras
093b6d9ec0
Use ReportTable in Revenue report ( https://github.com/woocommerce/woocommerce-admin/pull/982 )
...
* Use ReportTable in RevenueTable component
* Convert 'query.per_page' to an integer before using it as a prop
2018-12-03 18:00:13 -06:00
Peter Fabian
15b4681d30
Updated refactored function call from variations data store.
2018-12-03 20:14:05 +01:00
Peter Fabian
ef0f11182a
Added missing function parameter.
2018-12-03 20:07:44 +01:00
Jeff Stieler
d605ecd74e
Order data: fix isGetOrdersRequesting() for the first request.
...
Ensure a boolean return from isGetOrdersRequesting() and handle cases where requests haven’t taken off or responses haven’t been received yet.
2018-12-03 11:55:04 -07:00
Jeff Stieler
5e6ccfdbe4
Merge pull request woocommerce/woocommerce-admin#969 from woocommerce/add/935-hook-up-order-panel
...
Activity Panel: Orders: Hook up to orders data.
2018-12-03 11:28:32 -07:00
Jeff Stieler
a7b30d9779
Orders panel: use fresh-data instead of @wordpress/data.
2018-12-03 11:05:14 -07:00
renovate[bot]
7d427d7cb0
chore(deps): update dependency stylelint to v9.9.0 ( https://github.com/woocommerce/woocommerce-admin/pull/948 )
2018-12-03 12:30:28 -05:00
renovate[bot]
caa705688c
Update dependency webpack to v4.26.1 ( https://github.com/woocommerce/woocommerce-admin/pull/929 )
2018-12-03 12:27:01 -05:00
renovate[bot]
b86356e065
Update dependency eslint-plugin-jest to v22.1.0 ( https://github.com/woocommerce/woocommerce-admin/pull/927 )
2018-12-03 12:04:24 -05:00
Peter Fabian
e297e5ba7f
Fixed TABLE_NAME references.
...
To be compatible with PHP 5.2.
2018-12-03 18:01:50 +01:00
renovate[bot]
0d24d8a9ac
Update dependency ast-types to v0.11.7 ( https://github.com/woocommerce/woocommerce-admin/pull/925 )
2018-12-03 12:00:53 -05:00
renovate[bot]
2e62f23534
Update dependency husky to v1.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/899 )
2018-12-03 11:53:51 -05:00
renovate[bot]
54639586a7
Update dependency marked to v0.5.2 ( https://github.com/woocommerce/woocommerce-admin/pull/894 )
2018-12-03 11:50:12 -05:00
Jeff Stieler
251c943b2a
Orders panel: translate fulfillment button text on order card.
2018-12-03 08:53:30 -07:00
Jeff Stieler
44b77c8e06
Orders panel: link fulfillment button to order edit page.
2018-12-03 08:53:29 -07:00
Jeff Stieler
96eddcd1eb
Orders panel: only show “processing” status orders.
2018-12-03 08:53:29 -07:00
Jeff Stieler
77842d8551
Orders panel: display error if order fetching fails.
2018-12-03 08:53:29 -07:00
Jeff Stieler
84be615778
Add loading placeholder to orders panel.
2018-12-03 08:53:28 -07:00
Jeff Stieler
4f6346e068
Order panel card style - weighted title, collapse icon column.
2018-12-03 08:53:28 -07:00
Jeff Stieler
d18de54c35
Update order panel card title line to match latest design.
2018-12-03 08:53:28 -07:00
Jeff Stieler
a055f1a829
Connect orders panel to data store.
...
Modeled after the reviews panel.
2018-12-03 08:53:27 -07:00
Peter Fabian
1acb9827e7
Merge branch 'master' into fix/749
...
# Conflicts:
# includes/data-stores/class-wc-admin-reports-products-data-store.php
2018-12-03 16:21:04 +01:00
Kelly Dwan
0045f2b7a4
Bump @woocommerce/components to version 1.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/967 )
...
* Version bump & changelog update
* Roll version back so that lerna updates it
* chore(release): publish
- @woocommerce/components@1.2.0
* Update packages documentation after trying to follow it
2018-12-03 10:09:16 -05:00
Peter Fabian
b8dff97e00
Fixed PHP 5.2 compatibility.
2018-12-03 14:44:43 +01:00
Peter Fabian
6e68247701
Merge pull request woocommerce/woocommerce-admin#953 from woocommerce/fix/740
...
Added support for ordering by product name in products endpoint.
2018-12-03 11:56:28 +01:00
Albert Juhé Lluveras
bda7d0a6ee
Use ReportTable in Orders report ( https://github.com/woocommerce/woocommerce-admin/pull/968 )
...
* Use ReportTable in Orders report
* Get totalCount from hte X-WP-Total header
* Order props alphabetically
* Cleanup report table 'tableData' prop
* Use short-circuit evaluation
2018-12-02 21:40:57 -06:00
Paul Sealock
da4dea57be
Variations: Add endopoint repsonse to table data
2018-12-03 12:16:43 +13:00
Paul Sealock
516062975b
try/variations-endpoint
2018-12-03 12:02:58 +13:00
Paul Sealock
164a67144b
try/variations-endpoint
2018-12-03 11:49:37 +13:00
Albert Juhé Lluveras
293d58615d
Add screen reader labels to table headers ( https://github.com/woocommerce/woocommerce-admin/pull/964 )
...
* Add screen reader labels to tables
* Add missing propType
2018-11-30 14:44:02 -06:00
Kelly Dwan
6e3242c421
Packages – Components: Move proptype-validator utility into src ( https://github.com/woocommerce/woocommerce-admin/pull/962 )
...
* Move proptype-validator utility into src
Only src files are transpiled for external use, so requiring this file was breaking my jest tests
* Bump the package version + changelog
2018-11-30 13:19:17 -05:00
Albert Juhé Lluveras
9b0c767749
Make sure D3Base always updates when width changes ( https://github.com/woocommerce/woocommerce-admin/pull/961 )
...
* Make sure D3Base always updates when props change
* Fix JS error when resizing the window
* d3Chart cleanup
* Update tests
* Update d3Base also when drawChart prop changes
* Save height and width without margins in params
* Remove resize listeners inside d3Base
* Remove unused param
2018-11-29 19:01:00 -06:00
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
Albert Juhé Lluveras
23d032d675
Remove unnecessary IF in reports/utils.js ( https://github.com/woocommerce/woocommerce-admin/pull/909 )
2018-11-22 14:49:52 -06:00
Paul Sealock
7d65df783c
Chart: Persist orderedKeys between state changes
2018-11-23 09:49:28 +13:00
Albert Juhé Lluveras
56d3a69d13
Default charts to 'time-comparison' ( https://github.com/woocommerce/woocommerce-admin/pull/905 )
...
* Default charts to 'time-comparison'
* Fix broken test in ReportChart
2018-11-22 07:03:35 -06:00
David Levin
222a70608a
Update package-lock.json
2018-11-21 20:59:11 -07:00
David Levin
c3275fd4c9
Update order of summary numbers and remove product count
2018-11-21 20:52:24 -07:00
Paul Sealock
ab70ef4099
Chart: Persist orderedKeys between state changes
2018-11-22 13:12:03 +13:00
Robert Elliott
fe66aa9623
updated tests remove layout
2018-11-21 16:41:09 +02:00
Robert Elliott
24758bc80d
squashed commits for chart packaging
...
expand formatting function to xFormats
adding getTooltipValueFormat
remove old chart examples
remove magic numbers and use variables
refactor getTooltipRowValue
update package-lock
allow function formatters and use @wordpress/elements
2018-11-21 16:10:56 +02:00
Paul Sealock
f4c2140258
Update uses of Gutenberg popover for content sizing
2018-11-21 12:00:40 +13:00
Albert Juhé Lluveras
2a95345bb9
Add chartMode property to filters configuration ( https://github.com/woocommerce/woocommerce-admin/pull/884 )
...
* Add chartMode property to filters configuration
* Add tests
* Cleanup
* Add chartMode propType to filters
2018-11-20 16:21:47 -06:00
Kelly Dwan
38ef25a272
Add missing dependency from components package ( https://github.com/woocommerce/woocommerce-admin/pull/890 )
2018-11-20 14:23:42 -05:00
Paul Sealock
1a9ce46cdb
Merge pull request woocommerce/woocommerce-admin#764 from woocommerce/add/variations-table
...
Product Detail: Add Variations Table
2018-11-20 13:48:37 +13:00
Paul Sealock
67c7dabc29
Add Variations table
2018-11-20 13:42:55 +13:00
Paul Sealock
762cc3d9dd
Merge pull request woocommerce/woocommerce-admin#840 from woocommerce/add/release-notes-note-pr-template
...
Add a note about using SwaggerHub in PR template
2018-11-20 13:26:59 +13:00
Paul Sealock
38264239fc
Merge pull request woocommerce/woocommerce-admin#824 from woocommerce/add/product-detail-link
...
Add/product detail link
2018-11-20 13:14:34 +13:00
Paul Sealock
b7acbd9b2f
Add Product Detail link in table
2018-11-20 12:57:36 +13:00
Paul Sealock
0d59998625
Persist chart settings
2018-11-20 12:55:30 +13:00
Albert Juhé Lluveras
209a200e78
Fix wrong variable name in Legend tests ( https://github.com/woocommerce/woocommerce-admin/pull/889 )
2018-11-19 14:27:06 -06:00
Albert Juhé Lluveras
9938707970
Add Taxes report table ( https://github.com/woocommerce/woocommerce-admin/pull/881 )
...
* Add Taxes report table
* Add taxes autocompleter to Search
* Minor fixes
* Improve @TODO comment explanation
2018-11-19 09:55:15 -06:00
renovate[bot]
982e2ccc76
chore(deps): update dependency webpack to v4.26.0 ( https://github.com/woocommerce/woocommerce-admin/pull/888 )
2018-11-19 09:55:29 -05:00
renovate[bot]
e3e0af6427
chore(deps): update dependency concurrently to v4.1.0 ( https://github.com/woocommerce/woocommerce-admin/pull/886 )
2018-11-19 09:38:32 -05:00
renovate[bot]
0f5bee1dd8
chore(deps): update dependency recast to v0.16.1 ( https://github.com/woocommerce/woocommerce-admin/pull/885 )
2018-11-19 09:34:51 -05:00
renovate[bot]
126aaf3e89
chore(deps): lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/887 )
2018-11-19 09:31:10 -05:00
Albert Juhé Lluveras
2acdd04d7a
Remove duplicated 'Coupons' menu entry and reorder them ( https://github.com/woocommerce/woocommerce-admin/pull/878 )
2018-11-16 14:34:40 -06:00
Kelly Dwan
741f5cc6c6
chore(release): publish
...
- @woocommerce/components@1.0.1
- @woocommerce/date@1.0.1
2018-11-16 15:31:11 -05:00
Kelly Dwan
87cf118878
Remove imports from file that doesn’t exist in packages ( https://github.com/woocommerce/woocommerce-admin/pull/876 )
2018-11-16 14:31:20 -05:00
Peter Fabian
db9d6e03e7
Added spaces around operator.
2018-11-16 18:22:40 +01:00
Peter Fabian
c1cf221773
Fixed typos.
2018-11-16 18:02:19 +01:00
Peter Fabian
26debd77c3
WIP on advanced filters.
...
Plus fixing bugs:
- fixed tests
- fixed schema definition to reflect response data
- split WHERE SQL clause into time constraints and rest
2018-11-16 17:51:33 +01:00
renovate[bot]
098b24e99e
fix(deps): update dependency @babel/runtime-corejs2 to v7.1.5 ( https://github.com/woocommerce/woocommerce-admin/pull/865 )
2018-11-16 09:14:34 -05:00
renovate[bot]
97faa52909
fix(deps): update dependency d3-array to v2 ( https://github.com/woocommerce/woocommerce-admin/pull/872 )
2018-11-16 09:13:50 -05:00
Jonathan Belcher
f167c27b5e
Adds UI wiring for Coupons chart and summary ( https://github.com/woocommerce/woocommerce-admin/pull/724 )
...
* Adds UI wiring for Coupons chart and summary
* Update for changes in master
* Update to use current method
* Remove accidental paste
* Fix typo
* Seperate WooCommerce deps
2018-11-16 08:39:29 -05:00
Jonathan Belcher
8ddcb7ce4a
Adds UI wiring for Catgories chart and summary ( https://github.com/woocommerce/woocommerce-admin/pull/725 )
...
* Adds UI wiring for Catgories chart and summary
* Use new format for charts
* Use swagger api
* Get rid of store references
* Final touch ups
* Seperate out WooCommerce dep
2018-11-16 08:33:58 -05:00
Peter Fabian
46923de3d2
Removed superfluous unsets.
2018-11-16 12:37:15 +01:00
Peter Fabian
7c6d0dc314
Handled case where match parameter is missing.
2018-11-16 12:32:13 +01:00
Peter Fabian
ea766b83ca
Renamed method to better reflect its purpose.
...
Plus added conversion of count as string to integer.
2018-11-16 12:30:00 +01:00
Peter Fabian
16d5265aed
Merge branch 'master' into fix/749
2018-11-16 12:16:50 +01:00
Peter Fabian
ba09fea35d
Updated filters subqueries to correctly handle no filter case.
2018-11-16 12:12:47 +01:00
Albert Juhé Lluveras
cc86233e0f
Add Coupons report table ( https://github.com/woocommerce/woocommerce-admin/pull/867 )
...
* Add Coupons report table
* Fix propTypes warning in CouponsReportTable
* Remove unnecessary constructors from tables
2018-11-15 21:35:10 -06:00
Albert Juhé Lluveras
ba7d6ef29f
Minor fixes to stores ( https://github.com/woocommerce/woocommerce-admin/pull/868 )
...
* Minor fixes to stores
* Fix 'parameters' typo
2018-11-15 21:32:11 -06:00
Kelly Dwan
94200cbbc1
chore(release): publish
...
- @woocommerce/components@1.0.0-alpha.1
- @woocommerce/csv-export@1.0.0-alpha.1
- @woocommerce/currency@1.0.0-alpha.1
- @woocommerce/date@1.0.0-alpha.1
- @woocommerce/navigation@1.0.0-alpha.1
2018-11-15 18:31:20 -05:00
Allen Snook
a60497c9f6
Remove error_log, set note to false to avoid a uninitialized var warning
2018-11-15 13:19:29 -08:00
Allen Snook
d8dd2a0083
Update README.md
2018-11-15 13:13:35 -08:00
Allen Snook
a65ff9e797
Bump notes for expiring subscriptions at certain days-remaining thresholds
2018-11-15 12:52:58 -08:00
renovate[bot]
9f390ba0da
Pin dependencies ( https://github.com/woocommerce/woocommerce-admin/pull/863 )
...
* Pin dependencies
* Update Package-lock.json
2018-11-15 14:59:34 -05:00
Kelly Dwan
2a9cb6509b
Build: Move components to packages dir ( https://github.com/woocommerce/woocommerce-admin/pull/804 )
...
* Move components to packages folder
* Update documentation generator to handle packages/components and client/components
* Update component locations
* Update CSS build process
* Remove react-dates css, this is already included by gutenberg
* Fix CSS style - single quotes
* Fix incorrect imports
* Update package-lock with new dependencies
* Update component locations for devdocs
* Fix location of tests
2018-11-15 13:16:23 -05:00
Peter Fabian
723ac1e506
Added defaults for new params to Data Store.
2018-11-15 19:01:52 +01:00
Peter Fabian
9d86e01f4e
Updated REST controller with new parameters.
2018-11-15 19:01:22 +01:00
Allen Snook
e150ce4034
Merge pull request woocommerce/woocommerce-admin#851 from woocommerce/add/admin-notices-rest-api-unit-tests-2
...
Add admin notices REST API unit tests
2018-11-15 09:24:17 -08:00
Albert Juhé Lluveras
8997d4ca26
Update chart breakpoints ( https://github.com/woocommerce/woocommerce-admin/pull/838 )
...
* Update chart breakpoints to match the other parts or wc-admin
* Make chart have always the specified height so it matches the legend total label
* Remove obsolete test
* Remove exports no longer needed
* Remove @wordpress/viewport dependency from chart.js
* Update chart docs
* Make tooltipPosition PropType more strict
2018-11-15 09:27:55 -06:00
Peter Fabian
d009deb3e1
Added initial implementation of advanced filters.
2018-11-15 15:27:19 +01:00
Peter Fabian
0374119245
Added zero padding to hours in unit tests. ( https://github.com/woocommerce/woocommerce-admin/pull/858 )
2018-11-15 08:19:13 -05:00
Jonathan Belcher
2dbe3e8cc7
Adds UI wiring for Taxes chart and summary ( https://github.com/woocommerce/woocommerce-admin/pull/779 )
...
* Adds UI wiring for Taxes chart and summary
* Update to latest method for creating summary/chart
* Switch out API for swagger
* Fix copy pasta
* Implement swagger api
* Update config to match swagger API
* Code review fixes
* Remove store code as it isnt used
2018-11-14 16:04:59 -05:00
Jonathan Belcher
5132e81b7c
Fixes code comments on return value type ( https://github.com/woocommerce/woocommerce-admin/pull/850 )
2018-11-14 15:33:13 -05:00
Allen Snook
aeb7d15c9a
Deeply test the structure of a single note for expected values
2018-11-14 11:17:01 -08:00
Allen Snook
40376c23e1
Add unit tests for admin notes REST API
2018-11-14 11:06:53 -08:00
Renovate Bot
cf008b9e77
Pin dependency phpunit/phpunit to 6.5.13
2018-11-14 16:56:00 +00:00
renovate[bot]
ca0165ff5d
Update dependency deasync to v0.1.14 ( https://github.com/woocommerce/woocommerce-admin/pull/839 )
2018-11-14 11:55:18 -05:00
Jonathan Belcher
60bd7a477f
Adds basic snapshot for dropdown button ( https://github.com/woocommerce/woocommerce-admin/pull/843 )
2018-11-14 11:52:47 -05:00
renovate[bot]
7c640c1c1c
Update babel monorepo to v7.1.6 ( https://github.com/woocommerce/woocommerce-admin/pull/834 )
2018-11-14 10:46:47 -05:00
Peter Fabian
f562562055
Merge pull request woocommerce/woocommerce-admin#758 from woocommerce/fix/751
...
PHPUnit testing improvements
2018-11-14 10:42:10 +01:00
Paul Sealock
4b64fd3a60
Add a note about using SwaggerHub in PR template
2018-11-14 12:06:50 +13:00
Allen Snook
17a997f313
Merge pull request woocommerce/woocommerce-admin#808 from woocommerce/fix/796-polyfill-part-deux
...
Remove the SCRIPT_DEBUG:true requirement
2018-11-13 14:35:01 -08:00
Paul Sealock
c809fa6cb9
Apply onQueryChange to more than just 'filter'
2018-11-14 09:56:39 +13:00
Boro Sitnikovski
83fdaf6cd6
Fix some PHP notices when accessing WC Settings screen ( https://github.com/woocommerce/woocommerce-admin/pull/828 )
...
* Fix some PHP notices when accessing WC Settings screen
* Add sanitization
2018-11-13 14:08:01 -05:00
Albert Juhé Lluveras
1d5364f6a6
Add ProductImage to variations autocompleter ( https://github.com/woocommerce/woocommerce-admin/pull/832 )
2018-11-13 09:40:17 -06:00
Peter Fabian
11d6f2e93a
Updated query parameters according to spec.
2018-11-13 16:24:57 +01:00
Jonathan Belcher
2eff88bf4c
Adds a test snapshot for count ( https://github.com/woocommerce/woocommerce-admin/pull/830 )
2018-11-13 09:39:42 -05:00
renovate[bot]
a2f0f5c875
Update dependency husky to v1.1.4 ( https://github.com/woocommerce/woocommerce-admin/pull/829 )
2018-11-13 09:16:01 -05:00
Robert Elliott
bd1997b725
Merge pull request woocommerce/woocommerce-admin#785 from woocommerce/add/chart-63day-x1month-x2year
...
Component - chart: more than 9 weeks of ticks change xFormat to months & x2Format to yrs
2018-11-13 10:16:01 +02:00
Jonathan Belcher
59a3db306e
Remove unneeded leading whitespace ( https://github.com/woocommerce/woocommerce-admin/pull/820 )
...
This has made it difficult to quick create test instructions since I have to add a leading space before every step.
2018-11-12 16:50:03 -05:00
Jonathan Belcher
ffaa80a95e
Add snapshotting to Animation Slider ( https://github.com/woocommerce/woocommerce-admin/pull/819 )
2018-11-12 16:49:40 -05:00
Jonathan Belcher
cd00227875
Adds Card Snapshot ( https://github.com/woocommerce/woocommerce-admin/pull/821 )
2018-11-12 16:49:32 -05:00
Albert Juhé Lluveras
5033a1ba5c
Update comparison chart design and show it on the Product report ( https://github.com/woocommerce/woocommerce-admin/pull/816 )
...
* Display comparison chart in Product detail report
* Make legend to overflow in comparison charts
* Show comparison chart also when comparing products
* Update comparison chart legend design
* Send itemsLabel and comparisonChart as props to the ReportChart component
* Update styles and create a legend.scss file
* Minor cleanup
* Fix legend test
* Sort props alphabetically
2018-11-12 15:41:33 -06:00
Jonathan Belcher
5c84bd4790
Update composer.lock
2018-11-12 14:53:18 -05:00
Jonathan Belcher
0193e73a87
Merge Commit
2018-11-12 14:50:13 -05:00
Albert Juhé Lluveras
3637ae5054
Update table gradient code to be more similar to chart legend gradient code ( https://github.com/woocommerce/woocommerce-admin/pull/817 )
2018-11-12 12:04:38 -06:00
renovate[bot]
687a728e64
Update dependency wp-coding-standards/wpcs to v1.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/815 )
2018-11-12 12:29:36 -05:00
renovate[bot]
c83d1d0779
Update dependency eslint to v5.9.0 ( https://github.com/woocommerce/woocommerce-admin/pull/810 )
2018-11-12 12:03:48 -05:00
Jonathan Belcher
bccae052ae
Refactor to remove products chart.js ( https://github.com/woocommerce/woocommerce-admin/pull/799 )
...
* Refactor to remove products chartjs
* Delete chartjs
* Fix copy pasta error
2018-11-12 11:28:03 -05:00
Jonathan Belcher
e49997381b
Refactor to remove revenue chartjs ( https://github.com/woocommerce/woocommerce-admin/pull/800 )
...
* Refactor to remove revenue chartjs
* Update index.js
* Remove extra line
2018-11-12 11:27:19 -05:00
Jonathan Belcher
f98d0c9720
Adds renovate lock file updates ( https://github.com/woocommerce/woocommerce-admin/pull/801 )
2018-11-12 11:26:11 -05:00
renovate[bot]
585b234ed7
Update dependency d3-array to v2 ( https://github.com/woocommerce/woocommerce-admin/pull/811 )
2018-11-12 11:25:54 -05:00
renovate[bot]
004f27223c
Update dependency stylelint to v9.8.0 ( https://github.com/woocommerce/woocommerce-admin/pull/809 )
2018-11-12 11:24:53 -05:00
Kelly Dwan
89cee0df90
Build: Move filter code to the navigation package ( https://github.com/woocommerce/woocommerce-admin/pull/803 )
...
* Move filter code to the navigation package
- Moves filter-related code to navigation, so it can be shared between components and the app
- Fixes spelling of “flatten”
- Update README docs with new functions
* Use `get` to prevent errors if options is not an array/is empty
* Update documentation and tests
2018-11-12 11:17:18 -05:00
Allen Snook
45c03845b2
Remove SCRIPT_DEBUG requirement
2018-11-09 09:49:33 -05:00
Jonathan Belcher
a490287f0a
Updates docs ( https://github.com/woocommerce/woocommerce-admin/pull/798 )
2018-11-07 17:00:50 -05:00
Allen Snook
6e28d5d3f5
Merge pull request woocommerce/woocommerce-admin#774 from woocommerce/fix/772-wp5-compat
...
Allow WC-Admin to activate on WP 5 without Gutenberg plugin active
2018-11-07 16:13:15 -05:00
Allen Snook
a5b1b617c2
Prompt user to set SCRIPT_DEBUG on WP 5 for now.
2018-11-07 14:53:05 -05:00
Allen Snook
e933427d5a
Fix leading spaces
2018-11-07 12:53:20 -05:00
renovate[bot]
9ccddf5a19
Pin dependency @wordpress/custom-templated-path-webpack-plugin to 1.1.5 ( https://github.com/woocommerce/woocommerce-admin/pull/788 )
2018-11-07 12:25:48 -05:00
Jonathan Belcher
c102e78523
Creates a helper function to get selected chart ( https://github.com/woocommerce/woocommerce-admin/pull/794 )
...
* Creates a helper function to get selected chart
* remove console log
* Make sure charts is never empty
* Clarify docs
2018-11-07 12:19:59 -05:00
renovate[bot]
d68604629c
Update dependency eslint-plugin-jest to v22 ( https://github.com/woocommerce/woocommerce-admin/pull/791 )
2018-11-07 12:08:24 -05:00
renovate[bot]
cbcdf9ba78
Update babel monorepo to v7.1.5 ( https://github.com/woocommerce/woocommerce-admin/pull/789 )
2018-11-07 12:04:34 -05:00
Jonathan Belcher
ffee7cc841
Moves charts to config to delete chart.js ( https://github.com/woocommerce/woocommerce-admin/pull/793 )
2018-11-07 11:38:34 -05:00
Allen Snook
1a72cf2e4e
Fix compatibility check to handle WP 5; call wp_get_jed_locale_data
2018-11-07 07:38:14 -05:00
Allen Snook
9246ab6ef4
Correct merge of class-wc-admin-reports-data-store
2018-11-07 07:25:17 -05:00
Allen Snook
962bb73288
Remove temporary comments on reports data store
2018-11-07 07:22:53 -05:00
Allen Snook
24c80427fc
Fix a bug in the notes updater; better handle test case where
...
note expiration/expired date changes at woocommerce.com causing
an expired note to become an expiring note (corner case)
2018-11-07 07:21:23 -05:00
Allen Snook
8851a8cfe7
Refresh subscription notes daily
2018-11-07 07:21:23 -05:00
Allen Snook
3acd858d37
Hook up the expiring, expired subscription notes
2018-11-07 07:21:22 -05:00
Allen Snook
dcfc8ea17d
Start adding subscription notes to the merchant inbox
2018-11-07 07:21:22 -05:00
Robert Elliott
703c1ca33a
update from feedback
2018-11-07 11:54:20 +02:00
Kelly Dwan
8af82f3dee
Build: Move `lib/csv` to packages ( https://github.com/woocommerce/woocommerce-admin/pull/756 )
...
* Move CSV to packages
* Update CSV imports
* Add some basic usage documentation
* Add csv lib to the enqueued assets
* Change name to `csv-export`
* Update webpack build process to allow for package names with dashes
* Fix capitalization
* Update readme with docs extracted from jsdoc
* Fix merge conflict commit 😣
* Check that generateCSVFileName is called with correct params
2018-11-06 16:53:22 -05:00
Allen Snook
cf47d03bd8
Merge pull request woocommerce/woocommerce-admin#753 from woocommerce/add/inbox-example
...
Extensibility: Add activity panel inbox tutorial
2018-11-06 11:10:47 -05:00
Robert Elliott
d59594c4f6
at more than 9 weeks of ticks change xFormat to months and x2Format to years
2018-11-06 16:02:16 +02:00
Kevin Killingsworth
fbed89eb19
Update @wordpress/data for 3.x ( https://github.com/woocommerce/woocommerce-admin/pull/783 )
...
* fix: Remove state argument from resolvers.
State is no longer the first argument to resolvers as of @wordpress/data
version 3.0.0
* Update @wordpress/data to 3.1.0
* Adjust resolvers to work with v2 and v3 wp.data
This adds code to inspect the arguments of the resolvers to allow for
working with v2 or v3 wp.data. This is only temporary.
* resolvers: fix tests
This fixes tests by removing empty state objects from them.
2018-11-05 18:30:32 -05:00
Paul Sealock
50e635e716
Add Variations autocompleter
2018-11-05 17:43:59 -05:00
Kelly Dwan
1716ebcdae
Inject translations after i18n is included, so we catch the earliest instance of translation functionality ( https://github.com/woocommerce/woocommerce-admin/pull/782 )
2018-11-05 17:09:20 -05:00
Kelly Dwan
d27cb26ef7
Build: Move `lib/nav-utils` and `lib/history` to `@woocommerce/navigation` ( https://github.com/woocommerce/woocommerce-admin/pull/763 )
...
* Move nav-utils and history to new package
* Update config to build and use new navigation package
* Update all imports to use new navigation package
* Remove unnecessary README
* Update nav-utils path
2018-11-05 16:02:04 -05:00
renovate[bot]
3dd11ae8d5
Update dependency webpack to v4.25.1 ( https://github.com/woocommerce/woocommerce-admin/pull/780 )
2018-11-05 15:29:55 -05:00
renovate[bot]
6fc439ee92
Update dependency webpack to v4.25.0 ( https://github.com/woocommerce/woocommerce-admin/pull/777 )
2018-11-05 13:00:38 -05:00
renovate[bot]
82acb08069
Update dependency eslint-plugin-jest to v21.27.1 ( https://github.com/woocommerce/woocommerce-admin/pull/767 )
2018-11-05 12:57:01 -05:00
Jonathan Belcher
f52127ac31
Add command to build release zip ( https://github.com/woocommerce/woocommerce-admin/pull/768 )
...
* Add command to build release zip
* Modify Gutenberg build script to work with wc-admin
* Small fixes
* Add all includes
* Remove install command, since build also installs
2018-11-05 10:11:34 -05:00
renovate[bot]
19f1c01861
Update dependency node-sass to v4.10.0 ( https://github.com/woocommerce/woocommerce-admin/pull/766 )
...
* Update dependency node-sass to v4.10.0
* Update package-lock
2018-11-05 10:10:54 -05:00
Allen Snook
90b4553502
Fix typos and bad grammar, add more links
2018-11-04 21:49:35 -05:00
Allen Snook
ee4dde5835
Do not attempt to run table setup without dependency check first
2018-11-04 17:50:53 -05:00
renovate[bot]
3213f6a80f
Pin dependencies ( https://github.com/woocommerce/woocommerce-admin/pull/743 )
2018-11-04 16:38:56 -05:00
renovate[bot]
95d50a6736
Update dependency buble to v0.19.6 ( https://github.com/woocommerce/woocommerce-admin/pull/612 )
2018-11-04 16:37:55 -05:00
Jonathan Belcher
5e7b9d41c1
Updates docs files ( https://github.com/woocommerce/woocommerce-admin/pull/769 )
2018-11-04 16:25:00 -05:00
renovate[bot]
c8625ca0d1
Update dependency stylelint to v9.7.1 ( https://github.com/woocommerce/woocommerce-admin/pull/744 )
2018-11-03 13:27:16 -04:00
renovate[bot]
3ef218b0bf
Update wordpress monorepo ( https://github.com/woocommerce/woocommerce-admin/pull/745 )
2018-11-03 13:23:57 -04:00
renovate[bot]
930bbad2b9
Update dependency eslint-plugin-jest to v21.27.0 ( https://github.com/woocommerce/woocommerce-admin/pull/765 )
2018-11-03 11:35:54 -04:00
Albert Juhé Lluveras
70e7e14e7a
Persist time queries when clicking on breadcrumbs links ( https://github.com/woocommerce/woocommerce-admin/pull/759 )
...
* Make breadcrumbs links persist date queries
* Add tests to getTimeRelatedQuery() when query parameter not set
* Add comment explanation about navUtils self-import
2018-11-02 22:38:16 +01:00
Jonathan Belcher
aac90a8aae
Adds css linting to the main lint command to be run in ci ( https://github.com/woocommerce/woocommerce-admin/pull/735 )
2018-11-02 15:48:16 -04:00
Kelly Dwan
2b29dc7d1c
Build: Switch react imports to use core packages ( https://github.com/woocommerce/woocommerce-admin/pull/755 )
...
* Remove react, react-dom, and redux imports in favor of core packages
* Move build dependencies out of `devDependencies`
2018-11-02 15:37:28 -04:00
Kelly Dwan
c29043a3bc
Switch to using `@wordpress/viewport` for responsive screen layouts ( https://github.com/woocommerce/woocommerce-admin/pull/761 )
...
* Switch to Gutenberg viewport package
* Switch CSS breakpoints to core-supported values
* Fix double-calendar logic
2018-11-02 15:20:11 -04:00
renovate[bot]
4bf4d93999
Update dependency husky to v1.1.3 ( https://github.com/woocommerce/woocommerce-admin/pull/757 )
...
* Update dependency husky to v1.1.3
* Update commit hooks to husky v1 config
v1.0 moved away from `scripts`, to a custom property in package.json
2018-11-02 12:48:24 -04:00
renovate[bot]
39683ec4e3
Update dependency webpack to v4.24.0 ( https://github.com/woocommerce/woocommerce-admin/pull/760 )
2018-11-02 12:15:46 -04:00
Allen Snook
a0d96c07f4
Merge pull request woocommerce/woocommerce-admin#747 from woocommerce/add/run-dbdelta-on-init
...
Run dbdelta on init, at least as long as this is a separate plugin
2018-11-02 08:35:49 -07:00
Peter Fabian
abc8ed4e55
Corrected path to phpcs for Travis.
2018-11-02 15:27:03 +01:00
Peter Fabian
97f3cf0cb5
Corrected path to phpunit for Travis.
2018-11-02 15:15:23 +01:00
Peter Fabian
e95cde4a3e
Updated Travis composer configuration.
...
Composer can only run for PHP 7.1+, correct PHPUnit should already be specified in composer.json.
The PATH export in travis.yml ensures that PHPUnit v6 is used for PHP v7.2.
2018-11-02 15:06:29 +01:00
Peter Fabian
da8b16888d
Made composer run in correct dir, now for real.
2018-11-02 13:17:38 +01:00
Peter Fabian
1164a08e07
Run composer under WP_CORE_DIR in Travis.
2018-11-02 12:52:28 +01:00
Peter Fabian
b482b3b354
Updated path to PHPUnit for Travis CI tests.
2018-11-02 12:43:58 +01:00
Peter Fabian
09ec5df9c3
Added testing of multiple PHP versions, improve test runtime by optimizing git clone.
2018-11-02 12:34:39 +01:00
Peter Fabian
a1f2c867f4
Corrected failing tests.
2018-11-02 12:24:21 +01:00
Peter Fabian
3c490a5ce6
Switch the directory from which the PHP Unit tests run on Travis.
2018-11-02 11:43:46 +01:00
Peter Fabian
6f9dd9c61b
Moved wc-admin installation to phpunit bootstrap.
2018-11-02 11:31:41 +01:00
Jonathan Belcher
b16c056c32
Makes stylelint config match prettier settings ( https://github.com/woocommerce/woocommerce-admin/pull/733 )
...
* Makes stylelint config match prettier settings
* Fix/all css lints (https://github.com/woocommerce/woocommerce-admin/pull/734 )
* Fix all sass lints!
* Delete settings.json
* Update newline rule, which also conflicts with prettier
* Fix remaining stylelint issues
* Disable stylelint rule for a line to avoid prettier/linter fights
2018-11-01 17:03:00 -04:00
Allen Snook
1a46b29b73
Merge pull request woocommerce/woocommerce-admin#748 from woocommerce/add/contributing
...
Add markdown docs with details on contributing
2018-11-01 13:19:10 -07:00
Allen Snook
4604ba1c12
Remove credits for now, at least until we need to do something like that
2018-11-01 13:07:27 -07:00
Allen Snook
e510d94836
Only create/update tables on init if WP_DEBUG is true
2018-11-01 12:59:32 -07:00
Allen Snook
4787f94d45
Add images
2018-11-01 12:38:36 -07:00
Allen Snook
df11c3fab5
Further tweaks to the sidebar markdown
2018-11-01 12:32:26 -07:00
Allen Snook
206a71aecc
Add activity panel inbox tutorial
2018-11-01 12:18:43 -07:00
Albert Juhé Lluveras
c4bb740f1f
Add error message to Top Selling Products table ( https://github.com/woocommerce/woocommerce-admin/pull/750 )
...
* Add error message to Top Selling Products
* Add margin bottom to Top Selling Products error message
2018-11-01 18:15:53 +01:00
Albert Juhé Lluveras
33f93def37
Fix table header in IE11 ( https://github.com/woocommerce/woocommerce-admin/pull/752 )
2018-11-01 18:15:36 +01:00
Allen Snook
5dc6ce943d
Fix issue submittal link and text, replace Services with Admin
...
in one place where I missed it
2018-11-01 09:43:06 -07:00
Peter Fabian
1dff9420d8
Updated composer.lock for correct PHPUnit version.
2018-11-01 17:28:42 +01:00
Peter Fabian
cf847140c3
Only install wc-admin branch if testing on Travis CI.
2018-11-01 17:27:55 +01:00
Peter Fabian
afee6e7e39
Fixed PHPUnit version to v6 in composer.json.
2018-11-01 15:43:15 +01:00
Jonathan Belcher
de92fd8ed5
Adds Jest Snapshot update command ( https://github.com/woocommerce/woocommerce-admin/pull/741 )
2018-11-01 08:39:41 -04:00
Peter Fabian
bcf21687d3
Updated parameters in the REST controller.
2018-11-01 12:37:49 +01:00
Albert Juhé Lluveras
33cdba6945
Fix charts redirecting to previous path when changing interval value ( https://github.com/woocommerce/woocommerce-admin/pull/731 )
...
* Fix charts redirecting to previous path when changing interval value
* Fix chart being reset when changing interval
* Fix chart being reset when changing filters
2018-11-01 10:13:45 +01:00
Allen Snook
cf72ac4744
Add markdown docs with details on contributing
2018-10-31 16:12:11 -07:00
Allen Snook
3c323d6c75
Run dbdelta on init, at least as long as this is a separate plugin
2018-10-31 15:47:39 -07:00
Joshua T Flowers
0f45a08f20
Update order summary in Orders report ( https://github.com/woocommerce/woocommerce-admin/pull/613 )
...
* Move TableSummary below pagination
* Add summary to order table
* Add new and returning customers
* Add product to totals in API
* Use get_var instead of get_results for unique products
* Change table summary styling
Remove slashes and increase padding between items based on discussion with @LevinMedia
Change margin to padding to overlap table shadow when pagination is not present.
* Fix wp_posts prefix and move to separate fxn
* Change new/returning customer column types to intval
* Add new/returning customer data to tests and fix formatting
2018-10-31 14:09:38 -05:00
Albert Juhé Lluveras
9186eed9c0
Clear filter button fixes ( https://github.com/woocommerce/woocommerce-admin/pull/736 )
2018-10-31 11:29:20 +01:00
Paul Sealock
81c746a22f
Merge pull request woocommerce/woocommerce-admin#714 from woocommerce/add/variations-filter
...
Filters: Add Variations extra filters
2018-10-31 16:22:43 +13:00
Jonathan Belcher
43cccb49b7
Adds Section Header component ( https://github.com/woocommerce/woocommerce-admin/pull/689 )
...
* Adds Section Header component
* Return Card header to previous state
* Restore card header
* Fix weird format comment in markdown
* PR review comment fixes
* Add snapshot to test
* Add role to hr to remove from screen readers
* Code review fixes
2018-10-30 22:07:16 -04:00
Paul Sealock
e8f3258d47
Filters: Add Variations extra filters
2018-10-31 11:26:05 +13:00
Kelly Dwan
f62537fc17
Try: Add Lerna to split out utility packages ( https://github.com/woocommerce/woocommerce-admin/pull/678 )
...
* Add lerna & GB package-building script
* Move currency library to lerna module
* Update lerna config
* Add publish commands
* Add currency as an faux-external module
* Add separate command to build just core files
* Update dependency path
* Update build script to build all packages into `dist`
* Add packages to the jest test setup
* Move date library to packages
* Update imports to use @woocommerce/date
* Output wcSettings definition before any scripts are output
Fixes issues where wc-dates lib relies on settings object
* Add the build step into travis
* Update jest config to dynamically get package paths
* Update package postcss config to match wc-admin’s main config
* Add combined watch scripts for package+app, add a `clean` command to clean up old build files
* Ignore PHPCS error (leave todo message to fix)
* Concat files with a space, fix issue where all files join in one continuous string and fail the check
2018-10-30 14:57:48 -04:00
Jonathan Belcher
f6940db59c
Ignore VS Code configuration files ( https://github.com/woocommerce/woocommerce-admin/pull/732 )
2018-10-30 14:26:13 -04:00
Albert Juhé Lluveras
e5fe8b1c66
Move tooltip below the chart when there is limited horizontal space ( https://github.com/woocommerce/woocommerce-admin/pull/716 )
...
* Show tooltip below the chart on mobile
* Fix tooltips not correctly centered in bar chart
2018-10-30 19:07:34 +01:00
Peter Fabian
bfb6f246f0
Return correct object for REST products controller. ( https://github.com/woocommerce/woocommerce-admin/pull/710 )
2018-10-30 11:06:23 -07:00
Peter Fabian
44c90d8ef1
Added zero-padding to hours coming from the db. ( https://github.com/woocommerce/woocommerce-admin/pull/687 )
...
* Added zero-padding to hours coming from the db.
* Added info about code dependency.
2018-10-30 11:04:03 -07:00
David Levin
a1e8eb0a80
Fix spelling of AVERAGE order value in orders report
2018-10-30 10:24:34 -07:00
David Levin
6b72b004ac
refactoring x-axis ticks ( https://github.com/woocommerce/woocommerce-admin/pull/685 )
...
* conflict resolution
* updated weekly interval formats
* updated week format to include day
2018-10-30 09:54:49 -07:00
Jonathan Belcher
eac848e351
Fixes Ellipsis hover bug in Firefox ( https://github.com/woocommerce/woocommerce-admin/pull/721 )
2018-10-30 12:24:15 -04:00
Jonathan Belcher
3446c0814b
Stylint autofixes ( https://github.com/woocommerce/woocommerce-admin/pull/729 )
2018-10-30 09:17:17 -04:00
Jonathan Belcher
d260205c11
Add stylelint ( https://github.com/woocommerce/woocommerce-admin/pull/728 )
...
* Add stylelint
* Pinn dependencies
* Make fix command work
No double colons are allowed in npm commands.
2018-10-30 08:56:22 -04:00
Jonathan Belcher
4dae75d1fb
Adds PHPCS autofixer command to npm scripts ( https://github.com/woocommerce/woocommerce-admin/pull/730 )
...
* Adds PHPCS autofixer command to npm scripts
* Fix command so it doesnt fail
2018-10-30 08:53:43 -04:00
Jonathan Belcher
c3391e78f5
Fix code comment ( https://github.com/woocommerce/woocommerce-admin/pull/723 )
2018-10-29 15:46:51 -04:00
Jonathan Belcher
360c4c7083
Fix automattically fixable php lint warnings ( https://github.com/woocommerce/woocommerce-admin/pull/720 )
2018-10-29 12:19:07 -04:00
Albert Juhé Lluveras
856dde0d3d
Fix: date params were no longer persisted when navigating pages ( https://github.com/woocommerce/woocommerce-admin/pull/717 )
2018-10-29 16:43:30 +01:00
renovate[bot]
764d0dbb1f
Update dependency dealerdirect/phpcodesniffer-composer-installer to v0.5.0 ( https://github.com/woocommerce/woocommerce-admin/pull/712 )
2018-10-29 11:33:32 -04:00
renovate[bot]
e996d305cc
Update dependency css-loader to v1.0.1 ( https://github.com/woocommerce/woocommerce-admin/pull/719 )
2018-10-29 11:26:42 -04:00
renovate[bot]
56f87e25fa
Update wordpress monorepo ( https://github.com/woocommerce/woocommerce-admin/pull/715 )
2018-10-29 11:26:10 -04:00
Peter Fabian
11fc40364f
Merge pull request woocommerce/woocommerce-admin#702 from woocommerce/fix/691
...
Simplified compound expression to fix code for older PHP versions.
2018-10-29 11:45:44 +01:00
Albert Juhé Lluveras
2b3446540c
Move withSelect() inside table components ( https://github.com/woocommerce/woocommerce-admin/pull/707 )
...
* Move withSelect() inside table components
* Add isLoading prop to TableCard (https://github.com/woocommerce/woocommerce-admin/pull/713 )
* Add isLoading prop to TableCard
* Add onSort prop to TablePlaceholder
* All checkbox shouldn't be checked if the number of rows is 0
2018-10-29 08:57:05 +01:00
Paul Sealock
2b36f53253
Filters: Add query from config directly to url
...
Add/filter params to queries
2018-10-29 13:15:27 +13:00
Paul Sealock
7e5c124ce1
Filters: Add params to request query
2018-10-29 13:07:13 +13:00
Jonathan Belcher
57e46e3273
Updates default analytics menu ( https://github.com/woocommerce/woocommerce-admin/pull/658 )
...
* Updates default analytics menu
* Make revenue the default analytics page
* Fix header link to direct to Revenue report
* Fix highlighting with additional filters
2018-10-27 13:38:35 -04:00
Albert Juhé Lluveras
ec0e49ec10
Update tabular data header design ( https://github.com/woocommerce/woocommerce-admin/pull/698 )
2018-10-27 13:22:24 +02:00
Jonathan Belcher
fa73712433
Fixes hover background on first column in tables ( https://github.com/woocommerce/woocommerce-admin/pull/706 )
2018-10-26 13:59:38 -04:00
renovate[bot]
7288434f79
Update dependency eslint to v5.8.0 ( https://github.com/woocommerce/woocommerce-admin/pull/709 )
2018-10-26 13:22:44 -04:00
Albert Juhé Lluveras
eda609126e
Reverse the order highlighted points are rendered in charts ( https://github.com/woocommerce/woocommerce-admin/pull/701 )
2018-10-26 16:47:44 +02:00
renovate[bot]
9c0dd84677
Update dependency eslint-plugin-jest to v21.26.2 ( https://github.com/woocommerce/woocommerce-admin/pull/705 )
2018-10-26 10:19:23 -04:00
Peter Fabian
3d71ec9208
Simplified compound expression to fix code for older PHP versions.
2018-10-26 14:02:53 +02:00
Robert Elliott
fd846b3396
Merge pull request woocommerce/woocommerce-admin#684 from woocommerce/bug/x2-axis-dups
...
Bug: ensure duplicate parts of date removed from x2 ticks
2018-10-26 10:43:57 +02:00
Albert Juhé Lluveras
0caed9a28a
Create QUERY_DEFAULTS object with default values for queries ( https://github.com/woocommerce/woocommerce-admin/pull/686 )
2018-10-26 10:19:39 +02:00
Robert Elliott
36ef0a9459
updated dotRadius and lineStroke based on viewport size
2018-10-26 10:10:29 +02:00
Robert Elliott
2551696c6a
show circles if the width to x-tick ratio is greater than 36px
2018-10-26 09:57:55 +02:00
Robert Elliott
a538ef7234
adjust chart height and dots
2018-10-26 09:57:55 +02:00
Paul Sealock
01fa16aa35
Merge pull request woocommerce/woocommerce-admin#679 from woocommerce/add/date-picker-dashboard
...
Dashboard: Add DatePicker
2018-10-26 10:05:04 +13:00
renovate[bot]
56f047c6f3
Pin dependency @babel/plugin-transform-react-jsx to 7.0.0 ( https://github.com/woocommerce/woocommerce-admin/pull/680 )
2018-10-25 15:26:06 -04:00
renovate[bot]
6ce21d5fff
Update dependency webpack to v4.23.1 ( https://github.com/woocommerce/woocommerce-admin/pull/683 )
2018-10-25 15:24:44 -04:00
David Levin
515324a3c2
Merge pull request woocommerce/woocommerce-admin#688 from woocommerce/update/activity-tab-style
...
remove rounded corners from activity bar icon buttons
2018-10-25 10:52:48 -07:00
Allen Snook
a8be179ebd
Merge pull request woocommerce/woocommerce-admin#649 from woocommerce/add/store-notice-setting-moved
...
Activity Panel: Inbox: When the user updates WooCommerce, add a note alerting that the store notice setting has moved
2018-10-25 10:06:30 -07:00
David Levin
bd0dccd132
remove rounded corners from activity bar icon buttons
2018-10-25 08:58:30 -07:00
Robert Elliott
e6a609ae7a
fix compareStrings issue
2018-10-25 13:47:31 +02:00
Robert Elliott
54ffd1bd0a
Merge pull request woocommerce/woocommerce-admin#638 from woocommerce/add/charts-full-year
...
Chart: updated intervals to use the full year
2018-10-25 12:23:32 +02:00
Albert Juhé Lluveras
1c819740f4
Persist date params in Products table link ( https://github.com/woocommerce/woocommerce-admin/pull/671 )
2018-10-25 12:07:30 +02:00
Robert Elliott
e21a6022e7
updated lib/date iintervals to use the full year incl. centruy,
2018-10-25 11:12:27 +02:00
Robert Elliott
97a819a44d
Merge pull request woocommerce/woocommerce-admin#635 from woocommerce/add/chart-uneven-ticks
...
Chart: remove last x-axis tick in an uneven series
2018-10-25 11:10:31 +02:00
Allen Snook
e7ba47e958
Go ahead and 1) handle the variety of queries that can be used
...
as action button links and 2) enable the button (tracking will
come next). Also had to tweak CSS for activity panel item buttons
a little
2018-10-24 18:13:44 -07:00
Paul Sealock
02383f0ce7
Dashboard: Add DatePicker
2018-10-25 11:40:59 +13:00
Jonathan Belcher
dec6022638
Updates wc-admin menu order and entries woocommerce/woocommerce-admin#624 ( https://github.com/woocommerce/woocommerce-admin/pull/656 )
...
* Updates wc-admin menu order and entries woocommerce/woocommerce-admin#624
* Remove menu items for pages that are not ready
2018-10-24 17:58:31 -04:00
Kelly Dwan
d5c2787520
Build: Update babel config ( https://github.com/woocommerce/woocommerce-admin/pull/677 )
...
* Update babel config
* Fix typo in babel config
* Update babel config, fix missing transform
2018-10-24 17:17:23 -04:00
Jonathan Belcher
86b9a31735
Updates Package Lock ( https://github.com/woocommerce/woocommerce-admin/pull/676 )
2018-10-24 16:20:47 -04:00
renovate[bot]
393a56183b
Update dependency webpack to v4.23.0 ( https://github.com/woocommerce/woocommerce-admin/pull/673 )
2018-10-24 16:16:18 -04:00
renovate[bot]
72ed89a19c
Update dependency eslint-plugin-jest to v21.26.1 ( https://github.com/woocommerce/woocommerce-admin/pull/672 )
2018-10-24 16:11:14 -04:00
Jonathan Belcher
fff67b1e4b
Fixes PHP 5.2 compatibility issues ( https://github.com/woocommerce/woocommerce-admin/pull/653 )
2018-10-24 14:49:58 -04:00
Jonathan Belcher
8825c91802
Updates Package Lock ( https://github.com/woocommerce/woocommerce-admin/pull/670 )
2018-10-24 11:22:29 -04:00
renovate[bot]
8acafde981
Update dependency autoprefixer to v9.3.1 ( https://github.com/woocommerce/woocommerce-admin/pull/669 )
2018-10-24 11:18:43 -04:00
renovate[bot]
cc635d7697
Update react monorepo to v16.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/662 )
2018-10-24 11:17:16 -04:00
Job
6e36918db3
Fixes woocommerce/woocommerce-admin#664 ( https://github.com/woocommerce/woocommerce-admin/pull/665 )
2018-10-24 17:12:45 +02:00
Albert Juhé Lluveras
1a2b28fee8
Don't include hidden columns when downloading a table as CSV ( https://github.com/woocommerce/woocommerce-admin/pull/667 )
2018-10-24 16:26:19 +02:00
Albert Juhé Lluveras
2cce4e90c5
Use downloadable prop in Products report table ( https://github.com/woocommerce/woocommerce-admin/pull/668 )
2018-10-24 16:25:53 +02:00
Albert Juhé Lluveras
d770e9a7e0
Fix resolvers tests giving false positives ( https://github.com/woocommerce/woocommerce-admin/pull/666 )
2018-10-24 16:25:42 +02:00
Jonathan Belcher
812d72dd9f
Adds php compatibility range for phpcs ( https://github.com/woocommerce/woocommerce-admin/pull/618 )
...
* Adds php compatibility range for phpcs
* Change minimun version to 5.2
2018-10-24 09:09:33 -04:00
Robert Elliott
6b2bd1e11d
tests and jsdocs
2018-10-24 13:13:17 +02:00
Robert Elliott
bc098e58d4
refactor compareStrings
2018-10-24 13:00:29 +02:00
Robert Elliott
d152686a65
approach to remove duplicate string characters from prev x-tick
2018-10-24 12:42:43 +02:00
Robert Elliott
133e0a7646
remove 'or last'
2018-10-24 12:39:55 +02:00
Robert Elliott
cf3d3eb0f0
remove last tick in an uneven series
2018-10-24 12:39:55 +02:00
Albert Juhé Lluveras
29f68a9ce8
Products table ( https://github.com/woocommerce/woocommerce-admin/pull/619 )
...
* Add Products table
* Update tests
* Cleanup
* Make placeholder table have the correct sorted column selected
* Change default sort to items_sold & desc
* Fix wrong CSV filename
* Remove unnecessary constructor in ProductsReportTable
* Add @TODO comment to Products table summary
* Set ProductsReportTable link to wc-admin type
* Make sure categories is an array before using map
2018-10-24 09:50:05 +02:00
Albert Juhé Lluveras
7be34b3f37
Move Download table logic inside the TableCard component ( https://github.com/woocommerce/woocommerce-admin/pull/652 )
...
* Move Download table logic inside the TableCard component
* Make title lowercase inside generateCSVFileName
* Update JSDoc comment
2018-10-24 09:48:20 +02:00
Paul Sealock
240599c095
Persist date related parameters on report navigation
2018-10-24 12:16:35 +13:00
Jonathan Belcher
a29799eb85
Fixes PHP errors caused by linting fixes ( https://github.com/woocommerce/woocommerce-admin/pull/650 )
2018-10-23 19:12:49 -04:00
Jonathan Belcher
cb69cf1051
Updates Package Lock ( https://github.com/woocommerce/woocommerce-admin/pull/657 )
2018-10-23 15:13:55 -04:00
Claudio Sanches
1fd5714162
Merge pull request woocommerce/woocommerce-admin#644 from woocommerce/fix/lints-lib-admin
...
Fixes lints in lib/admin.php
2018-10-23 15:08:34 -03:00
renovate[bot]
bb48e0bc2b
Update dependency phpunit/phpunit to v7.4.3 ( https://github.com/woocommerce/woocommerce-admin/pull/651 )
2018-10-23 14:08:12 -04:00
renovate[bot]
2a68549e30
Update dependency @wordpress/api-fetch to v2.1.0 ( https://github.com/woocommerce/woocommerce-admin/pull/625 )
2018-10-23 14:00:15 -04:00
renovate[bot]
a978fa1e5e
Update dependency eslint-plugin-jest to v21.26.0 ( https://github.com/woocommerce/woocommerce-admin/pull/629 )
2018-10-23 13:59:42 -04:00
renovate[bot]
d40b0ccc94
Update dependency phpunit/phpunit to v7 ( https://github.com/woocommerce/woocommerce-admin/pull/600 )
...
* Update dependency phpunit/phpunit to v7
* Adds composer.lock
2018-10-23 13:56:06 -04:00
Jonathan Belcher
46c369afb1
Fixes lints in class-wc-admin-reports-data-store ( https://github.com/woocommerce/woocommerce-admin/pull/643 )
...
* Fixes lints in class-wc-admin-reports-data-store
* Fix documentation
2018-10-23 13:55:03 -04:00
Jonathan Belcher
a6243b8dbe
Adds proper doc block with proper TODO
2018-10-23 13:54:20 -04:00
Jonathan Belcher
50aed9121a
Update admin.php
2018-10-23 13:45:43 -04:00
Allen Snook
51991d1b27
Remove inadvertently added blank line
2018-10-23 10:41:17 -07:00
Allen Snook
c45a6cf5de
On update, add a note alerting that the store notice setting has moved
2018-10-23 10:30:33 -07:00
Claudio Sanches
645799c1a0
Merge pull request woocommerce/woocommerce-admin#642 from woocommerce/fix/linting-error-in-test-sample
...
Fix linting errors in tests/test-sample.php
2018-10-23 14:09:04 -03:00
Claudio Sanches
8b67f5f50d
Merge pull request woocommerce/woocommerce-admin#646 from woocommerce/fix/lints-class-wc-admin-reports-products-query.php
...
Fixes PHP 5.2 compatibility issues
2018-10-23 14:04:40 -03:00
Claudio Sanches
ebf79b489a
Merge pull request woocommerce/woocommerce-admin#647 from woocommerce/fix/lints-class-wc-admin-reports-products-stats-query.php
...
Fixes PHP 5.2 compatibility issues
2018-10-23 14:04:03 -03:00
Jonathan Belcher
2be2d78306
Fixes PHP 5.2 compatibility issues
2018-10-23 12:50:34 -04:00
Jonathan Belcher
b58043380e
Fixes PHP 5.2 compatibility issues
2018-10-23 12:47:51 -04:00
Jonathan Belcher
39ee05cc70
Fixes PHP 5.2 compatibility issues
2018-10-23 12:43:55 -04:00
Jonathan Belcher
1766f2ceb1
PHPCS ignore one line
2018-10-23 12:07:55 -04:00
Jonathan Belcher
03c8e42364
Fix errors in lib/common.php ( https://github.com/woocommerce/woocommerce-admin/pull/641 )
...
* Fix errors in lib/common.php
* Update package.json
2018-10-23 11:55:37 -04:00
Jonathan Belcher
4f3a102e18
Fixes lints in lib/admin.php
2018-10-23 11:52:18 -04:00
renovate[bot]
76a9300b35
Pin dependency composer/installers to ~1.6 ( https://github.com/woocommerce/woocommerce-admin/pull/636 )
2018-10-23 11:12:17 -04:00
renovate[bot]
9de04598a9
Update dependency webpack to v4.22.0 ( https://github.com/woocommerce/woocommerce-admin/pull/617 )
2018-10-23 11:10:49 -04:00
renovate[bot]
19295ebcfb
Update dependency autoprefixer to v9.3.0 ( https://github.com/woocommerce/woocommerce-admin/pull/637 )
2018-10-23 11:09:45 -04:00
Jonathan Belcher
daa929b887
Add file doc block to fix linting issue ( https://github.com/woocommerce/woocommerce-admin/pull/628 )
2018-10-23 11:08:49 -04:00
Jonathan Belcher
521fc2528c
Removes phpcs from npm run lint ( https://github.com/woocommerce/woocommerce-admin/pull/640 )
2018-10-23 11:08:00 -04:00
Jonathan Belcher
8e46a78a2f
Fix linting errors in tests/test-sample.php
2018-10-23 09:57:45 -04:00
Albert Juhé Lluveras
b757247c52
Move Revenue table to its own component ( https://github.com/woocommerce/woocommerce-admin/pull/623 )
...
* Move revenue table to its own component
* Remove unnecessary constructor in RevenueReportTable
2018-10-23 10:07:23 +02:00
Albert Juhé Lluveras
7979dbc474
Make Orders placeholder table have the correct sorted column ( https://github.com/woocommerce/woocommerce-admin/pull/620 )
...
* Make Orders placeholder table have the correct sorted column
* Fix wrong CSV filename
2018-10-23 09:49:04 +02:00
Allen Snook
2147b23c4d
Correctly define admin notes schema
2018-10-22 13:15:44 -07:00
Jonathan Belcher
24ec81dddd
Adds phpcs npm command ( https://github.com/woocommerce/woocommerce-admin/pull/609 )
...
* Adds phpcs npm command
* fix naming of commands
2018-10-22 12:34:28 -04:00
Allen Snook
bf898e642b
Merge pull request woocommerce/woocommerce-admin#566 from woocommerce/add/admin-notices-new-sales-record
...
Activity Panel: Inbox: New Sales Record Note
2018-10-22 09:26:13 -07:00
Jonathan Belcher
e85ad7d410
Updates package lock ( https://github.com/woocommerce/woocommerce-admin/pull/607 )
...
* Updates package lock
* Recreate package-lock
2018-10-22 12:23:53 -04:00
Jonathan Belcher
7bc2767301
Updates PHPCS rule names ( https://github.com/woocommerce/woocommerce-admin/pull/610 )
2018-10-22 12:20:34 -04:00
Jonathan Belcher
ecb3013fd3
Uses PHPBCF to autofix warnings and errors ( https://github.com/woocommerce/woocommerce-admin/pull/611 )
2018-10-22 12:20:14 -04:00
Allen Snook
f0495c7071
Rename wc_admin_daily function to do_wc_admin_daily to distinguish it from the hook
2018-10-22 09:09:28 -07:00
Timmy Crawford
f8d70506a1
Update/track usage logic ( https://github.com/woocommerce/woocommerce-admin/pull/561 )
...
* Tracks: Don't track if Jetpack is not present or in dev env.
* Check for JETPACK__VERSION instead.
* Fix linting errors
* Yoda conditions use you must
2018-10-22 08:56:02 -07:00
Joshua T Flowers
88058b2bf4
Add default report data if empty product data is returned ( https://github.com/woocommerce/woocommerce-admin/pull/581 )
...
* Add default report data if empty product data is returned
* Remove unused argument ''
* Remove filter params
2018-10-22 11:51:24 -04:00
Albert Juhé Lluveras
bfcc817240
Create EmptyTable component ( https://github.com/woocommerce/woocommerce-admin/pull/605 )
...
* Create EmptyTable component
* Update failing test
* Make EmptyTable a functional component
* Add EmptyTable to example.md
2018-10-20 13:16:53 +02:00
renovate[bot]
1dfd3b186b
Update wordpress monorepo to v2.1.4 ( https://github.com/woocommerce/woocommerce-admin/pull/614 )
2018-10-19 20:35:53 -04:00
Allen Snook
6a25fb2249
Remove unneeded set_id in note deletion handler
2018-10-19 16:24:03 -07:00
Allen Snook
a46d83aea3
Rewrite the queries a bit to leverage prepare when possible
2018-10-19 15:48:38 -07:00
Allen Snook
bb14dcd995
One argument per line in multi argument calls
2018-10-19 15:05:40 -07:00
Allen Snook
0032da31f5
Remove constructor for notes class as not needed
2018-10-19 14:52:53 -07:00
Allen Snook
3d7b92f58f
Make it a proper daily scheduled event
2018-10-19 14:47:39 -07:00
Allen Snook
04b33f9e6b
Hook up the remainder of the sales record message. There can only be one.
2018-10-19 14:45:03 -07:00
Allen Snook
d05a1c63ff
Calculate previous days sales, add note if new max
2018-10-19 14:41:37 -07:00
Allen Snook
1a3c3f2c86
Undo whitespace change introduced during rebasing
2018-10-19 14:24:22 -07:00
Allen Snook
ffb6ddfafc
Remove package lock from this branch
2018-10-19 14:21:54 -07:00
Allen Snook
9638b063a0
Add unit test for sanitize html
2018-10-19 14:21:54 -07:00
Allen Snook
95080bd68b
Display an error to the user if inbox fetching fails
2018-10-19 14:21:54 -07:00
Allen Snook
b0be112277
Add unit tests for notes store
2018-10-19 14:21:54 -07:00
Allen Snook
bd8fd2c9ec
No need to sort now - the store is ordering correctly
2018-10-19 14:21:54 -07:00
Allen Snook
a7bbb4766d
Correct typo in get path
2018-10-19 14:21:54 -07:00
Allen Snook
2dfc410079
Remove console logging
2018-10-19 14:21:54 -07:00
Allen Snook
ad06cee25d
Update notes store to include queries
2018-10-19 14:21:54 -07:00
Allen Snook
8622ee7fc4
Disable the activity buttons for now (REST API does not update yet)
2018-10-19 14:21:54 -07:00
Allen Snook
8378423077
Newest notes at the top, please
2018-10-19 14:21:54 -07:00
Allen Snook
b8a83bf1e1
Allow selected tags through to the note content
2018-10-19 14:21:54 -07:00
Allen Snook
279be9e66e
Add notes to redux, connect to inbox
2018-10-19 14:21:53 -07:00
Allen Snook
47575a9895
Begin adding notes store
2018-10-19 14:21:53 -07:00
Allen Snook
3b2791acf4
Accept page and per page params in REST query, return total count of notes in header
2018-10-19 14:21:06 -07:00
renovate[bot]
4f37d1b776
Update dependency wimg/php-compatibility to v9 ( https://github.com/woocommerce/woocommerce-admin/pull/601 )
2018-10-19 16:42:45 -04:00
Jonathan Belcher
3e92954438
Fixes React Live by pinning buble version ( https://github.com/woocommerce/woocommerce-admin/pull/608 )
...
This (sort of) pins buble to the last good version, 0.19.4. react-live uses a ^ version, which picked up the broken release during the renovate update sweep.
2018-10-19 16:36:02 -04:00
renovate[bot]
4728c7c9d6
Update dependency wp-coding-standards/wpcs to v1 ( https://github.com/woocommerce/woocommerce-admin/pull/604 )
2018-10-19 16:10:13 -04:00
Jonathan Belcher
9d5e0dceb6
Temporary fix for dev docs while react-live is fixed ( https://github.com/woocommerce/woocommerce-admin/pull/606 )
...
* Temporary fix for dev docs while react-live is fixed
* Return null instead of th element
2018-10-19 14:06:49 -04:00
renovate[bot]
41536b35cb
Update dependency react-live to v1.12.0 ( https://github.com/woocommerce/woocommerce-admin/pull/590 )
2018-10-19 13:25:39 -04:00
renovate[bot]
0bff5beecf
Update dependency husky to v1 ( https://github.com/woocommerce/woocommerce-admin/pull/599 )
2018-10-19 13:25:11 -04:00
renovate[bot]
cc36f993d7
Update dependency babel-eslint to v10 ( https://github.com/woocommerce/woocommerce-admin/pull/598 )
2018-10-19 13:24:50 -04:00
renovate[bot]
f850eb1a40
Update wordpress monorepo ( https://github.com/woocommerce/woocommerce-admin/pull/597 )
2018-10-19 13:06:42 -04:00
renovate[bot]
0da0cb9b05
Update react monorepo to v16.5.2 ( https://github.com/woocommerce/woocommerce-admin/pull/596 )
2018-10-19 13:01:49 -04:00
renovate[bot]
097aae16c2
Update dependency webpack-cli to v3.1.2 ( https://github.com/woocommerce/woocommerce-admin/pull/595 )
2018-10-19 13:00:20 -04:00
renovate[bot]
35c644b4f7
Update dependency webpack to v4.21.0 ( https://github.com/woocommerce/woocommerce-admin/pull/594 )
2018-10-19 12:58:35 -04:00
renovate[bot]
83621afc85
Update dependency style-loader to v0.23.1 ( https://github.com/woocommerce/woocommerce-admin/pull/593 )
2018-10-19 12:56:48 -04:00
renovate[bot]
6797a2a80f
Update dependency recast to v0.16.0 ( https://github.com/woocommerce/woocommerce-admin/pull/592 )
2018-10-19 12:55:42 -04:00
renovate[bot]
1de58e7573
Update dependency node-sass to v4.9.4 ( https://github.com/woocommerce/woocommerce-admin/pull/589 )
2018-10-19 12:54:21 -04:00
Albert Juhé Lluveras
cf2152eafd
IE11: fix table header misalignment. ( https://github.com/woocommerce/woocommerce-admin/pull/603 )
2018-10-19 17:40:28 +02:00
Albert Juhé Lluveras
508141b709
IE11: fix tooltip not correctly positioned in charts ( https://github.com/woocommerce/woocommerce-admin/pull/602 )
2018-10-19 17:39:14 +02:00
Allen Snook
3155d5ec24
Merge pull request woocommerce/woocommerce-admin#507 from woocommerce/add/admin-notices-rest-api
...
Activity Panel: Inbox: Add REST API (GETters only)
2018-10-19 08:04:46 -07:00
renovate[bot]
7f549f20bb
Update dependency marked to v0.5.1 ( https://github.com/woocommerce/woocommerce-admin/pull/588 )
2018-10-19 10:08:05 -04:00
renovate[bot]
891aeee03d
Update dependency eslint-plugin-jsx-a11y to v6.1.2 ( https://github.com/woocommerce/woocommerce-admin/pull/587 )
2018-10-19 10:05:22 -04:00
renovate[bot]
8d22e614c2
Update dependency eslint-plugin-jest to v21.25.1 ( https://github.com/woocommerce/woocommerce-admin/pull/586 )
2018-10-19 09:58:49 -04:00
renovate[bot]
98f17ca36a
Update dependency eslint-loader to v2.1.1 ( https://github.com/woocommerce/woocommerce-admin/pull/585 )
2018-10-19 09:53:36 -04:00
renovate[bot]
2393a736ce
Update dependency eslint to v5.7.0 ( https://github.com/woocommerce/woocommerce-admin/pull/584 )
2018-10-19 09:44:01 -04:00
renovate[bot]
8fb274c1d2
Update dependency babel-loader to v8.0.4 ( https://github.com/woocommerce/woocommerce-admin/pull/578 )
2018-10-19 09:33:27 -04:00
renovate[bot]
575013094e
Update dependency autoprefixer to v9.2.1 ( https://github.com/woocommerce/woocommerce-admin/pull/577 )
2018-10-19 09:31:25 -04:00
renovate[bot]
bc15a107dd
Update dependency ast-types to v0.11.6 ( https://github.com/woocommerce/woocommerce-admin/pull/576 )
2018-10-19 09:25:57 -04:00
Jonathan Belcher
0828ea5258
Fixes number formatting on charts ( https://github.com/woocommerce/woocommerce-admin/pull/529 )
2018-10-19 09:23:47 -04:00
Paul Sealock
b168f36cf2
Merge pull request woocommerce/woocommerce-admin#583 from woocommerce/fix/primary-secondary-typo
...
ChartData: fix typo in primary/secondary data
2018-10-19 11:17:09 +13:00
Paul Sealock
894105e601
ChartData: fix typo in primary/secondary data
2018-10-19 10:15:03 +13:00
Timmy Crawford
d64fda9c54
Orders Report: Fix key prop warning. ( https://github.com/woocommerce/woocommerce-admin/pull/580 )
2018-10-18 13:45:59 -07:00
David Levin
f74ae15b91
Update the order of orders report summary numbers ( https://github.com/woocommerce/woocommerce-admin/pull/547 )
...
* Update the order of orders report summary numbers
* Teamwork makes the dreamwork.
2018-10-18 13:45:36 -07:00
Paul Sealock
71b2435d96
Merge pull request woocommerce/woocommerce-admin#565 from woocommerce/try/fix-dry-queries-2nd-round
...
Reports: create queries for data requests in one place
2018-10-19 09:33:12 +13:00
Paul Sealock
d4564853c6
Merge pull request woocommerce/woocommerce-admin#538 from woocommerce/add/filters-search
...
Add/filters search
2018-10-19 09:32:47 +13:00
renovate[bot]
33ea703c31
Update babel monorepo to v7.1.2 ( https://github.com/woocommerce/woocommerce-admin/pull/575 )
2018-10-18 15:42:28 -04:00
Joshua T Flowers
0f5ab33ffe
Update sorted column background color ( https://github.com/woocommerce/woocommerce-admin/pull/571 )
2018-10-18 14:45:06 -04:00
Joshua T Flowers
098bf7a2bc
Deactivate plugin if dependencies not met ( https://github.com/woocommerce/woocommerce-admin/pull/530 )
...
* Deactivate plugin if dependencies not met
Wc-admin has hooks that install tables. Currently if WC is not active on install, those hooks don't fire and initial tables will never be created resulting in API errors
* Unset plugin activation message if dependencies not met
2018-10-18 14:37:49 -04:00
Joshua T Flowers
698d48a7b6
Update checkbox column styling ( https://github.com/woocommerce/woocommerce-admin/pull/572 )
...
* Add cellClassName option so we can pass class names to cells
* Add styling for checkbox columns
2018-10-18 14:24:31 -04:00
renovate[bot]
9c147c6e82
Pin dependencies ( https://github.com/woocommerce/woocommerce-admin/pull/573 )
2018-10-18 12:57:29 -04:00
Jonathan Belcher
06163430a4
Add products report Chart and Summary ( https://github.com/woocommerce/woocommerce-admin/pull/548 )
...
* Add products report Chart and SUmmary
* Move items sold to primary position
2018-10-18 12:54:38 -04:00
renovate[bot]
3c5d7fc08d
Add renovate.json ( https://github.com/woocommerce/woocommerce-admin/pull/552 )
2018-10-18 12:26:57 -04:00
Joshua T Flowers
4a6b48dd92
Change link focus color in table links ( https://github.com/woocommerce/woocommerce-admin/pull/570 )
2018-10-18 11:44:26 -04:00
Claudio Sanches
f9ebb78676
Merge pull request woocommerce/woocommerce-admin#488 from woocommerce/feature/438
...
Imported dev files from WooCommerce and updated pre-commit hook
2018-10-18 11:53:13 -03:00
Claudio Sanches
31a91becdb
Merge pull request woocommerce/woocommerce-admin#491 from woocommerce/fix/474
...
Fixed textdomain
2018-10-18 11:52:28 -03:00
Albert Juhé Lluveras
e545ae4d22
Remove unnecessary opacity values from charts code ( https://github.com/woocommerce/woocommerce-admin/pull/569 )
2018-10-18 14:56:54 +02:00
Albert Juhé Lluveras
8cf34964e5
Align status indicator to the right in Orders table ( https://github.com/woocommerce/woocommerce-admin/pull/539 )
...
* Align status indicator to the right in Orders table
* Align 'Order' column to the right in Orders table
2018-10-18 12:43:45 +02:00
Paul Sealock
f8e824b609
remove uneeded filters
2018-10-18 21:02:51 +13:00
Paul Sealock
615c369ac8
Table: add missing CSS bracket
2018-10-18 15:58:39 +13:00
Paul Sealock
aa603eabab
Filters: fix updates and configs
2018-10-18 12:48:24 +13:00
Paul Sealock
63c18fb51b
tests
2018-10-18 12:24:36 +13:00
Joshua T Flowers
d611817fc7
Change componentDidUnmount to componentWillUnmount ( https://github.com/woocommerce/woocommerce-admin/pull/563 )
2018-10-17 19:12:04 -04:00
Paul Sealock
ecdebd8a51
jsDoc
2018-10-18 12:06:33 +13:00
Paul Sealock
cf358f50fc
Reports: create queries for data requests in one place
2018-10-18 12:02:31 +13:00
Joshua T Flowers
34d7944988
Modify table download button styling ( https://github.com/woocommerce/woocommerce-admin/pull/560 )
2018-10-17 19:01:57 -04:00
Allen Snook
7203fa0e11
Merge pull request woocommerce/woocommerce-admin#557 from woocommerce/add/tracks-privacy-to-readme
...
Usage Tracking: Add privacy notice regarding wp.com
2018-10-17 15:20:55 -07:00
Joshua T Flowers
5deecbb6ba
Add table shadow element to tables ( https://github.com/woocommerce/woocommerce-admin/pull/546 )
...
* Add table shadow element to tables
* Update table shadow bg color
* Remove redundant styles
* Remove unused ref
* Update shadow relative to container table body
Use the container body so we don't have to update the transform on scroll for the table shadow. Prevents jankiness on low-end devices
* Move table shadow to pseudo element
2018-10-17 17:56:09 -04:00
Jonathan Belcher
74d8d431e4
Removes unwanted orders report filters ( https://github.com/woocommerce/woocommerce-admin/pull/553 )
2018-10-17 16:50:05 -04:00
Allen Snook
254df9a117
Add privacy notice regarding wp.com
2018-10-17 13:49:06 -07:00
Jonathan Belcher
f6353591e3
Adds report error component ( https://github.com/woocommerce/woocommerce-admin/pull/543 )
...
* Adds report error component
* Add ReportError to chart and summary
* Review fixes
2018-10-17 14:56:50 -04:00
Robert Elliott
141179b154
Component - Chart: focus data points on hover with tooltip ( https://github.com/woocommerce/woocommerce-admin/pull/468 )
...
* focus data points on hover with tooltip
* Add new proprty to getdateSpaces test
2018-10-17 11:08:34 -07:00
Jonathan Belcher
f6d90821af
Fix phpcs errors
2018-10-17 12:51:48 -04:00
Jonathan Belcher
8fec1f3fc1
Merge branch 'master' into feature/438
2018-10-17 12:44:33 -04:00
Jonathan Belcher
d800054c1e
Merge branch 'master' into fix/474
2018-10-17 12:42:03 -04:00
Albert Juhé Lluveras
3982ebc32e
Create appendTimestamp() utils function ( https://github.com/woocommerce/woocommerce-admin/pull/542 )
...
* appendTimestamp() utils function
* Make appendTimestamp() to throw and error if timeOfDay is not a valid value
2018-10-17 18:01:58 +02:00
Joshua T Flowers
206e0b5b7e
Fix pagination alignment/451 ( https://github.com/woocommerce/woocommerce-admin/pull/541 )
...
* Fix pagination alignment centering and wrap on mobile
* Match input and button heights for pagination
2018-10-17 11:42:53 -04:00
Joshua T Flowers
85e6aad4a3
Reposition chevron icon for first column in tables ( https://github.com/woocommerce/woocommerce-admin/pull/549 )
2018-10-17 11:42:33 -04:00
Joshua T Flowers
bb66708107
Change toggle background color to woocommerce purple ( https://github.com/woocommerce/woocommerce-admin/pull/551 )
2018-10-17 11:36:49 -04:00
Albert Juhé Lluveras
36c37afe49
Hide day from X axis when the time period is too long ( https://github.com/woocommerce/woocommerce-admin/pull/525 )
...
* Refactor getXTicks
* Hide day from X axis when the time period is too long
* Fix X axis labels misaligned in charts
* Align axis ticks to the first day of the month when not displaying the day number
* Store threshold in a variable
* Add missing JSDoc
* Fix charts hanging when the number of days selected was exactly 180
* Improve function naming
* Fix dayTicksThreshold mismatch between date format and chart layout
2018-10-17 15:44:43 +02:00
Timmy Crawford
e8fe6bac83
Remove chart from dashboard. ( https://github.com/woocommerce/woocommerce-admin/pull/544 )
2018-10-16 18:20:24 -07:00
Allen Snook
2a94177f71
Fix per_page default handling, json encoding options, schema help
2018-10-16 12:49:01 -07:00
Allen Snook
d450ea6545
Strip slashes from titles, content and action (button) labels
2018-10-16 12:49:01 -07:00
Allen Snook
80ace9c9f3
Add publicly consumable schema info
2018-10-16 12:49:01 -07:00
Allen Snook
054fbb4ee3
Accept page and per page params in REST query, return total count of notes in header
2018-10-16 12:49:01 -07:00
Allen Snook
68b799f796
Correctly prepare dates in the response
2018-10-16 12:49:01 -07:00
Allen Snook
3b988d954c
Correct copypasta in comments
2018-10-16 12:49:01 -07:00
Allen Snook
6dc4564feb
Add single and multiple note GETters
2018-10-16 12:49:01 -07:00
Jonathan Belcher
69a47f0019
Use analytics summary and graph components in revenue report ( https://github.com/woocommerce/woocommerce-admin/pull/523 )
2018-10-16 13:42:13 -04:00
Jonathan Belcher
386933a182
Refactors out summary and graph ( https://github.com/woocommerce/woocommerce-admin/pull/517 )
...
* Refactors out summary and chart
2018-10-16 12:07:43 -04:00
Jonathan Belcher
4e608e8706
Remove format comment
2018-10-16 11:56:31 -04:00
Jonathan Belcher
ccd72b7e59
Remove format comment
2018-10-16 11:56:16 -04:00
Jonathan Belcher
a8432e7a90
Remove format comment
2018-10-16 11:55:59 -04:00
Albert Juhé Lluveras
ae6652b26c
Send params with Orders table API calls ( https://github.com/woocommerce/woocommerce-admin/pull/519 )
...
* Send params with Orders table API calls
* Add onError case and caching for Orders calls
* Remove unused actions
* Load only 'processing', 'on-hold' and 'completed' orders
* Use NAMESPACE constant instead of hard-coded value
* Comment typos
* Add tests to Orders reducer, resolvers and selectors
* Typos
* Fix JSDoc mismatch
2018-10-16 10:50:07 +02:00
Paul Sealock
76bf741fc9
Advanced Filters: update README
2018-10-16 11:03:17 +13:00
Paul Sealock
4bc8c82820
Merge pull request woocommerce/woocommerce-admin#457 from woocommerce/fix/advanced-filters-i18n
...
i18n: Advanced Filters strings
2018-10-16 10:54:45 +13:00
Jonathan Belcher
c7f56f8a07
Adds WooCommerce version requirement and message ( https://github.com/woocommerce/woocommerce-admin/pull/524 )
2018-10-15 15:23:09 -04:00
Albert Juhé Lluveras
8120cc7d6a
Rename 'mock-data' files so they don't have the same file name ( https://github.com/woocommerce/woocommerce-admin/pull/522 )
2018-10-15 19:06:37 +02:00
Paul Sealock
e6084e2af9
Merge pull request woocommerce/woocommerce-admin#501 from woocommerce/fix/tabpanel-current-tab
...
DatePicker: update selected tab to reflect update to TabPanel component
2018-10-15 21:34:31 +13:00
Paul Sealock
ea6f14e7ba
Tag: use label in removeLabel
2018-10-15 15:15:32 +13:00
Albert Juhé Lluveras
17e9f151be
Create ViewMoreList component ( https://github.com/woocommerce/woocommerce-admin/pull/503 )
...
* Create ViewMoreList component
* Update Tag component with the new style and popover
* Display number of times an item was bought in the Orders table (2x, 1x, ...)
* Refactor ViewMoreList so the elements to display in the list and the popover are different props
* Cleanup
* Fix CSV values for products and coupons
* Minor fixes
* Rename ViewMoreList prop from 'popoverItems' to 'items'
* Cleanup props
* Add ViewMoreList to devdocs examples
* Order Tag props alphabetically
* Move withState to export line so it doesn't break docs generation
* Rename 'is-not-unique' class name to 'is-inline'
* Fix missing comma
* Remove margin from popover list
* Use pseudo-selector to replace 'is-inline' class in cell links
2018-10-12 23:29:25 +02:00
David Levin
b64fc4f0a1
Fix y-axis ticks
2018-10-12 13:39:38 -07:00
David Levin
564e4cfd66
change reverse line chart zindex and remove decinmals from yaxis ticks
2018-10-12 09:08:57 -07:00
Jonathan Belcher
96f2024305
Round average orders in order summary ( https://github.com/woocommerce/woocommerce-admin/pull/515 )
2018-10-12 11:02:58 -04:00
Jonathan Belcher
e93fed650e
Merge pull request woocommerce/woocommerce-admin#504 from woocommerce/add/410-order-summary-numbers
...
Adds Orders Summary and Orders Graph
2018-10-12 10:18:56 -04:00
Paul Sealock
178135eea5
i18n: Advanced Filters strings
2018-10-12 16:58:35 +13:00
Paul Sealock
76eb49125e
Search: Add inline tags
2018-10-12 11:34:08 +13:00
Kelly Dwan
cea79c3b96
Update variable name
2018-10-11 15:43:56 -04:00
Kelly Dwan
6df6594ee1
DatePicker: update selected tab code to reflect update to TabPanel component
2018-10-11 15:32:02 -04:00
Jonathan Belcher
da8ad49762
Re-add Render Table
2018-10-11 15:30:43 -04:00
Jonathan Belcher
27fa0bfc85
Follow new summary numbers pattern
2018-10-11 15:27:29 -04:00
Jonathan Belcher
e3224a5abb
Merge branch 'master' into add/410-order-summary-numbers
2018-10-11 14:45:35 -04:00
Justin Shreve
c340a808a7
Break out summary number logic from chart/table ( https://github.com/woocommerce/woocommerce-admin/pull/510 )
2018-10-11 14:45:01 -04:00
Kelly Dwan
3d297a8f5c
Reports: Update summary number label based on selected compare interval ( https://github.com/woocommerce/woocommerce-admin/pull/506 )
2018-10-11 13:46:56 -04:00
Jonathan Belcher
f8468ddcf4
Merge pull request woocommerce/woocommerce-admin#497 from woocommerce/update/refactor-out-jquery
...
Refactors code to vanilla js and removes jQuery
2018-10-11 13:19:55 -04:00
Jonathan Belcher
b65cddd9c4
Merge pull request woocommerce/woocommerce-admin#498 from woocommerce/add/github-templates
...
Adds GitHub templates to ensure good issue and PR descriptions
2018-10-11 13:18:59 -04:00
Jonathan Belcher
26300fb953
Adds graphs
2018-10-11 13:07:59 -04:00
Jonathan Belcher
aa56621ab8
Get Order Summary working with API
2018-10-11 12:00:06 -04:00
Jonathan Belcher
0a562e6e37
Merge Commit
2018-10-11 11:43:25 -04:00
Albert Juhé Lluveras
9623898acd
Add Orders table ( https://github.com/woocommerce/woocommerce-admin/pull/493 )
...
* Create Orders table
* Remove getOrderIds selector
* Create an OrdersReportTable component
* Alphabetically order extracted props
* Fix JS error for missing coupon properties
* Add TODO comment for missing customer type
* Add calculation for net revenue
* Align all table cells but identifier to the right
* Remove temporary text
* Improve cell link inline CSS
* Count several purchases of the same product as items sold
* Add TODO message to coupon link
* Add Download to Orders table
* Don't use camelCase for table column keys
* Cleanup
* Make products and coupons columns non-sortable
* Create renderList method to simplify products/coupons list creation
* Display correct currency for each order
* RTL table fixes
* Fix: products and coupons columns showing 'false' in CSV download
* Minor fixes
* Rename 'isIdentifier' with 'isLeftAligned' in table columns
* Remove toggleStatus method
2018-10-11 10:30:51 +02:00
Jonathan Belcher
8ee2a58fb3
Adds Order Summary Numbers
2018-10-10 16:29:12 -04:00
Jonathan Belcher
3d1fc63373
Merge pull request woocommerce/woocommerce-admin#499 from woocommerce/fix/407-focus-state
...
Fixes focus state on DatePicker to match Gutenberg
2018-10-10 16:22:39 -04:00
Jonathan Belcher
3939bc7eb1
Move colours to colour stylesheet
2018-10-10 14:06:13 -04:00
Jonathan Belcher
9d337ce8e0
Add all instances of menu to toggle current state.
2018-10-10 12:06:32 -04:00
Jonathan Belcher
1ef9d132dd
Update PR template to be a little simpler
2018-10-10 11:57:44 -04:00
Kelly Dwan
dc5967197d
Add a default value to `labels` ( https://github.com/woocommerce/woocommerce-admin/pull/500 )
...
Fixes an error where labels is undefined if nothing is passed through
2018-10-10 10:59:22 -04:00