Justin Shreve
1348245406
Add store notice around processing historical data. ( https://github.com/woocommerce/woocommerce-admin/pull/1763 )
...
* Add store notice around processing historical data.
* Cleanup
* Handle PR feedback.
* Clean up `add` logic and add empty content_data. Also add logic to get_notes_count so that we can hide unactioned statuses.
* Add the ability to update a note, and to also mark a status when an alert is clicked.
* Remove mark_actioned call on sync
* add missing todo
2019-03-12 09:13:20 -04:00
Albert Juhé Lluveras
6c9b96f49a
Make variations and coupons endpoints return zero-value items ( https://github.com/woocommerce/woocommerce-admin/pull/1765 )
...
* Make categories endpoint return zero-value items
* Rename PHP variable to make it more specific
* Remove uneeded lines
* Make variations and coupons endpoints return zero-value items
* Remove second parameter from get_ids_table
2019-03-12 11:11:28 +01:00
Albert Juhé Lluveras
d3230d8dae
Make categories endpoint return zero-value items ( https://github.com/woocommerce/woocommerce-admin/pull/1755 )
...
* Make categories endpoint return zero-value items
* Rename PHP variable to make it more specific
* Remove uneeded lines
* Remove second parameter from get_ids_table
2019-03-12 10:50:53 +01:00
Albert Juhé Lluveras
cf162dda7f
Taxes report: sort tax rates numerically instead of alphabetically ( https://github.com/woocommerce/woocommerce-admin/pull/1766 )
...
* Taxes report: sort tax rates numerically instead of alphabetically
* Use DECIMAL(7,4) for tax_rate sorting
2019-03-12 10:31:19 +01:00
Paul Sealock
fd019c4c35
Chart: don't switch to comparison mode directly
2019-03-12 12:03:58 +13:00
Jeff Stieler
64ccc0b0b2
Remove timezone from appendTimestamp() output.
2019-03-11 16:48:25 -06:00
Renovate Bot
9016d8ae86
Lock file maintenance
2019-03-11 00:45:21 +00:00
Jeff Stieler
04db0e2b8d
Add a custom “cancel all” method to our scheduled action data store.
...
Performs direct database manipulation for performance (with large datasets).
2019-03-08 18:41:59 -07:00
Tiago Noronha
965a4a6cb5
Merge pull request woocommerce/woocommerce-admin#1758 from woocommerce/fix/1736
...
Add StoreAlerts placeholder
2019-03-08 19:52:57 +00:00
Jeff Stieler
a50a9bccb1
Ensure that other scheduled actions are claimed before WC Admin actions. ( https://github.com/woocommerce/woocommerce-admin/pull/1759 )
...
* Use menu_order to lower the claim priority of WC Admin scheduled actions.
* Use a ActionScheduler_Store subclass to modify menu_order.
* Check to make sure we’re overriding only AS’s built in WP Post data store.
2019-03-08 11:59:32 -07:00
renovate[bot]
8802de46d5
Lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/1726 )
2019-03-08 12:27:27 -05:00
renovate[bot]
07d92d1e76
Update dependency prop-types to v15.7.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1747 )
2019-03-08 12:18:25 -05:00
renovate[bot]
7cee7bb5d4
Update dependency marked to v0.6.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1746 )
2019-03-08 12:11:58 -05:00
renovate[bot]
2710ec5f7a
Update dependency lerna to v3.13.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1745 )
2019-03-08 12:07:57 -05:00
renovate[bot]
0826916ecf
Update dependency eslint to v5.15.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1744 )
2019-03-08 12:03:46 -05:00
renovate[bot]
74257378c1
Update dependency autoprefixer to v9.4.10 ( https://github.com/woocommerce/woocommerce-admin/pull/1743 )
2019-03-08 11:49:10 -05:00
Justin Shreve
e9be19ee93
Update plugin header to better match the readme ( https://github.com/woocommerce/woocommerce-admin/pull/1764 )
2019-03-08 11:20:42 -05:00
Tiago Noronha
762b7d0b0c
Revert "Stop API requests when we know no alerts exist"
...
This reverts commit 0cdaf1bee2
.
2019-03-08 16:18:02 +00:00
Tiago Noronha
c3ff6fca49
Simplify StoreAlerts component logic
2019-03-08 16:17:48 +00:00
Tiago Noronha
2e2fb90cde
Add support for notes count by note type
2019-03-08 15:17:24 +00:00
Tiago Noronha
0cdaf1bee2
Stop API requests when we know no alerts exist
2019-03-06 23:04:13 +00:00
Tiago Noronha
dd8d1fbb8b
Display StoreAlertsPlaceholder while alerts are being loaded
2019-03-06 22:50:47 +00:00
Tiago Noronha
0af40e8214
Add default props and prop types to StoreAlertsPlaceholder component
2019-03-06 22:16:38 +00:00
Tiago Noronha
3493481f01
Add placeholder for StoreAlerts
2019-03-06 21:36:54 +00:00
Paul Sealock
b401a4845b
Update configs to simplify Show > Advanced Filters
2019-03-07 10:29:54 +13:00
Albert Juhé Lluveras
a7e3cf78a0
Show compared keys in chart legends even if their values are 0 ( https://github.com/woocommerce/woocommerce-admin/pull/1754 )
...
* Show compared keys in chart legends
* Fix JS error if filters is missing
* Add docs
2019-03-06 21:12:28 +01:00
renovate[bot]
1a395fd11f
Pin dependency composer/installers to 1.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1714 )
2019-03-06 09:39:04 -06:00
Tiago Noronha
73b480282b
Expose Store Alerts count via `wcSettings`
2019-03-06 14:58:36 +00:00
Jeff Stieler
4ebf4feb70
Merge pull request woocommerce/woocommerce-admin#1742 from woocommerce/fix/1675-ie-dash-block-overlap
...
Fix IE11 leaderboard display issue.
2019-03-06 07:56:46 -07:00
Jeff Stieler
b92ef54610
Merge pull request woocommerce/woocommerce-admin#1740 from woocommerce/fix/1609-chart-interval-highlight
...
Add button focus style to report chart interval selection.
2019-03-06 07:56:28 -07:00
Albert Juhé Lluveras
d2c0dd5555
Make products and rates endpoints return zero-value items ( https://github.com/woocommerce/woocommerce-admin/pull/1722 )
...
* Make products endpoint return zero-value items
* Make rates endpoint return zero-value items
* Several fixes
* Add tests
* Simplify code
* Merge both queries into one to simplify code
* Rename 'get_outer_from_sql_params' to 'get_from_sql_params'
2019-03-06 12:36:43 +01:00
Joshua Flowers
b1890190c7
Get product ID for line item from meta table instead of deleting
2019-03-06 16:03:54 +08:00
Joshua Flowers
c6c71b0238
Delete product IDs from lookup table on delete
2019-03-06 15:09:38 +08:00
Joshua Flowers
1715e98b98
Don't fetch extended attributes if product doesn't exist
2019-03-06 14:25:59 +08:00
Joshua T Flowers
4d80cad52e
Add rebuild tool to settings page ( https://github.com/woocommerce/woocommerce-admin/pull/1737 )
...
* Add button input type to analytics settings
* Add callback prop and disabled state to setting
* Add rebuild tool to settings page
* Re-enable setting if error is caught
* Remove rebuild tool from system tools page
* Move report build success message to API response
* Add back key for settings map
* Fix misspelled option group classname
* Conditionally add rebuild tool to non-wc-status page instead of removal hook
2019-03-06 13:32:05 +08:00
Joshua T Flowers
3d15392ecd
Update CSV filenames and remove item IDs ( https://github.com/woocommerce/woocommerce-admin/pull/1738 )
...
* Separate params by underscores
* Replace spaces and underscores in params with hyphens
* Delete extended info from filename
* Delete found search IDs when search query exists
* Adjust tests to fix new filename format
* Clone params instead of modifying query
* Decode params and only allow alphanumeric characters
2019-03-06 13:16:38 +08:00
Joshua T Flowers
e45d311581
Add actionable order statuses settings ( https://github.com/woocommerce/woocommerce-admin/pull/1727 )
...
* Add actionable status setting
* Add actionable statuses to settings page
* Hook up actionable order statuses to activity panel
* Hook up actionable order statuses to activity panel
2019-03-06 13:14:38 +08:00
Justin Shreve
008963d72f
Don't queue lookup tables on activiation ( https://github.com/woocommerce/woocommerce-admin/pull/1741 )
2019-03-05 22:10:22 -05:00
Paul Sealock
a558bfc5d9
Merge pull request woocommerce/woocommerce-admin#1702 from ratnakardubey/fix/1650-status-indicator-on-hold-gets-squished
...
Retain size of order status indicator in smaller screen
2019-03-06 12:47:18 +13:00
Jeff Stieler
27a5d65645
Set dashboard (leaderboard/chart) grid item position manually for IE11.
2019-03-05 15:59:23 -07:00
Jeff Stieler
f1fe300953
Add button focus style to report chart interval selection.
2019-03-05 12:10:26 -07:00
Albert Juhé Lluveras
5d3aa58a5d
Use IDs instead of labels to identify chart legend items ( https://github.com/woocommerce/woocommerce-admin/pull/1730 )
...
* Use instanceId to generate unique ids for chart legend items
* Decouple item key and label in Chart components
* Remove more duplicate IDs in the chart legend
* Use double underscores in element IDs following BEM rules
* Move 'withInstanceId' inside D3Legend component
* Simplify screen reader labels logic
* Add CHANGELOG message
* Use 'primary' and 'secondary' as items keys in time-comparison charts
2019-03-05 19:27:20 +01:00
Albert Juhé Lluveras
3de2bd1953
Update table columns visibility on finish loading ( https://github.com/woocommerce/woocommerce-admin/pull/1729 )
2019-03-05 18:26:29 +01:00
Timmy Crawford
0650524977
remove unused file ( https://github.com/woocommerce/woocommerce-admin/pull/1733 )
2019-03-05 07:41:58 -08:00
Tiago Noronha
9164e85fad
Merge pull request woocommerce/woocommerce-admin#1723 from woocommerce/add/1708-notes-endpoint
...
Hook up StoreAlerts component to notes endpoint
2019-03-05 13:03:50 +00:00
Peter Fabian
99e88706ad
Merge pull request woocommerce/woocommerce-admin#1681 from woocommerce/fix/1476-2
...
Updated is_returning_customer definition to use refactored function.
2019-03-05 13:00:07 +01:00
Albert Juhé Lluveras
584f0f26f0
Update chart colors to match spec ( https://github.com/woocommerce/woocommerce-admin/pull/1731 )
...
* Update chart color scale to match woocommerce/woocommerce-admin#375
* Avoid useless calls to 'getColor'
2019-03-05 10:44:29 +01:00
Joshua T Flowers
27acab72b8
Define extended_info in case query is filtered ( https://github.com/woocommerce/woocommerce-admin/pull/1728 )
2019-03-05 10:56:47 +08:00
Timmy Crawford
e0fa34720c
Getting things rolling on readme updates. ( https://github.com/woocommerce/woocommerce-admin/pull/1724 )
2019-03-04 15:40:35 -08:00
Jeff Stieler
b23ae97eff
Skip dispatching fresh data requests when the window/tab is hidden.
2019-03-04 12:47:48 -07:00
Tiago Noronha
f8e97b8152
Return immediately if no alerts found
2019-03-04 13:52:20 +00:00
Joshua T Flowers
4e9f787b13
Update tracking to use wcTracks method ( https://github.com/woocommerce/woocommerce-admin/pull/1718 )
...
* Remove tracking script from client assets
* Check for wcTracks function and record event if it exists
* Rely on tracking enabled check in core
2019-03-04 12:08:13 +08:00
Tiago Noronha
416d41279f
Update CSS with new alert types
2019-03-01 17:37:51 +00:00
Tiago Noronha
7248d14595
Hook up StoreAlerts component to notes endpoint
2019-03-01 17:20:28 +00:00
Paul Sealock
9cf8e564ff
Date picker: fix tab CSS
2019-03-01 16:29:31 +13:00
Justin Shreve
b7d36c90e8
Clear scheduled actions on plugin deactivate ( https://github.com/woocommerce/woocommerce-admin/pull/1715 )
2019-02-28 16:47:58 -05:00
Justin Shreve
fce16ade7a
Display order number on reports ( https://github.com/woocommerce/woocommerce-admin/pull/1706 )
...
* Display order number on reports, and add to API response.
* Add method for getting order number, avoiding loading the data store if no filter is attached.
2019-02-28 09:14:21 -05:00
Tiago Noronha
36a9e78ea9
Merge pull request woocommerce/woocommerce-admin#1519 from woocommerce/fix/1352-backspace-remove-item
...
Remove items from search input with backspace key
2019-02-28 12:04:18 +00:00
Albert Juhé Lluveras
ba2fb3c22b
Make EmptyContent component fit narrow viewports ( https://github.com/woocommerce/woocommerce-admin/pull/1703 )
2019-02-28 09:42:11 +01:00
Timmy Crawford
00965ba5b3
Remove Swaggerhub method. ( https://github.com/woocommerce/woocommerce-admin/pull/1707 )
2019-02-27 19:14:54 -08:00
Timmy Crawford
82730d315b
Release/v0.8.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1710 )
...
* Update version number and docs.
* Updates after release.
2019-02-27 16:43:39 -08:00
renovate[bot]
7890b4c19e
Lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/1686 )
2019-02-27 15:23:37 -05:00
renovate[bot]
89138520e1
Update babel monorepo to v7.3.4 ( https://github.com/woocommerce/woocommerce-admin/pull/1700 )
2019-02-27 14:42:32 -05:00
renovate[bot]
b6a4ada50f
Update dependency autoprefixer to v9.4.9 ( https://github.com/woocommerce/woocommerce-admin/pull/1701 )
2019-02-27 14:15:56 -05:00
Albert Juhé Lluveras
a8ee12e1f9
Fix empty chart and summary numbers when searching in the Categories report ( https://github.com/woocommerce/woocommerce-admin/pull/1698 )
2019-02-27 17:28:18 +01:00
Albert Juhé Lluveras
4e4f04b8d8
Display chart and summary numbers placeholder when loading search terms ( https://github.com/woocommerce/woocommerce-admin/pull/1694 )
2019-02-27 15:43:34 +01:00
Joshua T Flowers
241be1f547
Add product name filtering ( https://github.com/woocommerce/woocommerce-admin/pull/1670 )
...
* Add post_title__like param to wp query
* Add product_name filter option to products rest controller
* Change autocomplete search to use product_name param
* Change add_wp_query_post_title_filter to static method
* Only add wp_query filter in the products rest controller
2019-02-27 16:49:21 +08:00
Ratnakar Dubey
c95ce1b9bd
Status Indicator: On Hold Gets Squished and Looks Like an egg
2019-02-27 11:11:00 +05:30
Joshua T Flowers
6a18202f61
Add tax include param to tax REST API ( https://github.com/woocommerce/woocommerce-admin/pull/1672 )
...
* Add code to collection params to allow searching
* Add include param to tax rest api
* Remove duplicate get_collection_params
* Revert to previous taxes getLabel config
2019-02-27 10:37:24 +08:00
Tiago Noronha
c5a3a5dea8
Merge pull request woocommerce/woocommerce-admin#1627 from woocommerce/add/115-store-alerts
...
Adds StoreAlerts component
2019-02-26 23:18:00 +00:00
Tiago Noronha
6fe2b070bc
Alert pagination label alignment
2019-02-26 23:10:00 +00:00
Albert Juhé Lluveras
53bac8700e
Screen readers: read date instead of data keys in 'time-comparison' bar charts ( https://github.com/woocommerce/woocommerce-admin/pull/1586 )
...
* Screen readers: read date instead of data keys in 'time-comparison' bar charts
* Make previous period labels more verbose
* Revert "Make previous period labels more verbose"
This reverts commit 34d13deaa982425ca2cba76dacfd2c89c96f06c0.
* Improve isSameDay check
* Add date to hour tooltip and improve screen reader label
* Add CHANGELOG message
2019-02-26 11:56:49 +01:00
Albert Juhé Lluveras
b18819489b
Don't store searchWords in the query prop ( https://github.com/woocommerce/woocommerce-admin/pull/1689 )
2019-02-26 11:06:37 +01:00
Albert Juhé Lluveras
b85eef53fd
Display table placeholder instead of empty table when loading search terms ( https://github.com/woocommerce/woocommerce-admin/pull/1682 )
2019-02-26 10:28:50 +01:00
Joshua T Flowers
13b72f2fde
Add tax code filter to tax REST API ( https://github.com/woocommerce/woocommerce-admin/pull/1671 )
...
* Add in hook to rest tax controller modify tax items query
* Modify query string for getting tax code items
* Add code to collection params to allow searching
* Change filter to use entire tax code without null values
* Hook up tax code filter to autocomplete search
* Overwrite get_items instead of using hooks for code filtering
2019-02-26 14:19:38 +08:00
Joshua T Flowers
37e1ddfbd1
Don't update state on user preferences props change ( https://github.com/woocommerce/woocommerce-admin/pull/1688 )
2019-02-26 11:34:43 +08:00
Ron Rennick
39226c8c2c
Merge pull request woocommerce/woocommerce-admin#1664 from woocommerce/add/action-scheduler-group
...
add action scheduler group
2019-02-25 16:13:15 -04:00
Kelly Dwan
631ab5b609
Version bump ( https://github.com/woocommerce/woocommerce-admin/pull/1663 )
2019-02-25 11:44:11 -08:00
Albert Juhé Lluveras
365d493079
Table: reset search on compare and reset comparison on search ( https://github.com/woocommerce/woocommerce-admin/pull/1679 )
2019-02-25 20:40:30 +01:00
Albert Juhé Lluveras
4a19d27ec1
Add 'isCheckbox' prop to 'MenuItem' ( https://github.com/woocommerce/woocommerce-admin/pull/1620 )
...
* Make column filter menu items not focusable
* Check if onInvoke exists before calling it
* Revert "Check if onInvoke exists before calling it"
This reverts commit e3b63edd51395c0f967991e2d20fccf867e37b91.
* Revert "Make column filter menu items not focusable"
This reverts commit 3e0ac949fa057a0c235876731768b6f312ced998.
* Add isCheckbox prop to MenuItem component
* Fix arrow keys navigation in checkbox menu items
* Table: don't update showCols state when the headers prop changes
2019-02-25 20:25:19 +01:00
Peter Fabian
1b90296bba
Updated timezone handling to be in line with other WC code.
2019-02-25 20:05:25 +01:00
Ron Rennick
6969f841fa
update unit tests for batch group
2019-02-25 09:34:59 -04:00
Albert Juhé Lluveras
55336a9874
Make 'Rows Per Table' <select> accessible ( https://github.com/woocommerce/woocommerce-admin/pull/1674 )
2019-02-25 11:17:56 +01:00
Paul Sealock
a3e4955f74
Merge pull request woocommerce/woocommerce-admin#1571 from woocommerce/fix/taxes-segmentation
...
Taxes Report: fix comparison mode and segmentation labels
2019-02-25 11:31:37 +13:00
Peter Fabian
3f9a43fdd0
Added timezone to datetime to correctly identify first order(s).
...
If default PHP timezone is UTC, then any order between first order and positive UTC offset is identified as 'first', which is incorrect.
2019-02-23 18:38:45 +01:00
Peter Fabian
43e49ca704
Added test for registered customer.
2019-02-23 00:03:53 +01:00
Peter Fabian
4668734af7
Removed debugging var from test.
2019-02-23 00:02:40 +01:00
Peter Fabian
3ce686e6cd
Updated is_returning_customer definition to use refactored function.
2019-02-22 22:06:21 +01:00
renovate[bot]
042e55cd43
Lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/1516 )
2019-02-22 08:35:57 -05:00
renovate[bot]
e0730dd0a3
Update dependency autoprefixer to v9.4.8 ( https://github.com/woocommerce/woocommerce-admin/pull/1630 )
2019-02-22 08:00:21 -05:00
renovate[bot]
f5855a5641
Update dependency @babel/core to v7.3.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1629 )
2019-02-22 07:48:49 -05:00
renovate[bot]
699b669891
Update dependency dompurify to v1.0.10 ( https://github.com/woocommerce/woocommerce-admin/pull/1631 )
2019-02-22 07:41:25 -05:00
Justin Shreve
4347e1a9e0
Fix CSS linter errors ( https://github.com/woocommerce/woocommerce-admin/pull/1673 )
2019-02-22 07:34:04 -05:00
renovate[bot]
3de37c9e9e
Update dependency core-js to v2.6.5 ( https://github.com/woocommerce/woocommerce-admin/pull/1538 )
2019-02-22 07:32:30 -05:00
renovate[bot]
8ac513194b
Update dependency ast-types to v0.12.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1537 )
2019-02-22 07:16:35 -05:00
renovate[bot]
5e42c540da
Update dependency eslint-plugin-jest to v22.3.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1633 )
2019-02-22 07:08:54 -05:00
renovate[bot]
bb1a6bfe2e
Update dependency eslint to v5.14.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1632 )
2019-02-22 06:55:10 -05:00
Justin Shreve
063bea4486
Return an error when installing unit tests if WP < 5 ( https://github.com/woocommerce/woocommerce-admin/pull/1645 )
2019-02-22 06:31:18 -05:00
Joshua T Flowers
88c2973e2a
Fix null values in CSV columns export ( https://github.com/woocommerce/woocommerce-admin/pull/1652 )
...
* Fix null values in CSV columns export
* Check if value is null or undefined to avoid falsey for 0 values
* Add null value to CSV tests
* Improve changelog message
2019-02-22 10:02:38 +08:00
Joshua T Flowers
9c95a62f3b
Hide woo notices button when side menu is open ( https://github.com/woocommerce/woocommerce-admin/pull/1658 )
2019-02-22 09:42:42 +08:00
Tiago Noronha
f1e6c2f3c8
Reduce alert margin on mobile
2019-02-21 23:39:30 +00:00
Tiago Noronha
952ad025a5
Change button from isPrimary to isDefault and adjust color
2019-02-21 23:34:43 +00:00
Tiago Noronha
1910d76425
Small screens styling tweaks
2019-02-21 23:24:01 +00:00
Paul Sealock
62a6b619d9
Taxes Report: allow segmentation by tax
2019-02-22 11:37:15 +13:00
Tiago Noronha
84ba0709c1
Ensure state is updated only if new ids exist
2019-02-21 21:16:10 +00:00
Ron Rennick
0a4d98fb9f
fix warning in some versions of PHP
2019-02-21 15:59:09 -04:00
Ron Rennick
4cad583332
add action scheduler group
2019-02-21 15:44:35 -04:00
Tiago Noronha
e6b0f3476c
Merge pull request woocommerce/woocommerce-admin#1560 from woocommerce/fix/1429-hello-dolly
...
Stop Hello Dolly lyrics from displaying in the notices tab
2019-02-21 18:58:51 +00:00
Tiago Noronha
1ae9ffc188
Add new function to remove unwanted notices and remove Hello Dolly
2019-02-21 18:37:45 +00:00
Tiago Noronha
039ca2a1a9
Remove Hello Dolly exception from JS
2019-02-21 18:34:50 +00:00
Kelly Dwan
4ccc7ddaea
Update changelog ( https://github.com/woocommerce/woocommerce-admin/pull/1661 )
2019-02-21 11:47:28 -05:00
Tiago Noronha
f28e74daf9
Merge branch 'master' of github.com:woocommerce/wc-admin into fix/1352-backspace-remove-item
2019-02-21 15:50:21 +00:00
Justin Shreve
2af0aedd95
Add comparison support to the coupons report ( https://github.com/woocommerce/woocommerce-admin/pull/1647 )
2019-02-21 10:16:44 -05:00
Tiago Noronha
d54d9aa05e
Fix store alters margin on mobile
2019-02-21 14:26:43 +00:00
Tiago Noronha
f22770ce7e
Use global Sass variables and add mixin for alert box-shadow
2019-02-21 01:13:54 +00:00
Tiago Noronha
c304760629
Add `store-alerts` feature flag
2019-02-21 00:41:00 +00:00
Kelly Dwan
b98c05c331
Components: Add SearchListControl ( https://github.com/woocommerce/woocommerce-admin/pull/1628 )
...
* Add SearchListControl as exported component
* Add entry to changelog (and fix versioning)
* Fix repeating character mixin
* Update textdomain
2019-02-20 15:18:27 -05:00
Albert Juhé Lluveras
00ff9fa8b5
Fix table search position in small viewports ( https://github.com/woocommerce/woocommerce-admin/pull/1646 )
2019-02-20 20:44:12 +01:00
Tiago Noronha
1d864c222c
Fix line break
2019-02-20 19:03:08 +00:00
Tiago Noronha
91b09bfe4b
Add propTypes
2019-02-20 16:37:03 +00:00
Tiago Noronha
f492dae5a2
Simplify name of consts
2019-02-20 16:18:10 +00:00
Albert Juhé Lluveras
1488a55b7c
Preserve chart colors when changing visible keys in charts with less keys than 'selectionLimit' ( https://github.com/woocommerce/woocommerce-admin/pull/1606 )
...
* Preserve chart colors when changing visible keys in 'time-comparison' charts
* Actually preserve colors in charts that don't have more keys than selectionLimit
2019-02-20 16:53:37 +01:00
Tiago Noronha
4f8336ce3d
Add alerts array via props
2019-02-20 15:25:56 +00:00
Justin Shreve
c3b0934ad3
Close the WP menu after navigating between reports ( https://github.com/woocommerce/woocommerce-admin/pull/1634 )
2019-02-20 10:18:27 -05:00
Ron Rennick
3aa1f6197a
Merge pull request woocommerce/woocommerce-admin#1591 from woocommerce/fix/1590
...
implement WC_ADMIN_ABSPATH in wc-admin.php, class-wc-admin-api-init.php
2019-02-20 09:42:07 -04:00
Tiago Noronha
d9f9532939
Use interpolateComponents for pagination label
2019-02-20 11:50:55 +00:00
Albert Juhé Lluveras
0a10291969
Don't show variations table when there is an active search ( https://github.com/woocommerce/woocommerce-admin/pull/1601 )
2019-02-20 10:21:19 +01:00
Albert Juhé Lluveras
1660484d4c
Escape commas in search terms ( https://github.com/woocommerce/woocommerce-admin/pull/1605 )
2019-02-20 10:21:05 +01:00
Albert Juhé Lluveras
5e4f14a81d
Fix style of dashboard summary number placeholder ( https://github.com/woocommerce/woocommerce-admin/pull/1623 )
...
* Fix style of dashboard summary number placeholder
* Make store performance block to be a normal <div> instead of a Card
* Fix dashboard summary numbers style
* Simplify code
2019-02-20 10:20:50 +01:00
Joshua T Flowers
aef11ef586
Refactor customer ID creation ( https://github.com/woocommerce/woocommerce-admin/pull/1619 )
...
* Fix indendtation for table creations
* Refactor how customers are created on order update
* Check if user has a role of customer or previous orders before storing
* Add tests for user creation
* Allow null emails for customers
* Only select customer_id in guest ID query
2019-02-20 10:30:00 +08:00
Joshua T Flowers
08e43c35cf
Execute single order pending jobs immediately when wp_debug is enabled ( https://github.com/woocommerce/woocommerce-admin/pull/1581 )
...
* Execute all pending jobs when debug mode is enabled
* Only process single order jobs immediately
* Replace wp_debug condition with a filter
* Bypass scheduling and process the order on save_post
* Change hook name to include order
2019-02-20 10:05:11 +08:00
Joshua T Flowers
73ff2d37e8
Update activity panels order endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1578 )
...
* Only show customer name if available
* Map customer data to extended_info in orders API response
* Add gross total and refund total to orders API response
* Hook up report orders endpoint to activity panel orders
* Add on-hold orders to activity panel orders
* Destructure extended_info in case of filtering
* Add customer link to orders panel
2019-02-20 09:51:43 +08:00
Joshua T Flowers
0ef2dc27f4
Fix long search tags ( https://github.com/woocommerce/woocommerce-admin/pull/1597 )
...
* Fix long search tags
* Remove spaces from css calc expression
Co-Authored-By: joshuatf <joshuatf@gmail.com>
* Fix overflowing autocomplete search
2019-02-20 09:40:21 +08:00
Joshua T Flowers
44604bcd02
Reduce net order total by refunded amount less tax and shipping refunds ( https://github.com/woocommerce/woocommerce-admin/pull/1600 )
...
* Reduce net order total by refunded amount less tax and shipping refunds
* Fix net_totals in tests with refunds
2019-02-20 09:39:42 +08:00
Tiago Noronha
8bc2a84b39
Add basic StoreAlert component
2019-02-19 21:07:19 +00:00
Justin Shreve
4f64358c8e
Fix customer filters and download user filtering ( https://github.com/woocommerce/woocommerce-admin/pull/1618 )
...
* Add the ability to search name, username, and email fields on the customer endpoint, update autocompletors, add in include parameter.
* Update the username to be returned in the download response, update download filtering based on customer id, and only rename include parameter on main customers endpoint.
2019-02-19 14:35:29 -05:00
Ron Rennick
e1af3cdf18
implement WC_ADMIN_ABSPATH in class-wc-admin-api-init.php
2019-02-19 15:27:42 -04:00
Joshua T Flowers
694130d455
Change fixed legend button height to min-height ( https://github.com/woocommerce/woocommerce-admin/pull/1602 )
2019-02-19 10:29:58 +08:00
Joshua T Flowers
ffa7e016d4
Fix double focus on autocomplete search list after options are loaded ( https://github.com/woocommerce/woocommerce-admin/pull/1582 )
...
* Add isFocused to state to determine whether options list should be rendered
* Use state query instead of adding isFocused
* Remove search tag styling
2019-02-19 10:28:40 +08:00
Justin Shreve
732a8a4986
Fix variation name format to match core ( https://github.com/woocommerce/woocommerce-admin/pull/1583 )
2019-02-18 13:24:48 -05:00
Justin Shreve
79dc87b9bb
Fix product category report views ( https://github.com/woocommerce/woocommerce-admin/pull/1587 )
2019-02-18 13:18:21 -05:00
Joshua T Flowers
f0ec3c49a1
Add tax refund calculations ( https://github.com/woocommerce/woocommerce-admin/pull/1556 )
...
* Add item and shipping refund calucations to taxes on order update
* Sync taxes on refund delete
* Fix up tax stats API testing
* Add refunds to tax stats API tests
2019-02-18 10:20:16 +08:00
Ron Rennick
71660fa997
implement WC_ADMIN_ABSPATH in wc-admin.php
2019-02-15 16:03:32 -04:00
Ron Rennick
c377e27411
update missed version `or greater` in update message
2019-02-15 15:41:19 -04:00
Ron Rennick
e2b220bb54
Merge pull request woocommerce/woocommerce-admin#1570 from woocommerce/phpcs/tests
...
Phpcs sniff fixes for unit tests
2019-02-15 14:50:50 -04:00
Tiago Noronha
6d58ed97c4
Add array of notice ids and/or classes and iterate to collapse
2019-02-15 18:01:18 +00:00
Ron Rennick
00b640e2f0
Merge pull request woocommerce/woocommerce-admin#1567 from woocommerce/fix/1450
...
update chart type query string key to chartType
2019-02-15 12:58:22 -04:00
Peter Fabian
f42aa073b1
Changed the date_created columns to datetime, in the new location of db create script.
...
date_created should store local date and time, not UTC timestamp, as the data needs to be sliced and diced by local date/time, not by UTC date/time.
2019-02-15 17:13:12 +01:00
Peter Fabian
f7d0d2379f
Merge branch 'master' into fix/489-date_date_gmt
...
# Conflicts:
# includes/class-wc-admin-api-init.php
2019-02-15 17:07:38 +01:00
Ron Rennick
9f911df053
update changelog, coding style per review
2019-02-15 10:37:56 -04:00
Tiago Noronha
69cdb7996c
Merge pull request woocommerce/woocommerce-admin#1569 from woocommerce/fix/1568-filters-button-styling
...
Add margin to advanced filters Add button
2019-02-15 11:11:11 +00:00
Albert Juhé Lluveras
fe11ff475f
Chart legend: show pointer in all clickable area ( https://github.com/woocommerce/woocommerce-admin/pull/1566 )
2019-02-15 11:55:04 +01:00
Albert Juhé Lluveras
b61dff32f9
Sort tabular data when selecting a Summary Number ( https://github.com/woocommerce/woocommerce-admin/pull/1564 )
...
* Sort tabular data when selecting a Summary Number
* Fix 'orderby' param in orders endpoint
2019-02-15 11:54:41 +01:00
Albert Juhé Lluveras
0cb1aac8b9
Fix logic used to show legend total block ( https://github.com/woocommerce/woocommerce-admin/pull/1559 )
2019-02-15 11:50:41 +01:00
Albert Juhé Lluveras
bce82c7572
Move IE11 specific CSS to ie.scss file ( https://github.com/woocommerce/woocommerce-admin/pull/1558 )
2019-02-15 11:49:51 +01:00
Justin Shreve
a1c60537e5
Fix downloads stats data store sorting ( https://github.com/woocommerce/woocommerce-admin/pull/1561 )
2019-02-14 23:06:01 -05:00
Joshua T Flowers
cba9ab61b2
Update returning customer values to respect excluded statuses ( https://github.com/woocommerce/woocommerce-admin/pull/1557 )
...
* Excluded statuses from customers oldest orders
* Fix tests for returning customer where excluded statuses are used
* Remove save_post hook used for testing
* Extract conditions for first order swapping
2019-02-15 10:09:16 +08:00
Ron Rennick
767b047f4b
phpcs for admin-notess.php
2019-02-14 19:20:47 -04:00
Ron Rennick
45acf57c22
phpcs for product-reviews.php
2019-02-14 19:19:22 -04:00
Ron Rennick
7a255d7490
phpcs for products.php
2019-02-14 19:18:34 -04:00
Ron Rennick
b69f8fdbf2
phpcs for reports-customers-stats.php
2019-02-14 19:17:05 -04:00
Ron Rennick
e91f7f6d00
phpcs for reports-customers.php
2019-02-14 19:14:43 -04:00
Ron Rennick
cd1fdef99d
phpcs for reports-download-stats.php
2019-02-14 19:13:18 -04:00
Ron Rennick
a89083077e
phpcs for reports-interval.php
2019-02-14 19:12:15 -04:00
Ron Rennick
db568ec9af
phpcs for report-order-stats.php
2019-02-14 19:11:17 -04:00
Ron Rennick
ece6fb1a91
phpcs for report-performance-indicators.php
2019-02-14 19:08:25 -04:00
Ron Rennick
8ce7af9f61
phpcs for report-stock-stats.php
2019-02-14 19:06:11 -04:00
Ron Rennick
7910e76d8c
phpcs for bootstrap.php
2019-02-14 19:04:30 -04:00
Ron Rennick
58cfde18a4
phpcs print_R use in class-wc-tests-reports-order-stats.php
2019-02-14 18:54:45 -04:00
Tiago Noronha
5d3ce289f9
Merge pull request woocommerce/woocommerce-admin#1563 from woocommerce/fix/1402-legend-transition
...
Remove margin between chart legends in column direction
2019-02-14 21:23:39 +00:00
Tiago Noronha
75ee8d600b
Merge pull request woocommerce/woocommerce-admin#1533 from woocommerce/fix/1511-advanced-filters-ie11
...
Advanced filters alignment in IE11
2019-02-14 21:23:29 +00:00
Tiago Noronha
86f3da4e9c
Merge pull request woocommerce/woocommerce-admin#1530 from woocommerce/fix/1513-legend-text-align
...
Chart legend alignment in IE11
2019-02-14 21:23:16 +00:00
Ron Rennick
12c42c7967
phpcs for class-wc-tests-reports-orders-stats.php except print_r
2019-02-14 17:14:52 -04:00
Tiago Noronha
92de076a45
Hide Hello Dolly lyrics
2019-02-14 21:05:36 +00:00
Tiago Noronha
40dd9b5f91
Remove placeholders from components
2019-02-14 20:58:02 +00:00
Tiago Noronha
db2ed027c4
Add strings back to config.js files with title placeholders
2019-02-14 20:53:08 +00:00
Paul Sealock
2e82211616
Add products/stats endpoint to categories
2019-02-15 09:44:46 +13:00
Paul Sealock
87151fa1e3
Merge pull request woocommerce/woocommerce-admin#1548 from woocommerce/fix/stock-status-link
...
Stock Report: fix stock link
2019-02-15 09:42:37 +13:00
Ron Rennick
16c5cf8c77
phpcs for class-wc-tests-reports-revenue-stats.php
2019-02-14 16:34:38 -04:00
Ron Rennick
86c89e741a
one more type -> chartType
2019-02-14 16:03:54 -04:00
Tiago Noronha
816e122408
Revert "Conditionally include `{{rule /}}` in select-filter `mixedString`"
...
This reverts commit e6c811ae21
.
2019-02-14 19:57:27 +00:00
Ron Rennick
e7c55d7ca5
update query string for chart type tests
2019-02-14 15:34:57 -04:00
Ron Rennick
41251c3e9c
fix scss whitespace
2019-02-14 15:31:20 -04:00
Tiago Noronha
e6c811ae21
Conditionally include `{{rule /}}` in select-filter `mixedString`
2019-02-14 19:27:13 +00:00
Tiago Noronha
8e6913a6c6
Add margin to advanced filters Add button
2019-02-14 18:21:33 +00:00
Ron Rennick
f5efd10638
fix merge conflicts
2019-02-14 14:11:15 -04:00
Ron Rennick
1422865efd
remove stray debugging code
2019-02-14 13:40:25 -04:00
Ron Rennick
7f4bb8df63
update chart type query string key to chartType
2019-02-14 13:35:08 -04:00
Timmy Crawford
610f179679
Release v0.7.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1551 )
...
* Bumping version to 0.7.0 and updating docs.
* updates to package-lock.json
2019-02-14 09:24:02 -08:00
Timmy Crawford
ffe45e0658
Up freshness interval default. ( https://github.com/woocommerce/woocommerce-admin/pull/1549 )
2019-02-14 09:23:36 -08:00
Ron Rennick
3278fb9e15
Merge pull request woocommerce/woocommerce-admin#1545 from woocommerce/doc/update-readme-build-instructions
...
add build:feature-config to npm build
2019-02-14 13:07:18 -04:00
Tiago Noronha
ed8c587545
Remove margin between chart legends in column direction
2019-02-14 16:31:20 +00:00
Tiago Noronha
34ece8b72d
Stop Hello Dolly lyrics from displaying in the notices tab
2019-02-14 15:33:03 +00:00
Albert Juhé Lluveras
71bae4cdec
Refactor D3Chart ( https://github.com/woocommerce/woocommerce-admin/pull/1532 )
...
* Refactor d3chart
* Add check that tooltip exists before trying to hide it
2019-02-14 11:29:56 +01:00
Justin Shreve
24301e0090
Add stock stats endpoint and hook up to the stock report. ( https://github.com/woocommerce/woocommerce-admin/pull/1535 )
...
* Add stock stats endpoint and hook up to the stock report.
* Handle PR feedback
2019-02-13 22:31:27 -05:00
Joshua T Flowers
9e1cd42f5b
Update numeric comparisons for customer data ( https://github.com/woocommerce/woocommerce-admin/pull/1541 )
2019-02-14 11:15:48 +08:00
Joshua T Flowers
7d7e1f61b3
Prevent hash creation from breadcrumbs ( https://github.com/woocommerce/woocommerce-admin/pull/1540 )
2019-02-14 11:15:30 +08:00
Joshua T Flowers
25ed8a5b60
Only update search labels when IDs are mismatched ( https://github.com/woocommerce/woocommerce-admin/pull/1539 )
2019-02-14 11:15:10 +08:00
Joshua T Flowers
746d062f09
Check and update customer first orders to fix returning_customers ( https://github.com/woocommerce/woocommerce-admin/pull/1517 )
...
* Add get_oldest_orders function to customer data store
* Check if is first order in is_returning_customer()
* Check if the customers first order has changed and update all orders respectively
* Fix check for empty oldest_orders array
* Change avg_items_per_order to number instead of integer
* Fix failing tests for new/returning customers
Only the first orders with product 1 and without coupons should be new per each customer
* Remove sleep functions from tests
* Assign second order to a variable for legibility
* Fix second order assignment and check if set
2019-02-14 11:14:01 +08:00
Paul Sealock
a60d977d5c
Merge pull request woocommerce/woocommerce-admin#1550 from woocommerce/fix/autocompleter-debounce
...
Autocompleter: increase debounce
2019-02-14 14:47:02 +13:00
Tiago Noronha
2b12f2ceba
IE11: Vertically center advanced filters title span
2019-02-14 01:38:23 +00:00
Tiago Noronha
9d8ed29ea3
IE11: Move placeholders from config files to components and add span around title
2019-02-14 01:35:47 +00:00
Paul Sealock
45b6708a43
Autocompleter: increase debounce
2019-02-14 14:23:08 +13:00
Paul Sealock
f9eec81e71
Stock Report: fix stock link
2019-02-14 13:19:21 +13:00
Tiago Noronha
3495ec74dd
IE11: Add custom CSS class to advanced filters controls
2019-02-13 23:56:50 +00:00
Paul Sealock
13335d342d
Segmented Selection: re-apply borders for all browsers
2019-02-14 12:41:35 +13:00
Jeff Stieler
c862de29d3
Merge pull request woocommerce/woocommerce-admin#1534 from woocommerce/fix/1455-customers-report-name-search
...
Hook up customers report table search box
2019-02-13 13:55:47 -08:00
Tiago Noronha
5724aed4cb
IE11: Fix grid layout for advanced filters line items
2019-02-13 20:31:11 +00:00
Albert Juhé Lluveras
c10d849d85
Add defaults to Revenue table data ( https://github.com/woocommerce/woocommerce-admin/pull/1546 )
2019-02-13 20:37:25 +01:00
Ron Rennick
4567735f77
add build:feature-config to readme instructions
2019-02-13 13:51:39 -04:00
Jeff Stieler
d830a4a257
Fix customer name display in advanced filter search box.
2019-02-13 09:48:14 -07:00
Joshua T Flowers
847b59246d
Add transient notices ( https://github.com/woocommerce/woocommerce-admin/pull/1423 )
...
* Add initial transient notices component
* Animate notices to slide in and out
* Add notices to wc-api
* Map notices from wc-api to transient notices
* Add success message on settings save
* Add save notices to Settings page
* Remove all margin and padding from notice box when empty
* Add role alert to transient notices
* Add prefers reduced motion media query for transient animation
* Remove initial test notice
* Remove notices from wc-api
* Add wc-admin store for transient notices
* Pull transient notices from newly implemented store
* Use speak instead of role alert for accessibility
* Only show success message after request is complete
* Destructure state in componentDidUpdate
* Add store notice tests and fixtures
* Add box shadow to transient notice
* Move transient notices to bottom left
* Fix indentation
2019-02-13 19:44:58 +08:00
Albert Juhé Lluveras
4962ee5e4e
Empty chart message ( https://github.com/woocommerce/woocommerce-admin/pull/1499 )
...
* Show empty chart and summary numbers when search returns no results
* Preserve chart mode in empty searches
* Show message in empty charts
* Improve code order
* Add CHANGELOG message
* Rename emptySearch to emptySearchResults
* Improve emptyMessage propTypes comment
* Remove duplicated code
* Improve CHANGELOG message
* Create util function to check if chart is empty
* Update CHANGELOG message
* Add baseValue prop to Chart
2019-02-12 22:42:02 +01:00
Jeff Stieler
73c430b9b8
Merge pull request woocommerce/woocommerce-admin#1510 from woocommerce/fix/532-wc-install-approach
...
Use a WC_Install-like approach to initialize WC Admin data
2019-02-12 13:05:48 -08:00
Jeff Stieler
531f3b2f35
Remove unnecessary rewrite rules flush from install routine, clean up defunct TODO comment.
2019-02-12 12:57:06 -08:00
Justin Shreve
60d364d329
Update 5.0.0 version check and add basic readme.txt ( https://github.com/woocommerce/woocommerce-admin/pull/1521 )
...
* Update version check, add basic WP.org readme
* Clean up test depedency since we are supporting 5.0.0 or greater
* add some additional keywords
* update greater than message
2019-02-12 15:22:16 -05:00
Justin Shreve
0fe061b97d
Add Feature Flags ( https://github.com/woocommerce/woocommerce-admin/pull/1500 )
...
* First pass at adding feature flags. Accessible over PHP and JS.
* Hook up dev config to test enviornments, hook up features to their flags.
* Cleanup some code and add documentation. Remove beta config.
* Handle PR Feedback: Add devdocs flag, remove categories flag, fix auto-generated PHP warning.
* Add todo for beta phase.
* Handle PR feedback: Simplify is_array check, update build command, simplify test mock, remove empty webpack line.
2019-02-12 15:02:02 -05:00
Jeff Stieler
9762810b70
Support ReportTable search in customers report (list of customer IDs).
2019-02-12 11:08:33 -08:00
Jeff Stieler
e36d25e112
Make customer object IDs compatible with `wc-api`/`fresh-data`.
2019-02-12 11:08:03 -08:00
Jeff Stieler
926fdcfb97
Hook `v4/customers` endpoint up to customers report/lookup table and change name search to be fuzzy.
2019-02-12 11:06:22 -08:00
Tiago Noronha
a2744c9728
Fix chart legend alignment in IE11
2019-02-12 12:51:40 +00:00
Tiago Noronha
a275a72f45
Update changelog for woocommerce/woocommerce-admin#1352
2019-02-11 18:05:00 +00:00
Tiago Noronha
1a8e797b00
Remove items from search input with backspace key
2019-02-11 15:46:51 +00:00
Tiago Noronha
20aacb4fd8
Remove on hover color from disabled button
2019-02-11 12:54:40 +00:00
Peter Fabian
a6761fc606
Merge branch 'master' into fix/489-date_date_gmt
2019-02-10 17:24:54 +01:00
Peter Fabian
a8bedc5998
Accept before and after parameters as DateTime or string.
2019-02-10 17:18:05 +01:00
Peter Fabian
d71225d7d1
Use default after and before parameter values if no values are provided by the user.
2019-02-10 17:16:43 +01:00
Peter Fabian
0d4c0452a0
Removed superfluous date setting.
2019-02-10 17:15:08 +01:00
Peter Fabian
8b4b32c43d
Fixed parameter name from previous copy paste error.
2019-02-10 17:10:50 +01:00
Peter Fabian
08fe9c040e
Fixed number of parameters to the function.
2019-02-10 17:09:52 +01:00
Peter Fabian
b3c3aca973
Centralized default before and after parameters.
2019-02-10 17:07:45 +01:00
Jeff Stieler
884825f325
Fix method calls in test suite (functions moved classes).
2019-02-08 13:19:20 -08:00
Jeff Stieler
e5cdad1683
Move report table syncing methods to their own class and kick off initial sync using WC_Admin_Install.
2019-02-08 12:57:11 -08:00
Jeff Stieler
2797883a48
Move database table creation to new WC_Admin_Install class.
...
Remove reliance on plugin activation hook, following pattern established in WC_Install.
2019-02-08 11:27:39 -08:00
Claudio Sanches
fb02d78a3d
Merge pull request woocommerce/woocommerce-admin#1502 from woocommerce/fix/1489
...
Fixed WordPress database error in unit tests
2019-02-08 16:22:00 -02:00
Peter Fabian
68c65cfde6
Corrected output of GMT time.
2019-02-08 18:12:20 +01:00
Peter Fabian
38a08b58cd
Removed obsolete comment.
2019-02-08 18:11:33 +01:00
Peter Fabian
5fbf5b62d7
Normalize datetimes before doing any further processing with the input from the user.
...
Also, passing DateTime objects around instead of string so that timezone info can be easily attached to it.
2019-02-08 18:11:04 +01:00
Peter Fabian
b70a166f1d
Store datetimes in local time instead of UTC.
2019-02-08 18:01:44 +01:00
Jeff Stieler
432e7efaab
Merge pull request woocommerce/woocommerce-admin#1497 from woocommerce/fix/initial-order-sync-stalling
...
Fix initial order sync stalling
2019-02-07 22:04:50 -08:00
renovate[bot]
477bc7026b
Update dependency eslint-plugin-jsx-a11y to v6.2.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1485 )
2019-02-08 13:11:27 +08:00
Jeff Stieler
300069234a
Add comments to explain we are skipping `shop_order_refund` types when syncing stats for coupons and taxes.
2019-02-07 18:41:40 -08:00
Claudio Sanches
ec43d58973
Fixed WordPress database error in unit tests
...
Fixes the follow error:
```
WordPress database error: [You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'THIS WONT MATCH' at line 1]
```
Fixes woocommerce/woocommerce-admin#1489
2019-02-07 19:48:16 -02:00
Claudio Sanches
4c169a109d
Fixed missing argument in WC_Admin_Reports_Taxes_Stats_Data_Store::get_data
...
Fixes the follow PHP error:
```
PHP Fatal error: Uncaught ArgumentCountError: Too few arguments to function WC_Admin_Reports_Data_Store::remove_extra_records(), 6 passed in wp-content/plugins/wc-admin/includes/data-stores/class-wc-admin-reports-taxes-stats-data-store.php on line 232
```
2019-02-07 19:30:52 -02:00
Albert Juhé Lluveras
b3e028bc81
Show empty chart and summary numbers when search returns no results ( https://github.com/woocommerce/woocommerce-admin/pull/1491 )
...
* Show empty chart and summary numbers when search returns no results
* Add changelog message
* Preserve chart mode in empty searches
* Add tests
* Fix CSS Lint error
* Make sure the legend updates when there is no data and it's not requesting
* Rename 'emptySearch' to 'emptySearchResults'
* Fix tests
2019-02-07 10:57:47 +01:00
Albert Juhé Lluveras
e2b10bdb49
Fix test_variable_product_extended_info ( https://github.com/woocommerce/woocommerce-admin/pull/1498 )
2019-02-07 10:49:50 +01:00
renovate[bot]
c5900286c0
Update dependency rimraf to v2.6.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1487 )
2019-02-07 17:40:01 +08:00
renovate[bot]
be6d287118
Update dependency lerna to v3.10.8 ( https://github.com/woocommerce/woocommerce-admin/pull/1486 )
2019-02-07 17:36:43 +08:00
renovate[bot]
1017ba1bdc
Update dependency eslint-plugin-jest to v22.2.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1484 )
2019-02-07 17:29:39 +08:00
renovate[bot]
9a5b9b0b73
Update dependency eslint to v5.13.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1482 )
2019-02-07 17:26:44 +08:00
Joshua T Flowers
8c3973a445
Add manage_stock to stock controller response ( https://github.com/woocommerce/woocommerce-admin/pull/1475 )
...
* Add manage_stock to stock controller response
* Add manage_stock property to stock report tests
* Add changelog entry
* Make stock quantity float instead of int
* Add manage_stock to the products API response
* Check for manage_stock in products table
* Add manage_stock property to product API tests
2019-02-07 16:29:01 +08:00
Albert Juhé Lluveras
79738b2022
Add 'variations' attribute in products 'extended_info' ( https://github.com/woocommerce/woocommerce-admin/pull/1478 )
...
* Add 'variations' attribute in products 'extended_info'
* Add tests
2019-02-07 09:27:02 +01:00
Joshua T Flowers
2b0c8089c0
Try: Fix failing returning customer test ( https://github.com/woocommerce/woocommerce-admin/pull/1496 )
...
* Don't check against same order when checking for returning customer
* Sleep between order creation
* Add todo removal comments for sleep functions
2019-02-07 15:49:56 +08:00
Peter Fabian
79e22bcefd
Switched to creating orders from oldest to newest, not the other way around. ( https://github.com/woocommerce/woocommerce-admin/pull/1495 )
...
That should hopefully take care of the problem with strange new/returning customer values and failing tests.
2019-02-07 15:41:09 +08:00
Jeff Stieler
28739b7cf7
Return a success code when syncing order products in the case of refunds.
...
On the initial sync, no products will be deleted by the sync method (which was indicating a false negative before this fix).
2019-02-06 19:16:30 -08:00
Jeff Stieler
56a1a30224
Skip processing `shop_order_refund`s when syncing coupon and tax lookup tables.
2019-02-06 19:15:06 -08:00
Jeff Stieler
ea39313a60
Avoid false positives when rescheduling dependent queued actions.
2019-02-06 19:11:35 -08:00
Kevin Killingsworth
368c6d729b
@woocommerce/navigation v2.0.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1494 )
...
* @woocommerce/navigation v2.0.0
* Bump `@wordpress/components` to use navigation v2.0.0
2019-02-06 19:26:22 -06:00
Kevin Killingsworth
8b7e309e6f
navigation: Lazy-create history ( https://github.com/woocommerce/woocommerce-admin/pull/1472 )
...
history.createHashHistory() is being called whenever this package is
imported, which causes the URL to redirect to a hash. This is
unnecessary in cases where elements of wc-admin are used outside of a
completely controlled/routed page.
This lazy-creates the history object only when it's needed and therefore
avoids the URL redirection unless history features are in use.
2019-02-06 13:28:29 -06:00
Peter Fabian
dd947044b9
Changed the date_created columns to datetime.
...
date_created should store local date and time, not UTC timestamp, as the data needs to be sliced and diced by local date/time, not by UTC date/time.
2019-02-06 19:13:57 +01:00
Justin Shreve
a1bbd22ca2
Update product details report to use getItems ( https://github.com/woocommerce/woocommerce-admin/pull/1488 )
2019-02-06 11:24:40 -05:00
Justin Shreve
81fcab5709
Fix product comparison + color scale on charts with lots of options ( https://github.com/woocommerce/woocommerce-admin/pull/1481 )
...
* Fix color scale on charts with lots of options
* Fix product comparison
2019-02-06 10:46:37 -05:00
renovate[bot]
43f3aba8dc
Update dependency eslint-loader to v2.1.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1483 )
2019-02-06 18:28:41 +08:00
Joshua T Flowers
b7379def1b
Format todo comments to match WC Core format ( https://github.com/woocommerce/woocommerce-admin/pull/1474 )
...
* Format todo comments to match WC Core format
* Remove variations todo comment
2019-02-06 14:41:53 +08:00
Claudio Sanches
b7c40c2c29
Merge pull request woocommerce/woocommerce-admin#1461 from woocommerce/fix/1460
...
Fixed database prefixes for admin notes tables
2019-02-05 16:21:43 -02:00
Claudio Sanches
d26e82b526
Merge branch 'master' into fix/1307
2019-02-05 16:20:08 -02:00
Claudio Sanches
86c3c00480
Clean tables when order is deleted
2019-02-05 16:15:39 -02:00
Justin Shreve
949afce248
Add Product Detail Report & Finish Comparison Chart Mode Functionality ( https://github.com/woocommerce/woocommerce-admin/pull/1391 )
...
Product detail report and comparison
Code cleanup
Fix 404 on product variations endpoint after rebase
Fix up tests
Fix loading indicators and add some checks around malformed variation response
Add date filtering SQL bits to the variations query
Handle PR feedback: Fix viewport, fix duplicate product issue, fix legend display reset, fix bargraph overflow, fix some coding standards/whitespace, add extra variation santiziation.
Fix scroll on wide charts, and fix undefined prop getting passed into report chart render
2019-02-05 13:12:58 -05:00
Peter Fabian
ff129d948c
Merge pull request woocommerce/woocommerce-admin#1383 from woocommerce/fix/1012-2
...
Fixes for ordering and zero-filling.
2019-02-05 19:08:06 +01:00
Claudio Sanches
10f40d4cf3
Merge branch 'master' into fix/1307
2019-02-05 15:48:59 -02:00
Peter Fabian
98e91966d5
Updated tests for code in master:
...
- added segment arrays and
- forced sync before running asserts.
2019-02-05 18:46:42 +01:00
Claudio Sanches
e0004eb461
Merge branch 'master' into feature/754
2019-02-05 15:42:34 -02:00
Peter Fabian
b69d2aa2ab
Merge branch 'master' into fix/1012-2
...
# Conflicts:
# tests/reports/class-wc-tests-reports-orders-stats.php
2019-02-05 18:34:15 +01:00
Albert Juhé Lluveras
84ef5ffb89
Show empty table when search returns no results ( https://github.com/woocommerce/woocommerce-admin/pull/1452 )
...
* Show empty table when search returns no results
* Fix singular wrong string for 'orders'
Co-Authored-By: Aljullu <aljullu@gmail.com>
* Check if search returned 0 results inside table components instead of passing a prop
2019-02-05 13:00:37 +01:00
Albert Juhé Lluveras
df97ac4d49
Improve display of 0-value charts ( https://github.com/woocommerce/woocommerce-admin/pull/1470 )
...
* Improve display of 0-value charts
* Add Changelog comment
2019-02-05 10:56:26 +01:00
Joshua T Flowers
3aaf318779
Exclude trashed orders from reports ( https://github.com/woocommerce/woocommerce-admin/pull/1464 )
2019-02-05 10:57:38 +08:00
renovate[bot]
fd3da36a2f
Lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/1462 )
2019-02-05 10:53:46 +08:00
Jeff Stieler
0711ed85f8
Merge pull request woocommerce/woocommerce-admin#1426 from woocommerce/update/1323-handle-report-regeneration-fail
...
Use Action Scheduler for lookup table updates & schedule retries.
2019-02-04 17:12:35 -07:00
Jeff Stieler
7664612b57
Fix order stats report status filtering test case (returning customer value incorrect).
2019-02-04 16:59:08 -07:00
Albert Juhé Lluveras
16ea4f60fc
Fix hourly labels in bar charts X-axis ( https://github.com/woocommerce/woocommerce-admin/pull/1468 )
...
* Fix hourly labels in bar charts X-axis
* Add CHANGELOG comment
* Remove unnecessary date object call
2019-02-04 22:15:06 +01:00
Jeff Stieler
f938dd5708
Invoke queue test helper in new Order Stats and Products Report tests.
2019-02-04 11:46:46 -07:00
Claudio Sanches
58cdf6a7f9
Fixed hook names
2019-02-04 16:02:49 -02:00
Claudio Sanches
a1976bc1bc
Improve action/hook naming
2019-02-04 15:58:37 -02:00
Albert Juhé Lluveras
7916100009
Fix CSS Lint warning ( https://github.com/woocommerce/woocommerce-admin/pull/1469 )
2019-02-04 18:32:27 +01:00
Jeff Stieler
bebe1bdead
Add test for scheduling a retry job when order syncing fails.
2019-02-04 09:18:51 -07:00
Jeff Stieler
21572698d8
Fix unit tests that rely on queued data updates.
2019-02-04 09:18:50 -07:00
Jeff Stieler
11d18a8b5b
Queue individual order syncing instead of handling immediately.
2019-02-04 09:18:49 -07:00
Jeff Stieler
9f3c95ae63
Rework lookup table data store sync methods to return a meaningful status.
2019-02-04 09:09:44 -07:00
Jeff Stieler
9b1f6999aa
Add action argument support when scheduling dependent actions.
2019-02-04 09:06:44 -07:00
Joshua T Flowers
0d4e42def0
Add segments to expected response in order stats ( https://github.com/woocommerce/woocommerce-admin/pull/1466 )
2019-02-04 18:39:33 +08:00
Albert Juhé Lluveras
9dd4c10d7d
Fix autocompleters in customers and taxes report ( https://github.com/woocommerce/woocommerce-admin/pull/1458 )
2019-02-04 09:51:29 +01:00
Joshua T Flowers
fb0d71f117
Update page query to 1 when base query is changed ( https://github.com/woocommerce/woocommerce-admin/pull/1444 )
...
* Update page query to 1 when base query is changed
* Use history replace instead of updating query
2019-02-04 10:55:06 +08:00
Joshua T Flowers
17179d41ff
Add order status tests and refund tests ( https://github.com/woocommerce/woocommerce-admin/pull/1443 )
...
* Add default order status tests
* Test querying an excluded status
* Add tests for product line item refunds
* Update status test method comment
* Drop @since versioning from doc blocks
2019-02-04 10:52:29 +08:00
Joshua T Flowers
2c1f8c17c7
Fix incorrect label async request paths ( https://github.com/woocommerce/woocommerce-admin/pull/1447 )
2019-02-04 10:50:22 +08:00
Joshua T Flowers
a4f7fcdfe3
Fix variation search autocompleter invalid route ( https://github.com/woocommerce/woocommerce-admin/pull/1448 )
2019-02-04 10:49:58 +08:00
Claudio Sanches
c1bb5802d1
Fixed coding standards
2019-02-01 18:48:54 -02:00
Claudio Sanches
464ec09d38
Merge branch 'feature/754' of github.com:woocommerce/wc-admin into feature/754
2019-02-01 18:32:41 -02:00
Claudio Sanches
48ef33636f
Removed extra function from conflicts
2019-02-01 18:31:10 -02:00
Claudio Sanches
8c0c01a3da
Merge branch 'master' into feature/754
2019-02-01 18:27:23 -02:00
Claudio Sanches
31e8dc9332
Merge branch 'master' into fix/1307
2019-02-01 18:24:26 -02:00
Peter Fabian
32f851be5b
Merge pull request woocommerce/woocommerce-admin#1286 from woocommerce/fix/1035
...
Added segmenting support to REST API
2019-02-01 20:50:38 +01:00
Claudio Sanches
4c71e78222
Fixed database prefixes
...
Moved from woocommerce_ to wc_
2019-02-01 17:23:07 -02:00
Claudio Sanches
93f9ec8ae8
Docblocks
2019-02-01 17:10:31 -02:00
Claudio Sanches
e41a81f8b9
Updated woocommerce_trash_note to woocommerce_delete_note
...
Admin notes doesn't handle statuses, so it's not possible to move to
trash and restore admin notes, all admin notes are permanently deleted.
2019-02-01 17:08:43 -02:00
Claudio Sanches
707067e255
Docblocks
2019-02-01 17:02:15 -02:00
Claudio Sanches
cd55051da3
New actions for when deleting objects from database
2019-02-01 16:29:14 -02:00
Claudio Sanches
68e0c98828
New action name: woocommerce_delete_reports_order_stats
2019-02-01 16:10:00 -02:00
Claudio Sanches
07f3f33566
Introduced new hooks for jetpack sync
2019-02-01 15:43:24 -02:00
Peter Fabian
663e454b8f
Fixed schema: type and enum for segment_id.
2019-02-01 18:30:39 +01:00
Peter Fabian
2bc99cdb31
Added basic tests for zero filling when sorting intervals by non-date property.
2019-02-01 18:16:39 +01:00
Peter Fabian
9c52155d40
Merge pull request woocommerce/woocommerce-admin#1446 from woocommerce/fix/1445
...
Added primary key to tax lookup table to prevent duplicate entries.
2019-02-01 17:52:59 +01:00
Justin Shreve
3fa704f7f4
Add GPL License ( https://github.com/woocommerce/woocommerce-admin/pull/1440 )
...
* Add GPL License file
* Match Gutenberg license / add extra sections
2019-02-01 10:22:05 -05:00
Peter Fabian
c2bcad2e50
Merge branch 'master' into fix/1012-2
2019-02-01 13:32:35 +01:00
Albert Juhé Lluveras
6d8634a753
Add 'Clear' button to Search input ( https://github.com/woocommerce/woocommerce-admin/pull/1410 )
...
* Move labels loading logic into a lib
* Move lib/labels into lib/async-requests
* Implement tabular data filtering
* Allow searching for string in report tables
* Add table filtering to customers table
* Get ids from searched string to populate the table
* Fix autocompleter keyboard interactions
* Improve props naming
* Cleanup report customers data store
* Prevent an edge case issue that might not update the selectedOptions when directily modifying the URL
* Add 'Clear' button to Search input
* Cleanup
2019-02-01 11:49:46 +01:00
Albert Juhé Lluveras
666d8e4a3b
Merge getOrders and getItems ( https://github.com/woocommerce/woocommerce-admin/pull/1438 )
...
* Move labels loading logic into a lib
* Move lib/labels into lib/async-requests
* Implement tabular data filtering
* Allow searching for string in report tables
* Add table filtering to customers table
* Get ids from searched string to populate the table
* Fix autocompleter keyboard interactions
* Improve props naming
* Cleanup report customers data store
* Prevent an edge case issue that might not update the selectedOptions when directily modifying the URL
* Fix wrong selected autocompleter option
* Add missing translation domain
* Move searchItemsByString to wc-api/items/utils.js
* Avoid autocompleter results appearing when there was no search string
* Alphabetically order 'allowFreeTextSearch' prop
* Reset selected table rows when directly modifying the URL
* Simplify props destructuring
* Undo customers data store change
* Simplify isProductDetailsView expression
* Improve order
* Merge getOrders and getItems
2019-02-01 11:01:42 +01:00
Albert Juhé Lluveras
d8ed3b6614
Implement tabular data filtering ( https://github.com/woocommerce/woocommerce-admin/pull/1381 )
...
* Move labels loading logic into a lib
* Move lib/labels into lib/async-requests
* Implement tabular data filtering
* Allow searching for string in report tables
* Add table filtering to customers table
* Get ids from searched string to populate the table
* Fix autocompleter keyboard interactions
* Improve props naming
* Cleanup report customers data store
* Prevent an edge case issue that might not update the selectedOptions when directily modifying the URL
* Fix wrong selected autocompleter option
* Add missing translation domain
* Move searchItemsByString to wc-api/items/utils.js
* Avoid autocompleter results appearing when there was no search string
* Alphabetically order 'allowFreeTextSearch' prop
* Reset selected table rows when directly modifying the URL
* Simplify props destructuring
* Undo customers data store change
* Simplify isProductDetailsView expression
* Improve order
* Filter tax code parts before modifying them
2019-02-01 10:55:19 +01:00
Albert Juhé Lluveras
1069034ca2
Trim search box input ( https://github.com/woocommerce/woocommerce-admin/pull/1439 )
...
* Trim search box input
* Add tests
2019-02-01 10:43:56 +01:00
Peter Fabian
907fcdb863
Merge pull request woocommerce/woocommerce-admin#1435 from woocommerce/fix/1372
...
Added indices for faster joins with customer table and filtering by order status.
2019-02-01 10:27:06 +01:00
Peter Fabian
8bc4c70cae
Added primary key to tax lookup table to prevent duplicate entries.
2019-02-01 10:23:59 +01:00
Kelly Dwan
ca34ad0274
Bump version ( https://github.com/woocommerce/woocommerce-admin/pull/1442 )
2019-01-31 17:47:50 -05:00
Peter Fabian
40b9458f8d
Added indices for faster joins with customer table and filtering by order status.
2019-01-31 10:54:55 +01:00
Joshua T Flowers
e65247c54e
Add SKU to product variations table ( https://github.com/woocommerce/woocommerce-admin/pull/1422 )
...
* Add SKU to product variations data store extended info
* Show SKU in product variations table
* Add sku tests for product variation reports
2019-01-31 09:27:15 +08:00
Joshua T Flowers
49e78b90cf
Add settings page with excluded order statuses ( https://github.com/woocommerce/woocommerce-admin/pull/1364 )
...
* Add settings page routes
* Add control options for excluded statuses
* Add control options for excluded statuses
* Add excluded order statuses to rest api
* Add wc settings to wc-api
* Add wc settings to wc-api
* Split and validate multiselect values in settings controller
* Add wcAdminSettings to wcSettings global
* Set initial excluded statuses from serverside wcSettings data
* Add extensible filter for wcSettings global
* Split arrays into comma separated strings in wc-api
* Extract setting as separate component
* Extra settings to config file
* Add checkboxGroup option as input type
* Separate status types into default and custom groups
* Add setting option styling
* Add responsive styling for settings
* Fix wpClosedMenu and wpOpenMenu for settings page
* Add support for resetting to default values
* Only show checkbox group if options are available
* Add proptypes to Setting component
* Add extensible filter to analytics settings
* Add readme for settings config and extensibility
* Hook up excluded status settings to reports
* Pass object to settings API instead of comma delimited string
* Fix inpuType -> inputType typo
* Remove hasError from constructor
* Bump settings API to v4
* Use interpolateComponents instead of dangerously setting html
* Use empty array in initial excldued statuses setting value if none is retrieved
* Remove double check for refunded status in default order statuses
* Update settings wc-api to use namespace
* Add aria=labelledby to checkbox group
2019-01-31 09:04:11 +08:00
renovate[bot]
713d64c97a
Lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/1362 )
2019-01-30 16:15:54 -05:00
renovate[bot]
85a46252df
Update dependency core-js to v2.6.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1375 )
2019-01-30 15:59:19 -05:00
renovate[bot]
f128716d28
Update babel monorepo ( https://github.com/woocommerce/woocommerce-admin/pull/1373 )
2019-01-30 15:46:29 -05:00
renovate[bot]
e18837e255
Update dependency autoprefixer to v9.4.7 ( https://github.com/woocommerce/woocommerce-admin/pull/1374 )
2019-01-30 15:25:19 -05:00
renovate[bot]
ead7ca0523
Pin dependency locutus to 2.0.10 ( https://github.com/woocommerce/woocommerce-admin/pull/1408 )
2019-01-30 15:13:31 -05:00
renovate[bot]
099e8a60af
Update dependency eslint-plugin-jsx-a11y to v6.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1416 )
2019-01-30 14:20:36 -05:00
renovate[bot]
40cd3545fe
Update dependency eslint-plugin-react to v7.12.4 ( https://github.com/woocommerce/woocommerce-admin/pull/1418 )
2019-01-30 13:59:32 -05:00
renovate[bot]
43c753011a
Update dependency eslint to v5.12.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1376 )
2019-01-30 13:53:25 -05:00
Timmy Crawford
974d263f69
Release/v0.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1417 )
...
* Bump versions to 0.6.0
* Update docs
* Updates after running build.
2019-01-30 10:51:03 -08:00
renovate[bot]
e2da828d1f
Update dependency lerna to v3.10.7 ( https://github.com/woocommerce/woocommerce-admin/pull/1419 )
2019-01-30 13:14:58 -05:00
renovate[bot]
d4a7cec89a
Update dependency eslint-plugin-jest to v22.2.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1415 )
2019-01-30 13:10:27 -05:00
Peter Fabian
e433609d9d
Updated test of schema for taxes/stats.
2019-01-30 18:46:06 +01:00
Peter Fabian
0ddc6d5e41
Added segmenting code for taxes/stats.
2019-01-30 18:36:20 +01:00
Peter Fabian
0d95552157
Added segmentby to schema, query arguments and allows parameters in the controller for taxes/stats.
2019-01-30 12:16:37 +01:00
Albert Juhé Lluveras
08dfea7cff
Add Taxes REST controller override ( https://github.com/woocommerce/woocommerce-admin/pull/1407 )
2019-01-30 10:43:30 +01:00
Justin Shreve
53a6e49874
Finish cleaning up client/store. ( https://github.com/woocommerce/woocommerce-admin/pull/1403 )
2019-01-30 02:22:10 -05:00
Timmy Crawford
88ea613627
Build: Updates from latest npm publish ( https://github.com/woocommerce/woocommerce-admin/pull/1409 )
...
* remove unreleased tags from changelogs
* chore(release): publish
- @woocommerce/components@1.4.1
- @woocommerce/csv-export@1.0.3
- @woocommerce/currency@1.1.0
- @woocommerce/date@1.0.6
- @woocommerce/navigation@1.1.1
- @woocommerce/number@1.0.1
2019-01-29 15:37:25 -08:00
Claudio Sanches
d1fef77ed0
Added unit tests for order deletation
2019-01-29 20:21:09 -02:00
Paul Sealock
4854933485
Merge pull request woocommerce/woocommerce-admin#1404 from woocommerce/fix/customers-date-between-args
...
Customers Report: REST API: Fix between argument handling
2019-01-30 10:32:54 +13:00
Paul Sealock
f71bfa95f4
Merge pull request woocommerce/woocommerce-admin#1406 from woocommerce/fix/customers-order-count-filter
...
Customers Report: fix order count filter
2019-01-30 10:32:29 +13:00
Kelly Dwan
dfd15f959a
Components package: Add emoji-flags dependency ( https://github.com/woocommerce/woocommerce-admin/pull/1411 )
...
* Add emoji-flags to the components package.json
* Update the changelog
2019-01-29 16:19:00 -05:00
Claudio Sanches
b0b506b397
Introduced new methods to clean up data when an order is deleted
2019-01-29 19:13:06 -02:00
Claudio Sanches
766fdeeada
Remove extra validation
2019-01-29 18:50:44 -02:00
Claudio Sanches
272203b879
Introduced new woocommerce_reports_orders_stats_data_deleted hook
2019-01-29 18:50:15 -02:00
Peter Fabian
6efef57cba
Factored out order-related product-level calculations to WC_Admin_Order and plugged it into the WC framework.
2019-01-29 19:57:04 +01:00
Timmy Crawford
10c6016d4c
Update usage of lib/number to @woocommerce/number ( https://github.com/woocommerce/woocommerce-admin/pull/1400 )
...
* Remove usage of lib/number
* Remove formatNumber usage when currency is used.
* Add wc-number as a dependency of wc-currency.
* Add locutus as a dev dependency.
* Add number to test helper.
2019-01-29 08:48:46 -08:00
Peter Fabian
e56009cfdc
Updated todo format to be in line with the rest of WooCommerce.
2019-01-29 13:29:50 +01:00
Peter Fabian
a3ae15d58e
Removed obsolete comment.
2019-01-29 12:52:20 +01:00
Peter Fabian
bee26375f9
Validate limit clause and set empty default if there is no limit.
2019-01-29 12:18:30 +01:00
Peter Fabian
c2eaf6d71c
Replaced REST exception with a custom exception and handle it in REST controllers.
2019-01-29 12:13:52 +01:00
Peter Fabian
e4e09b4c39
Merge branch 'master' into fix/1035
2019-01-29 10:01:41 +01:00
Paul Sealock
3379491c91
Customers Report: fix order count filter
2019-01-29 13:35:27 +13:00
Timmy Crawford
e136036ef9
Build: Create new number package ( https://github.com/woocommerce/woocommerce-admin/pull/1399 )
...
* Create new number package
* Updates per feedback.
* Update README.
2019-01-28 15:34:56 -08:00
Paul Sealock
765a007491
tweeek
2019-01-29 12:08:44 +13:00
Paul Sealock
e6b42631f3
formatting
2019-01-29 11:48:40 +13:00
Paul Sealock
41bec03880
tweeks
2019-01-29 11:28:58 +13:00
Paul Sealock
370a747c2b
add registered
2019-01-29 11:05:27 +13:00
Paul Sealock
3e16a37be0
add tests
2019-01-29 11:01:25 +13:00
Paul Sealock
483c199fbf
tests working
2019-01-29 10:53:56 +13:00
Paul Sealock
c6d1ce98c0
rest_validate_between_date_arg
2019-01-29 10:45:49 +13:00
Paul Sealock
2f022ffdba
dry interval.php
2019-01-29 10:23:44 +13:00
Paul Sealock
3d0890a704
basic working
2019-01-29 09:21:11 +13:00
Paul Sealock
bca0785e64
Customers Report: support between args for dates
2019-01-29 08:58:07 +13:00
Kevin Killingsworth
833345dfee
Remove 'wc-admin' client/store implementation ( https://github.com/woocommerce/woocommerce-admin/pull/1344 )
...
This has been replaced by the `wc-api` store, under client/wc-api
2019-01-28 14:18:21 -05:00
Jeff Stieler
7592dae4bb
Merge pull request woocommerce/woocommerce-admin#1385 from woocommerce/add/customers-report-table-summary
...
Add table summary to Customers Report
2019-01-28 09:59:52 -07:00
Jeff Stieler
2703a0da4c
Merge pull request woocommerce/woocommerce-admin#1370 from woocommerce/fix/942-phpunit-gutenberg-dependency
...
Conditionally include Gutenberg plugin in test suite
2019-01-28 09:59:13 -07:00
Peter Fabian
71dc581f53
Merge pull request woocommerce/woocommerce-admin#1394 from woocommerce/fix/1393
...
Added zero-filling for intervals for taxes/stats endpoint
2019-01-28 13:09:02 +01:00
Albert Juhé Lluveras
066daa4b6a
Add Top Coupons Block ( https://github.com/woocommerce/woocommerce-admin/pull/1397 )
...
* Add Top Coupons Block
* Order coupons by orders_count by default
* Fix wrong variable name
2019-01-25 18:59:53 +01:00
Joshua T Flowers
9c9ff13c2b
Allow customer date_last_active to be null ( https://github.com/woocommerce/woocommerce-admin/pull/1377 )
...
* Allow customer date_last_active to be null
* Only show last active in customers report table if set
2019-01-25 09:37:50 -08:00
Timmy Crawford
40602efd89
Components; Fix SummaryNumber example ( https://github.com/woocommerce/woocommerce-admin/pull/1392 )
2019-01-25 09:17:09 -08:00
Peter Fabian
05aedb2a63
Added tests for ASC ordering.
2019-01-25 17:40:33 +01:00
Peter Fabian
b87ca4f6aa
Added filling in zeros for interval not having records in the database.
2019-01-25 14:54:14 +01:00
Peter Fabian
c8c9cd4943
Updated error message to point to the correct report.
2019-01-25 13:30:27 +01:00
Peter Fabian
4c8a95cb89
Added fetching of db intervals for later use in zero-filling.
2019-01-25 13:29:59 +01:00
Peter Fabian
1c09b6836d
Adjusted default return value when page is out of range.
2019-01-25 13:14:41 +01:00
Paul Sealock
050438a11c
Add emoji flags
2019-01-25 13:17:08 +13:00
David Levin
74fcff642c
Merge pull request woocommerce/woocommerce-admin#1382 from woocommerce/update/total-spend-label
...
Customer report: Update lifetime spend label and re-order columns + default sorting
2019-01-24 09:04:40 -08:00
Peter Fabian
d75c963bb1
Merge branch 'master' into fix/1012-2
2019-01-24 11:18:23 +01:00
Albert Juhé Lluveras
95c21e0cc3
Move 'getLabels' functions into lib/async-requests ( https://github.com/woocommerce/woocommerce-admin/pull/1379 )
...
* Move labels loading logic into a lib
* Avoid making API calls when displaying Order labels
* Move lib/labels into lib/async-requests
* Rename 'getCustomerLabel' to 'getCustomerLabels'
2019-01-24 10:35:27 +01:00
Joshua T Flowers
81b6f0f61b
Use tableQuery sorting when url query is not present ( https://github.com/woocommerce/woocommerce-admin/pull/1378 )
2019-01-24 09:36:11 +08:00
Joshua T Flowers
23f807c0a4
Add regex expression option to autocompleters ( https://github.com/woocommerce/woocommerce-admin/pull/1380 )
2019-01-24 09:35:47 +08:00
Jeff Stieler
8207bd7649
Add tests for customers report stats endpoint.
2019-01-23 17:48:22 -07:00
Jeff Stieler
6a215ceca9
Exclude customers with no orders from average orders count calculation.
2019-01-23 17:47:44 -07:00
Jeff Stieler
4cfa082d0f
Load gutenberg from test plugins directory if required.
2019-01-23 16:59:10 -07:00
Peter Fabian
c96b291a6c
Added a bit of test for interval=hour order_by=date desc.
2019-01-23 22:13:00 +01:00
Peter Fabian
64f1418f22
Merge branch 'master' into fix/1012-2
2019-01-23 21:40:09 +01:00
Peter Fabian
5b46862584
Merge pull request woocommerce/woocommerce-admin#1371 from woocommerce/fix/1316-1
...
First attempt to fix tests failing around end of hour
2019-01-23 21:34:16 +01:00
Peter Fabian
d61a4dd5bd
Updated tests to be more stable around hour end.
2019-01-25 00:06:59 +01:00
David Levin
4c18267408
update orderby in index
2019-01-23 10:08:27 -08:00
David Levin
e7a20b4216
update column lifetime spend column label, and re-order columns
2019-01-23 09:51:12 -08:00
Peter Fabian
33f1240987
Fix to remove extra intervals correctly.
2019-01-23 17:18:39 +01:00
Peter Fabian
eff341d832
Made the interval sorting stable (second level sort by time_interval).
...
This is required so that intervals are sorted in the same way each time when going through pages of results.
2019-01-23 16:58:03 +01:00
Peter Fabian
71a9be299a
Updated tests to pass before implementing the updated new/returning customer definition.
...
Context: https://github.com/woocommerce/wc-admin/issues/558#issuecomment-447782060
2019-01-23 13:29:40 +01:00
Peter Fabian
83a0d96f68
Added segmenting to response for revenue/stats test.
2019-01-23 10:37:09 +01:00
Peter Fabian
e432a17f1e
Added segmenting to response for products/stats test.
2019-01-23 10:36:50 +01:00
Peter Fabian
f190c1bad1
Fixed copy-paste bug for testing subtotals in REST response.
2019-01-23 10:36:27 +01:00
Peter Fabian
bcb7513f34
Added segmenting to response for coupons/stats test.
...
Fixed copy-paste error in test for subtotals.
2019-01-23 10:35:48 +01:00
Peter Fabian
bc42e6d985
Fixed bug introduced during refactoring.
2019-01-23 10:34:55 +01:00
Peter Fabian
fed94cbd0c
Added segmenting to response for coupons/stats test.
...
Changed return type for currency.
2019-01-23 10:34:07 +01:00
Peter Fabian
507ee13825
Merge branch 'master' into fix/1035
...
# Conflicts:
# client/analytics/report/customers/table.js
# includes/api/class-wc-admin-rest-reports-orders-stats-controller.php
# tests/reports/class-wc-tests-reports-orders-stats.php
2019-01-23 10:13:55 +01:00
Paul Sealock
3521e8d485
Merge pull request woocommerce/woocommerce-admin#1329 from woocommerce/fix/reduce-margin-small-views
...
Reports: Reduce Margins on Small Viewports
2019-01-23 14:38:48 +13:00
Peter Fabian
012e14c589
Corrected time-calculation of last interval.
2019-01-22 19:50:35 +01:00
Jeff Stieler
0ef976f964
Increase default wc-api timeout to 1 minute.
...
Large datasets may cause responses to take longer than 5 seconds.
2019-01-22 11:22:28 -07:00
Jeff Stieler
2d4aea1971
Only install/activate Gutenberg plugin if WP version under test is earlier than 5.0.
2019-01-22 10:44:00 -07:00
Peter Fabian
8a9a2c0673
Fixed interval arithmetic for hours and days.
2019-01-22 17:49:02 +01:00
David Levin
e9bb73f23d
Update order of summary numbers on taxes report ( https://github.com/woocommerce/woocommerce-admin/pull/1356 )
2019-01-22 07:49:17 -08:00
Paul Sealock
48f6777ea3
side margins
2019-01-22 13:24:01 +13:00
Paul Sealock
258c298e91
400
2019-01-22 13:11:06 +13:00
Paul Sealock
0e01c98851
Reports: Reduce Margins on Small Viewports
2019-01-22 12:29:32 +13:00
Paul Sealock
a52fab85de
Merge pull request woocommerce/woocommerce-admin#1332 from woocommerce/fix/summary-number-close-on-mobile
...
SummaryNumbers: close on click for mobile
2019-01-22 12:09:07 +13:00
Paul Sealock
35b3579632
Orders Report: Point table links to wc-admin reports with persisted query
2019-01-22 11:32:33 +13:00
Paul Sealock
c7b705fb08
SummaryNumbers: close on click for mobile
2019-01-22 11:31:37 +13:00
Paul Sealock
d09c68660b
Merge pull request woocommerce/woocommerce-admin#1328 from woocommerce/fix/Filters-only-complete-ranges
...
Advanced Filters: Ranges: Allow update only on complete selection
2019-01-22 11:21:10 +13:00
Justin Shreve
fdddca1186
Merge pull request woocommerce/woocommerce-admin#1366 from woocommerce/fix/schema-typo
...
Fix performance-indicators/allowed schema.
2019-01-21 15:54:15 -05:00
Albert Juhé Lluveras
834901bc84
Fill full plot area in bar charts ( https://github.com/woocommerce/woocommerce-admin/pull/1365 )
...
* Fill full plot area in bar charts
* Refactor chart scales tests
2019-01-21 20:58:38 +01:00
Albert Juhé Lluveras
f2ac9f2bb2
Center points in single-date charts ( https://github.com/woocommerce/woocommerce-admin/pull/1360 )
...
* Center single point charts
* Don't render lines if there is only one date
* Remove xOffset from 'params'
* Improve variable naming
2019-01-21 20:30:21 +01:00
Albert Juhé Lluveras
37d6fa0b60
CSS Lint fixes ( https://github.com/woocommerce/woocommerce-admin/pull/1367 )
2019-01-21 19:09:16 +01:00
Justin Shreve
1f8caf106e
Fix performance-indicators/allowed schema.
2019-01-21 12:28:32 -05:00
Joshua T Flowers
3ac97e00c4
Add single category filter to products report ( https://github.com/woocommerce/woocommerce-admin/pull/1350 )
...
* Add namespace v4 for WC product/categories endpoint
* Update categories wc-api to use v4 namespace constant
* Add single product category filter to product categories report
* Add link to filtered product report from category report
* Use persistedQuery for category links
* Check if category is defined before displaying category link
* Remove selectedTags when filter does not match queried filter
2019-01-22 01:12:00 +08:00
Joshua T Flowers
4869401ec4
REST API: Allow sorting by stock_status in stocks endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1335 )
...
* REST API: Allow sorting by stock_status in stocks endpoint
* Set stock_status as default orderby
* Sort by both stock status and quantity in meta query
* Use stock_status sort order by default in Stock table (https://github.com/woocommerce/woocommerce-admin/pull/1340 )
* Reverse stock quantity order when sorting by stock status
2019-01-22 01:11:20 +08:00
Jeff Stieler
4a6f2652b6
Hook customers report table summary up to stats endpoint.
2019-01-21 08:46:21 -07:00
Paul Sealock
7856a58b49
Advanced Filters: Ranges: Allow update only on complete selection
2019-01-21 09:54:31 +13:00
Albert Juhé Lluveras
c9df5861a8
Remove leading zero from chart dates ( https://github.com/woocommerce/woocommerce-admin/pull/1353 )
2019-01-19 12:38:17 +01:00
Jeff Stieler
07cbaae2a5
Add customers report stats endpoint.
2019-01-18 20:29:50 -07:00
Justin Shreve
2f60837ba5
Add performance indicators to dashboard ( https://github.com/woocommerce/woocommerce-admin/pull/1343 )
...
* Add label and generated report URL to the performance indicator response.
* Hook up performance indicators to the REST API
* Handle PR feedback
* Fix setting default values
2019-01-18 14:22:11 -05:00
Justin Shreve
286f5a7ae1
Update list of allowed stats
2019-01-18 15:11:38 -05:00
Justin Shreve
7c418a4a45
Add v4 of the data/countries filter so that the country autocompleter work and a notice goes away. ( https://github.com/woocommerce/woocommerce-admin/pull/1354 )
2019-01-18 14:17:12 -05:00
Justin Shreve
b8d25c3073
Fix setting default values
2019-01-18 12:11:49 -05:00
Peter Fabian
f2634ca5c8
Added support for segmenting to coupons/stats.
2019-01-18 17:11:46 +01:00
Justin Shreve
bd54541ca0
Handle PR feedback
2019-01-18 08:52:10 -05:00
Justin Shreve
01b96ebea5
Hook up performance indicators to the REST API
2019-01-18 08:19:19 -05:00
Justin Shreve
96fc10747f
Add label and generated report URL to the performance indicator response.
2019-01-18 08:16:52 -05:00
Peter Fabian
e8f264c346
Moved common code to parent class.
2019-01-18 14:08:34 +01:00
Peter Fabian
ea2f5ca5d9
Fixed number of parameters for product lookup update.
2019-01-18 13:07:19 +01:00
Peter Fabian
caea199852
Updated revenue/stats REST controller to include segmentation options/fields.
2019-01-18 13:06:40 +01:00
Peter Fabian
128f52fdc8
Restrict products/stats only to supported segmentby options.
2019-01-18 12:28:12 +01:00
Joshua T Flowers
25e7192ecb
Move search icon inside input wrapper ( https://github.com/woocommerce/woocommerce-admin/pull/1351 )
2019-01-18 18:51:47 +08:00
Peter Fabian
1d79714295
Added segmenting to products/stats.
2019-01-18 11:41:15 +01:00
Joshua T Flowers
fb8c4dd92f
Add single category filter to categories report ( https://github.com/woocommerce/woocommerce-admin/pull/1336 )
...
* Add single category filter to categories report
* Change categories leaderboard link to signle category link
* Remove todo comment regarding the single_category filter
* Update category links to categories report in products table
2019-01-18 15:46:12 +08:00
Joshua T Flowers
e0853b5408
Add country code as keyword for countries search ( https://github.com/woocommerce/woocommerce-admin/pull/1337 )
...
* Add country name to tooltip and screen reader text
* Add country code to autocompleter keywords
2019-01-18 11:13:07 +08:00
Joshua T Flowers
6b29ec01a7
Add autocompleter input type and fix load options ( https://github.com/woocommerce/woocommerce-admin/pull/1334 )
...
* Allow inputType option for autocompleters
* Return early if optionsData is undefined in loadOptions
* Remove number spinners for autocomplete number inputs
2019-01-18 10:53:38 +08:00
Joshua T Flowers
7cdbbf87e8
Update all wc-admin endpoints to v4 ( https://github.com/woocommerce/woocommerce-admin/pull/1298 )
...
* Update all wc-admin endpoints to v4
* Add namespace for products and customers controllers
* Include product quantity in orders data store
* Add coupons to extended data in the orders data store
* Format order statuses response from database
* Hook up orders table to orders endpoint
* Add namespace to data endpoint controller
* Add namespaces to remaining extended controllers
* Use NAMESPACE var in place of wc/v4
* Update product links in orders table to products reports
* Add coupons rest controller override
* Format coupon code in response
Co-Authored-By: joshuatf <joshuatf@gmail.com>
2019-01-18 10:52:58 +08:00
Joshua T Flowers
11ddae699a
Add helpText to coupon compare button ( https://github.com/woocommerce/woocommerce-admin/pull/1333 )
2019-01-18 10:22:51 +08:00
Jeff Stieler
4407e05bc4
Merge pull request woocommerce/woocommerce-admin#1342 from woocommerce/fix/1090-currency-settings-formatting
...
Honor WooCommerce Settings When Formatting Currency/Price
2019-01-17 17:06:13 -07:00
Jeff Stieler
ec2efaf560
Update affected package CHANGELOGs.
2019-01-17 16:38:43 -07:00
Jeff Stieler
560606df17
Update comment about formatCurrency() currency symbol parameter fallback logic.
2019-01-17 16:30:27 -07:00
Jeff Stieler
4fabbee20f
numberFormat(): add test for new non-number precision value logic.
2019-01-17 16:28:00 -07:00
Jeff Stieler
2ad5922f1f
Simplify precision preservation logic in numberFormat().
...
Props @Aljullu.
2019-01-17 16:25:44 -07:00
Albert Juhé Lluveras
059cd0ef0d
Set default order to 'desc' in time tables ( https://github.com/woocommerce/woocommerce-admin/pull/1341 )
2019-01-17 22:14:12 +01:00
Albert Juhé Lluveras
5dcea1af6f
Remove wc-api customers ( https://github.com/woocommerce/woocommerce-admin/pull/1338 )
2019-01-17 19:07:21 +01:00
Paul Sealock
836cccafb8
Merge pull request woocommerce/woocommerce-admin#1327 from woocommerce/fix/filter-width-wide-screens
...
Filters: make 1/4 width for wiiiiiiide screens
2019-01-18 07:01:17 +13:00
Paul Sealock
3ba676ac57
Merge pull request woocommerce/woocommerce-admin#1305 from woocommerce/fix/date-query-formats
...
Advanced Filters: append time stamp to dates for API query
2019-01-18 07:00:40 +13:00
Timmy Crawford
508c48042c
chore(release): publish ( https://github.com/woocommerce/woocommerce-admin/pull/1326 )
...
- @woocommerce/components@1.4.0
- @woocommerce/csv-export@1.0.2
- @woocommerce/date@1.0.5
2019-01-17 09:11:49 -08:00
Jeff Stieler
7a0243e6d7
Use store currency settings to initialize D3 format.
2019-01-17 10:08:15 -07:00
Jeff Stieler
25e81de952
Decode HTML entities in currency symbol and price format for use on the frontend.
...
The only alternative is to `dangerouslySetInnerHTML` everywhere.
2019-01-17 09:21:03 -07:00
Peter Fabian
25bb5e06df
Factor out the segmentation code so that it's more reusable and clutters orders/stats data store less.
2019-01-17 12:14:24 +01:00
Albert Juhé Lluveras
4d2ee738d0
Set eslint react version to 'detect' ( https://github.com/woocommerce/woocommerce-admin/pull/1300 )
2019-01-17 10:25:08 +01:00
Albert Juhé Lluveras
0cda85b997
Add missing thousands separator in charts Y-axis ( https://github.com/woocommerce/woocommerce-admin/pull/1312 )
2019-01-17 10:18:28 +01:00
Jeff Stieler
6ed8ea117a
Refactor formatCurrency() to use store settings for formatting rather than store locale.
2019-01-17 00:04:57 -07:00
Jeff Stieler
ddae6d3955
Add currency symbol to orders endpoint response.
2019-01-17 00:01:09 -07:00
Joshua T Flowers
da22cbdc9d
Update returning customer data to use customer ID ( https://github.com/woocommerce/woocommerce-admin/pull/1180 )
...
* Change check for returning customers to check customer_id
* Count distinct returning and new customers in totals
* Fix priority action misplacement and order date timestamp
* Change expected num returning/new customers to fix failing tests
Previously these included references to number of returning vs new orders. Update to refer to the newly updated customer count.
* Use new get_customer_id_by_user_id() to get customer ID
* Fix 0 returning customers expectation
* Move returning customer function to order stats data store
* Sync order stats on order delete
* Change date compare for is_returning_customer
* Add test case for returning customer order
* Add references to instead of 2
2019-01-17 10:47:30 +08:00
Jeff Stieler
858ec82e8c
Rework numberFormat() to maintain decimal precision by default.
2019-01-16 18:41:15 -07:00
Paul Sealock
d214e229ae
refactor timeStampFilterDates
2019-01-17 13:57:11 +13:00
Paul Sealock
af98c7dd91
better tests
2019-01-17 13:35:20 +13:00
Jeff Stieler
4bf7a79a84
Add price format, decimal separator, and thousand separator to currency settings object.
2019-01-16 17:32:48 -07:00
Jeff Stieler
78e1be139f
Refactor numberFormat() to use the store settings for precision, decimal separator, and thousand separator.
2019-01-16 17:32:12 -07:00
Paul Sealock
41c30c7506
Filters: make 1/4 width for wiiiiiiide screens
2019-01-17 12:21:45 +13:00
Paul Sealock
c866d1e1e2
Customers Report: remove extended data call
2019-01-17 10:10:23 +13:00
Paul Sealock
aaceb781fd
tests
2019-01-17 09:37:43 +13:00
Paul Sealock
b3d7e96a00
jsDoc
2019-01-17 09:08:04 +13:00
Paul Sealock
4cd803466a
updateFilter
2019-01-17 08:57:41 +13:00
Jeff Stieler
149ee08f4b
Include all users in customer lookup table generation.
2019-01-16 10:20:11 -07:00
Jeff Stieler
c0e6a097fd
Fix orders report test.
2019-01-16 09:45:52 -07:00
Jeff Stieler
11cb74cccd
Fix variable name nitpick.
2019-01-16 09:45:52 -07:00
Jeff Stieler
a2f94c11ba
Add coupons and taxes lookup table generation to reports rebuild.
2019-01-16 09:45:51 -07:00
Jeff Stieler
84732137bc
Bail out of creating batches for customers and orders if there are none.
2019-01-16 09:45:51 -07:00
Jeff Stieler
ffe11650a8
Remove now-defunct order stats background process.
2019-01-16 09:45:50 -07:00
Jeff Stieler
763cc972a7
Regenerate all reports from rebuild stats endpoint.
2019-01-16 09:45:04 -07:00
Jeff Stieler
5c6174066e
Add tests for report regeneration batch queuing methods.
2019-01-16 09:45:04 -07:00
Jeff Stieler
1a5af7094d
Add WC_Action_Queue test helper class.
...
The test helper allows inspection of the action queue.
2019-01-16 09:45:04 -07:00
Jeff Stieler
4786938bdf
Fix customers report tests.
2019-01-16 09:45:03 -07:00
Jeff Stieler
6eca20c5fd
Reports regenerate: add mechanism to queue an action after another completes - use to queue orders lookup init after customers lookup.
2019-01-16 09:45:03 -07:00
Jeff Stieler
4740f93985
Reports regenerate: use queue to update order stats and products lookup table.
2019-01-16 09:45:02 -07:00
Jeff Stieler
3b9a4ef4a1
Report regeneration: allow batch sizes to differ between actions.
2019-01-16 09:45:02 -07:00
Jeff Stieler
fabc1dc70b
Reports regenerate: use queue to update customers lookup table.
2019-01-16 09:45:02 -07:00
Jeff Stieler
c361119a0d
Report table generation: add method for enqueuing a large number of batch jobs with a limited batch size.
2019-01-16 09:45:01 -07:00
Timmy Crawford
d45f31c389
Update packages docs ( https://github.com/woocommerce/woocommerce-admin/pull/1324 )
2019-01-16 08:39:37 -08:00
Timmy Crawford
0cb75629de
Release v0.5.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1319 )
...
* Release 0.5.0
* Updates from release build.
2019-01-16 08:24:45 -08:00
renovate[bot]
e6dd023fc8
Update dependency recast to v0.16.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1318 )
2019-01-16 13:13:44 +01:00
renovate[bot]
f3c61d4121
Update dependency eslint-plugin-jest to v22.1.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1317 )
2019-01-16 13:01:02 +01:00
renovate[bot]
65c2a01213
Update dependency dompurify to v1.0.9 ( https://github.com/woocommerce/woocommerce-admin/pull/1315 )
2019-01-16 12:58:54 +01:00
renovate[bot]
78cfaec287
Update dependency core-js to v2.6.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1314 )
2019-01-16 12:57:08 +01:00
renovate[bot]
f8c6d949e4
Pin dependency node-watch to 0.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1313 )
2019-01-16 12:55:13 +01:00
Peter Fabian
05c7670090
Merge branch 'master' into fix/1035
...
# Conflicts:
# includes/class-wc-admin-reports-interval.php
# includes/data-stores/class-wc-admin-reports-data-store.php
# includes/data-stores/class-wc-admin-reports-products-data-store.php
2019-01-16 12:51:23 +01:00
Joshua T Flowers
33a7cfa1b0
Store all order statuses ( https://github.com/woocommerce/woocommerce-admin/pull/1285 )
...
* Store all orders regardless of status in wc_order_stats
* Only query select statuses if status_is or status_is_not is not set
* Fix order stats example query
* Filter category store by default order statuses
* Add table_name to interval functions to avoid ambiguity
* Filter coupon store by default order statuses
* Fix interval stats by adding table_name to interval function
* Filter products store by default order statuses
* Remove unused order_status in coupons data store
* Store products with any order status
* Fix ambiguous order by call in products data store
* Apply status filter after other filters to avoid logical OR matching
* Store all coupon data regardless of order status
* Filter taxes by default order statuses
* Filter customer stats by default order status
* Filter default order statuses in variations data store
* Use excluded statuses to filter reports by default
* DRY up default excluded statuses query
* Fix up new orders data store after rebase
2019-01-16 10:23:00 +08:00
Albert Juhé Lluveras
1001dd0601
Fix watch package files in Linux ( https://github.com/woocommerce/woocommerce-admin/pull/1301 )
2019-01-15 19:40:13 +01:00
Albert Juhé Lluveras
de4309d61e
Remove `barfocus` elements from charts ( https://github.com/woocommerce/woocommerce-admin/pull/1311 )
...
* Remove barfocus elements from charts
* Render background color behind bars
* Rename barmouse to barfocus
2019-01-15 19:40:02 +01:00
renovate[bot]
a5cfc072c2
Pin dependency mini-css-extract-plugin to 0.5.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1309 )
2019-01-15 12:09:07 +01:00
Albert Juhé Lluveras
8b341f0981
Replace 'extract-text-webpack-plugin' with 'mini-css-extract-plugin' ( https://github.com/woocommerce/woocommerce-admin/pull/1299 )
2019-01-15 11:55:54 +01:00
Peter Fabian
29f07f8c57
Re-enable temporarily disabled tests.
2019-01-15 11:51:43 +01:00
Peter Fabian
5ba443fca8
Updated data store used in test to reflect the rename of class.
2019-01-15 11:50:53 +01:00
Peter Fabian
c324157483
Merge branch 'master' into fix/1035
...
# Conflicts:
# includes/data-stores/class-wc-admin-reports-orders-data-store.php
# includes/data-stores/class-wc-admin-reports-orders-stats-data-store.php
2019-01-15 11:39:39 +01:00
Peter Fabian
2fc9de0bb0
Preparation for merge of a moved file.
2019-01-15 11:36:56 +01:00
Peter Fabian
f84efa3a58
Added test for segmenting /orders/stats by product.
2019-01-15 11:16:31 +01:00
Peter Fabian
d067c2148d
Added sorting of segments so that they have predictable order.
2019-01-15 11:13:43 +01:00
Peter Fabian
ea2d5bfe35
Removed double refund subtracting.
2019-01-15 11:11:58 +01:00
Peter Fabian
93b331243b
Corrected JSON response in case no fields are selected in $query_params.
2019-01-15 11:11:14 +01:00
Peter Fabian
b593163dff
Added more general function for sorting array of arrays based on subarray's key.
2019-01-15 11:08:23 +01:00
Paul Sealock
7b11e40981
timeStampFilterDates
2019-01-15 15:40:12 +13:00
Joshua T Flowers
ee19308254
Add initial state hydration for user data ( https://github.com/woocommerce/woocommerce-admin/pull/1297 )
...
* Hydrate initial state through localized script
* Parse user meta for default rows as integer
* Change eslint ignore to undef only
* Add currentUserData to wcSettings
2019-01-15 10:24:06 +08:00
Joshua T Flowers
4b3df7732b
Add showMenu prop to TableCard to hide ellipsis menu ( https://github.com/woocommerce/woocommerce-admin/pull/1296 )
...
* Add showMenu prop to TableCard to hide ellipsis menu
* Fix proptype description
2019-01-15 10:13:15 +08:00
Paul Sealock
01cf0eba2f
specify before on construct
2019-01-15 15:01:38 +13:00
Joshua T Flowers
14f8f08edf
Add v4 orders endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1246 )
...
* Rename orders controllers and data store to order stats
* Add orders data store and controller
* Add coupon, product, and status filters
* Add customer type query filter
* Add extended info for products and categories
* Bump API namespace to v4
* Add missing schema properties
* Set default customer_type and extended_info params
* Add orders endpoint tests
* Only use one JOIN if both excluded and included queries are used
* Optimize query calls to get product and category data
* Split product and category fetch and limit to product_cat taxonomy
2019-01-15 09:53:02 +08:00
Paul Sealock
66b76f5b8f
replaceFilter
2019-01-15 13:47:07 +13:00
Paul Sealock
7556b45eab
Advanced Filters: Dates, fix query formats
2019-01-15 13:02:24 +13:00
Paul Sealock
1fa45e4364
Merge pull request woocommerce/woocommerce-admin#1146 from woocommerce/add/date-filter-calendar
...
Advanced Filters: Add DatePicker
2019-01-15 09:43:10 +13:00
Paul Sealock
64d52b0d2f
Merge pull request woocommerce/woocommerce-admin#1233 from woocommerce/fix/devDocs-filePath
...
Fix/dev docs file path
2019-01-15 09:42:24 +13:00
Justin Shreve
a3ccfd300e
Fix date formatting in safari by switching to moment ( https://github.com/woocommerce/woocommerce-admin/pull/1290 )
2019-01-14 11:29:46 -05:00
Peter Fabian
13ec8e2851
FOrmula for shipping distribution among line items updated to reflect qty, so that sum of shipping per line item equals total shipping amount.
2019-01-14 16:10:13 +01:00
renovate[bot]
81b28d7b19
Update dependency eslint-plugin-react to v7.12.3 ( https://github.com/woocommerce/woocommerce-admin/pull/1261 )
2019-01-14 12:52:16 +01:00
renovate[bot]
af91eacacb
Lock file maintenance ( https://github.com/woocommerce/woocommerce-admin/pull/1242 )
2019-01-14 12:08:06 +01:00
renovate[bot]
2cd434c676
Update dependency chalk to v2.4.2 ( https://github.com/woocommerce/woocommerce-admin/pull/1258 )
2019-01-14 11:47:28 +01:00
renovate[bot]
0f25d33fcc
Update dependency babel-loader to v8.0.5 ( https://github.com/woocommerce/woocommerce-admin/pull/1257 )
2019-01-14 11:45:23 +01:00
renovate[bot]
0bdbf3b724
Update dependency eslint to v5.12.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1259 )
2019-01-14 11:42:51 +01:00
renovate[bot]
8ff156fb8d
Update dependency autoprefixer to v9.4.5 ( https://github.com/woocommerce/woocommerce-admin/pull/1256 )
2019-01-14 11:31:18 +01:00
renovate[bot]
b19b8b8687
Update dependency lerna to v3.10.5 ( https://github.com/woocommerce/woocommerce-admin/pull/1262 )
2019-01-14 11:26:35 +01:00
Albert Juhé Lluveras
f009506a45
Makes table dates accessible ( https://github.com/woocommerce/woocommerce-admin/pull/1274 )
...
* Create 'Date' component to render accessible dates
* Add tests
2019-01-14 10:54:44 +01:00
Paul Sealock
be76392a0c
devDocs: update path for prop docs
2019-01-14 15:07:28 +13:00
Paul Sealock
7525e2347a
Add calendar to date advanced filter
2019-01-14 13:22:39 +13:00
Albert Juhé Lluveras
328a49127a
Remove decimals from Y-axis ( https://github.com/woocommerce/woocommerce-admin/pull/1288 )
...
* Remove decimals from Y-axis
* Add CHANGELOG message
2019-01-11 19:18:31 +01:00
Albert Juhé Lluveras
ad457cc123
Avoid duplicated Y-axis values ( https://github.com/woocommerce/woocommerce-admin/pull/1289 )
...
* Avoid duplicated yGrids
* Add tests
* Rename 'roundedValue' to 'value' to better reflect its contents
* Add CHANGELOG message
2019-01-11 19:16:29 +01:00
Albert Juhé Lluveras
753ec498ba
Update activity button focus styles ( https://github.com/woocommerce/woocommerce-admin/pull/1287 )
...
* Update activity button focus styles
* Set overflow to 'auto' instead of 'scroll' in activity panels
2019-01-11 18:45:06 +01:00
Peter Fabian
20090a90e4
Added segments property to revenue test.
2019-01-11 18:39:57 +01:00
Peter Fabian
562e21ff54
Replace time interval keys with numeric ones to format REST response correctly.
2019-01-11 18:20:43 +01:00
Timmy Crawford
7d89799194
Remove hour from default clause in getAllowedIntervalsForQuery when period is empty ( https://github.com/woocommerce/woocommerce-admin/pull/1279 )
2019-01-11 07:51:24 -08:00
Justin Shreve
764845a6c0
Add top categories block ( https://github.com/woocommerce/woocommerce-admin/pull/1276 )
...
* Add Top Categories Block
* Update category and product blocks with correct links.
* Handle PR feedback/design cleanup
2019-01-11 10:11:10 -05:00
Peter Fabian
8059251656
Updated type for products field in response.
2019-01-11 15:29:03 +01:00
Peter Fabian
ab4eb674e2
Added segments fields to expected response in tests.
2019-01-11 15:28:28 +01:00
Peter Fabian
bc68976fb7
Updated schema tests to reflect latest changes.
2019-01-11 15:27:24 +01:00
Peter Fabian
26925872ec
Corrected return types so that no segmented queries work fine.
2019-01-11 15:25:17 +01:00
Peter Fabian
ebe76c2d43
Added missing parameter to new data stores.
2019-01-11 15:23:13 +01:00
Peter Fabian
7308aa415b
Schema updates.
2019-01-11 15:22:19 +01:00
Albert Juhé Lluveras
9d1edd6a56
Make d3chart component stateless ( https://github.com/woocommerce/woocommerce-admin/pull/1273 )
...
* Make d3chart component stateless
* Move back 'drawChart' to d3chart/chart.js
* Add getColor method changelog comment
* Reorder chart constructor methods binding
2019-01-11 12:24:10 +01:00
Peter Fabian
5edc60d30b
Added refund_total also to intervals (to be able to calculate net_total correctly).
2019-01-11 11:32:59 +01:00
Peter Fabian
ff6b4ffb26
Added refund_total to unique orders table to be able to calculate net_total correctly.
2019-01-11 11:31:21 +01:00
Peter Fabian
d14426cbc1
Corrected type of parameter in the docblock.
2019-01-11 11:30:43 +01:00
Peter Fabian
69f63f48d2
Ain't Nobody Got Time for That.
2019-01-11 11:25:49 +01:00
Peter Fabian
250c0910a1
Merge branch 'master' into fix/1035
2019-01-11 11:16:01 +01:00
Peter Fabian
411ff59788
WIP on orders/stats segmenting.
2019-01-11 11:11:23 +01:00
Joshua T Flowers
e68f751298
Change category gross stats to net ( https://github.com/woocommerce/woocommerce-admin/pull/1283 )
2019-01-11 17:56:58 +08:00
Jeff Stieler
3efebb37e1
Merge pull request woocommerce/woocommerce-admin#1267 from woocommerce/update/numeric-filter-array-value
...
Numeric filter: generate a true array value for “between” rule
2019-01-10 19:31:15 -07:00
Jeff Stieler
adf8bbeb23
Merge pull request woocommerce/woocommerce-admin#1260 from woocommerce/fix/1239-handle-between-rest-api-param
...
Handle *_between params in Reports controllers
2019-01-10 10:52:08 -07:00
Justin Shreve
350e296d2c
Allow sorting by title and SKU to report tables ( https://github.com/woocommerce/woocommerce-admin/pull/1266 )
2019-01-10 12:10:31 -05:00
Jeff Stieler
571ee1fee0
Merge pull request woocommerce/woocommerce-admin#1271 from woocommerce/update/customer-report-real-endpoint
...
Hook up customers report table to real data.
2019-01-10 08:16:13 -07:00
Albert Juhé Lluveras
279bc142bb
Fix chart blocks not being responsive ( https://github.com/woocommerce/woocommerce-admin/pull/1265 )
2019-01-10 10:55:15 +01:00
Jeff Stieler
c223977dbd
Hook up customers report table to real data.
2019-01-09 17:45:24 -07:00
Jeff Stieler
c565b9cb40
Numeric filter: generate a true array value for “between” rule instead of a comma-delimited string.
2019-01-09 14:23:49 -07:00
Jeff Stieler
2246a1e075
Expect array value for _between params.
...
Add param validation method and normalize to min/max based by comparing values.
2019-01-09 14:19:37 -07:00
Justin Shreve
d46ce1df7a
Add store performance indicator endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1255 )
...
* Add store performance REST API endpoint
* Clean up validation, add list of allowed stats to OPTIONS endpoint, and rename endpoint to performance-indicators
* Add tests
* Add additional filters to make extending the performance indiciators area easier.
* Add docblocks for filters
2019-01-09 16:08:39 -05:00
Jeff Stieler
43517940fb
Merge pull request woocommerce/woocommerce-admin#1144 from woocommerce/add/916-customers-report-endpoint
...
Add `/reports/customers` endpoint
2019-01-08 19:04:17 -07:00
Jeff Stieler
06763cc3a5
Don’t cast date values to strings in customers report data store since they’re allowed to be null.
...
NULL column values resulted in NOW() in the response.
2019-01-08 18:49:49 -07:00
Jeff Stieler
6e369bd145
Handle *_between parameters in Customers Report endpoint controller.
2019-01-08 17:41:48 -07:00
Jeff Stieler
b15a4bc804
Add utility method to normalize numeric “between” parameters in REST API requests.
2019-01-08 17:41:24 -07:00
Joshua T Flowers
80fe765657
Use a date instead of hour for single dates in report tables ( https://github.com/woocommerce/woocommerce-admin/pull/1208 )
...
* Use a date instead of hour for single dates in report tables
* Add hour to allowed list when day difference is less than 1
* Prioritize hour format over day and set day as default for tables
* Add default intervals for report tables
* Use explicit date format in report tables
* Add constant for default table format
* Restore allowed intervals for >1 && <7 days
2019-01-09 08:24:49 +08:00
Joshua T Flowers
bdb9525afe
Add dashboard chart interval preferences ( https://github.com/woocommerce/woocommerce-admin/pull/1230 )
...
* Add user interval preferences for dashboard charts
* Add interval selector styling
2019-01-09 08:12:39 +08:00
Jeff Stieler
d9fd8568df
Customers report: perform a LEFT JOIN on the order stats table to include customers that have not yet placed an order.
2019-01-08 10:47:19 -07:00
Jeff Stieler
46b503dd54
Update customers report lookup table when customers/users are updated.
2019-01-08 10:33:17 -07:00
Jeff Stieler
154482acc9
Derive orders_count, total_spend, avg_order_value, and date_late_order for customer reports from the order stats report table.
2019-01-08 10:33:17 -07:00
Jeff Stieler
8105ddb38a
Add new guest customers to lookup when syncing the order stats report table.
2019-01-08 10:33:16 -07:00
Jeff Stieler
1a90840e97
Add customer_id to order stats report table to reference with customer lookup.
2019-01-08 10:30:16 -07:00
Jeff Stieler
d42e04cd59
Short circuit registered customer data update when the given ID is bad.
2019-01-08 10:29:44 -07:00
Jeff Stieler
a1317f2152
Customer lookup table: allow registration date to be null (for guests).
2019-01-08 10:29:43 -07:00
Jeff Stieler
c337944cf6
Backfill guests into customer report lookup table using order data and billing email.
2019-01-08 10:29:43 -07:00
Jeff Stieler
d000d3e42a
Add cases using ‘name’ and a date parameter to customers report endpoint tests.
2019-01-08 10:29:42 -07:00
Jeff Stieler
fa3379e62f
Customer report data store: fix handling of ‘name’ parameter in WHERE clause.
2019-01-08 10:29:42 -07:00
Jeff Stieler
714c1ee030
Customer report data store: fix comparison operator for date param “after” where clause.
2019-01-08 10:29:42 -07:00
Jeff Stieler
737331dd3b
Add missing _gmt date fields to customers report response items.
2019-01-08 10:29:41 -07:00
Jeff Stieler
1a4b890660
Add unit tests for customers report endpoint.
2019-01-08 10:29:41 -07:00
Jeff Stieler
04a30e668b
Customer report data store: fix SQL when where clauses are empty.
2019-01-08 10:29:40 -07:00
Jeff Stieler
1832450fd1
Update customer lookup table when orders (with registered customers) are created, updated, or refunded.
2019-01-08 10:29:40 -07:00
Jeff Stieler
2ea61e9a86
Move registered customer lookup update logic into data store class.
2019-01-08 10:29:40 -07:00
Jeff Stieler
d0e2c5162f
Place a UNIQUE constraint on the user_id key for the customer report lookup table.
2019-01-08 10:29:39 -07:00
Jeff Stieler
dd87522a5e
Customers report endpoint: only include customer link if they’re a registered user.
2019-01-08 10:29:39 -07:00
Jeff Stieler
fc20d2bb1b
Remove unnecessary subquery from customer reports data store records count query.
2019-01-08 10:29:38 -07:00
Jeff Stieler
a75a33c32f
Handle match parameter in customers report data store.
...
Note: before/after and min/max ranges are always ‘AND’.
2019-01-08 10:29:38 -07:00
Jeff Stieler
97e6f795e9
Fix copy-pasta in customers report REST controller.
2019-01-08 10:29:38 -07:00
Jeff Stieler
a180566c2f
Set default parameters for customers report query.
2019-01-08 10:29:37 -07:00
Jeff Stieler
0c919add5d
Fix query params in customers report controller.
2019-01-08 10:29:37 -07:00
Jeff Stieler
6e5fef2f7b
Include customers report files.
2019-01-08 10:29:37 -07:00
Jeff Stieler
746120e254
Change customer report lookup table columns to match API parameters.
2019-01-08 10:29:36 -07:00
Jeff Stieler
9670719fc6
Add customers report query endpoint implementation.
2019-01-08 10:29:36 -07:00
Jeff Stieler
b9f0d9fe5f
Update customers report endpoint item schema to match (visual) table designs.
2019-01-08 10:29:35 -07:00
Jeff Stieler
56beada220
Update customers report endpoint parameters to match new lookup table filters.
2019-01-08 10:29:35 -07:00
Jeff Stieler
a2154daa4c
Register customer report lookup table with core WC.
2019-01-08 10:29:35 -07:00
Jeff Stieler
281c06a5d4
Add username column to customer report lookup table.
2019-01-08 10:29:34 -07:00
Jeff Stieler
9131932910
First pass at initializing the customer lookup table with existing registered customer data.
2019-01-08 10:29:34 -07:00
Jeff Stieler
a5cf136037
Add customer report lookup table creation to initialization query.
2019-01-08 10:29:33 -07:00
Albert Juhé Lluveras
41b933e714
Add link to file in Downloads table ( https://github.com/woocommerce/woocommerce-admin/pull/1253 )
...
* Add link to file in Downloads table
* Fix wrong param name for 'ip_address'
2019-01-08 17:51:19 +01:00
Jeff Stieler
d2ca354bd5
Merge pull request woocommerce/woocommerce-admin#1099 from woocommerce/fix/advanced-filters-legend-text
...
Rework advanced filters screen reader text generation
2019-01-08 08:45:13 -07:00
Justin Shreve
f37b9319e1
Download Report API: Add path to response, fix ordering, and fix schema typo ( https://github.com/woocommerce/woocommerce-admin/pull/1248 )
...
* Add download_path to download report endpoint and fix schema typo
* Fix ordering and add tests
2019-01-08 09:51:28 -05:00
Albert Juhé Lluveras
03e17d372b
Add new props to chart component ( https://github.com/woocommerce/woocommerce-admin/pull/1247 )
...
* Add different props to chart component that were inferred from 'mode'
* Add new chart props to packages CHANGELOG
2019-01-08 10:21:47 +01:00
Joshua T Flowers
ef6d7ec4cb
Add leaderboard section ( https://github.com/woocommerce/woocommerce-admin/pull/1234 )
...
* Add leaderboard section to dashboard
* Add rows per table user preference
* Pass in rowsPerTable to leaderboards to adjust total rows
* Add styling for rows select dropdown
* Set default for total rows if tableQuery is undefined
* Remove double localization on leaderboard labels
* Simplify toggle logic for hidden leaderboards
* Move updateCurrentUserData outside of setState callback
2019-01-08 15:20:01 +08:00
Joshua T Flowers
9fef5d4f5d
Add dashboard chart links to reports ( https://github.com/woocommerce/woocommerce-admin/pull/1236 )
...
* Add dashboard chart links to reports
* Remove extra css background property from screen reader text
* Remove elements from previous click handler attempt
* Concat translation strings with sprintf
* Change chart hover interactions
* Move i18n to external dependencies
* Make legend buttons match background on hover
2019-01-08 14:48:39 +08:00
Joshua T Flowers
82200895dd
Defer chart drawing until chart component has rendered ( https://github.com/woocommerce/woocommerce-admin/pull/1244 )
2019-01-08 10:10:29 +08:00
Joshua T Flowers
d9e7e1b952
Remove unused show_product_categories_in_rest function ( https://github.com/woocommerce/woocommerce-admin/pull/1235 )
2019-01-08 09:53:02 +08:00
Joshua T Flowers
e067da06be
Add dashboard chart user preferences ( https://github.com/woocommerce/woocommerce-admin/pull/1225 )
...
* Add user preferences for shown dashboard charts
* Add user preferences for dashboard chart type
* Check if user preferences are set before assigning to state
* Move API update methods out of callbacks and use xor
2019-01-08 09:49:11 +08:00
Joshua T Flowers
f3346e9298
Add the order status column to lookup table ( https://github.com/woocommerce/woocommerce-admin/pull/1211 )
...
* Add the order status column to lookup table
* Fix order status filter for order stats
* Fix normalize order status and make static function
2019-01-08 09:16:10 +08:00
Albert Juhé Lluveras
6ca0c628b2
Connect Downloads report to REST API ( https://github.com/woocommerce/woocommerce-admin/pull/1238 )
...
* Connect downloads chart and table to REST API
* Display date picker in Downloads report
* Fix missing value for 'days' in Downloads table summary
* Fix download_count being a string instead of a number
* Minor date packages comment fixes
* Fix filters in Downloads report
* Add back empty line
* JSDoc comments style fixes
* Fix username filter not working
* Fix days counter off by 1
* Fix alignment issue
2019-01-07 12:54:42 +01:00
Albert Juhé Lluveras
3a90c07e76
Fix date issues introduced in woocommerce/woocommerce-admin#1203 ( https://github.com/woocommerce/woocommerce-admin/pull/1229 )
...
* Revert "Show today charts up to the current hour (https://github.com/woocommerce/woocommerce-admin/pull/1203 )"
This reverts commit 029ff9cc9c
.
* Add current hour to timestamp of queries ending in today
* Fix getCurrentDates not returning moment objects as specified in the docs but returning string dates
* Set appendTimestamp( ..., 'now') seconds to 00
* Add test for appendTimestamp( ..., 'now' )
* Don't accept string dates in 'appendTimestamp'
* Fix 'moment' dependency deprecation warning
2019-01-07 11:41:46 +01:00
Albert Juhé Lluveras
b08e604047
Fix bar chart in narrow viewports ( https://github.com/woocommerce/woocommerce-admin/pull/1226 )
...
* Fix bar chart in narrow viewports
* Make date width depend on the number of columns
* Return early in 'shouldBeCompact' and 'getWidth' functions
* Hide tooltip when scrolling
2019-01-07 11:41:01 +01:00
Albert Juhé Lluveras
b91cfd2cc6
Split `d3chart/utils.js` into several files ( https://github.com/woocommerce/woocommerce-admin/pull/1231 )
...
* Split d3chart/utils.js
* Add format comment to breakpoints.js
2019-01-04 11:21:42 +01:00
Paul Sealock
3cd27ed631
Merge pull request woocommerce/woocommerce-admin#1127 from woocommerce/renovate/major-wordpress-monorepo
...
Update wordpress monorepo (major)
2019-01-04 14:34:30 +13:00
Paul Sealock
d6c5f47ee1
jest update
2019-01-04 14:26:55 +13:00
Paul Sealock
c75777cd11
add variable now used in button's scss
2019-01-04 14:00:28 +13:00
Paul Sealock
5a4f6185d6
Merge pull request woocommerce/woocommerce-admin#1216 from woocommerce/fix/date-range-dow
...
DateRange: use DayOfWeek from moment locale
2019-01-04 13:30:59 +13:00
Paul Sealock
17a21e00db
DateRange: use DayOfWeek from moment locale{
2019-01-04 11:50:05 +13:00
Paul Sealock
8867166556
Merge pull request woocommerce/woocommerce-admin#1221 from woocommerce/renovate/lerna-3.x
...
Update dependency lerna to v3.8.4
2019-01-04 11:45:25 +13:00
Jeff Stieler
a8e81b709f
Fix type in textContent() test case label.
2019-01-03 13:13:23 -07:00
Jeff Stieler
f2df49ce24
Add tests for textContent().
2019-01-03 13:13:22 -07:00
Jeff Stieler
1935e75f5c
Render descriptive screen reader text for SearchFilter and SelectFilter components.
2019-01-03 13:13:22 -07:00
Jeff Stieler
850a738289
NumberFilter: don’t hide anything from accessibility tree, render descriptive span for screen reader instead of using speak().
2019-01-03 13:13:22 -07:00
Jeff Stieler
7663cb2881
NumberFilter: a11y speak a description of the filter once all inputs are populated.
2019-01-03 13:13:21 -07:00
Jeff Stieler
cbc5bc36fd
NumberFilter: remove dynamic legend text, just use “add” label.
2019-01-03 13:13:21 -07:00
Jeff Stieler
3528957923
NumberFilter: automatically hide non-interpolated strings in title label from accessibility tree.
2019-01-03 13:13:20 -07:00
Jeff Stieler
ed81b35d0a
Rework NumberFilter screen reader text.
...
Only describe full filter if all values are set. Describe each input more precisely. Based on conversation here: https://github.com/woocommerce/wc-admin/pull/1089#discussion_r241843856
2019-01-03 13:13:20 -07:00
Justin Shreve
e3e9ccb6a4
Add `reports/downloads/stats` REST API Endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1142 )
...
* First pass at downloads REST API
* Add reports/downloads/stats endpoint.
* Add tests
* Update cache key
2019-01-03 13:00:48 -05:00
Peter Fabian
13022fee4f
WIP on orders/stats segmenting.
2019-01-03 18:59:07 +01:00
Albert Juhé Lluveras
f5e2c8c5f9
Fix chart legend checkboxes not reacting to clicks ( https://github.com/woocommerce/woocommerce-admin/pull/1213 )
2019-01-03 13:00:37 +01:00
Renovate Bot
1e74730baf
Update wordpress monorepo
2019-01-03 10:45:22 +00:00
Albert Juhé Lluveras
4419faea45
Add margin to inline search tags ( https://github.com/woocommerce/woocommerce-admin/pull/1227 )
2019-01-03 09:36:31 +01:00
Joshua T Flowers
28c0d292a8
Update dashboard charts on query change ( https://github.com/woocommerce/woocommerce-admin/pull/1209 )
...
* Update dashboard charts on query change
* Remove state derived props
2019-01-03 10:51:45 +08:00
Joshua T Flowers
06ed650954
Add chart loading spinner while data is being requested ( https://github.com/woocommerce/woocommerce-admin/pull/1212 )
2019-01-03 10:51:21 +08:00
Renovate Bot
6d45a38907
Update dependency lerna to v3.8.4
2019-01-03 02:02:12 +00:00
Paul Sealock
b097cd3316
Merge pull request woocommerce/woocommerce-admin#1224 from woocommerce/renovate/webpack-4.x
...
Update dependency webpack to v4.28.3
2019-01-03 14:55:22 +13:00
Paul Sealock
b97eb434d2
Merge pull request woocommerce/woocommerce-admin#1220 from woocommerce/renovate/husky-1.x
...
Update dependency husky to v1.3.1
2019-01-03 14:54:12 +13:00
Renovate Bot
49baee6319
Update dependency webpack to v4.28.3
2019-01-03 01:06:47 +00:00
Renovate Bot
7521b3770d
Update wordpress monorepo
2019-01-03 14:03:56 +13:00
Renovate Bot
f33444601e
Update dependency husky to v1.3.1
2019-01-03 01:02:24 +00:00
Paul Sealock
d2476d650c
Merge pull request woocommerce/woocommerce-admin#1206 from woocommerce/release/0.4.0
...
Release/0.4.0
2019-01-03 13:59:24 +13:00
Paul Sealock
f8df315c27
Merge pull request woocommerce/woocommerce-admin#1222 from woocommerce/renovate/marked-0.x
...
Update dependency marked to v0.6.0
2019-01-03 12:49:44 +13:00
Timmy Crawford
a1887eb4d7
Prepping for 0.4.0
2019-01-03 12:32:00 +13:00
Paul Sealock
812cb17bd5
Merge pull request woocommerce/woocommerce-admin#1215 from woocommerce/fix/date-range-focus-endDate
...
DateRange: change focusInput prop on input focus
2019-01-03 10:48:51 +13:00
Peter Fabian
6bceabe095
Fixed extra parameters after refactoring.
2019-01-02 15:40:47 +01:00
Peter Fabian
52e1ed920f
Added placeholders for new db columns.
2019-01-02 15:29:43 +01:00
Peter Fabian
4cc042ebd8
Added back updates to product lookup update routine after wc-admin-order-functions.php was removed and code moved to individual data stores.
2019-01-02 15:26:33 +01:00
Peter Fabian
1e39bc0756
Merge branch 'master' into fix/1035
...
# Conflicts:
# includes/wc-admin-order-functions.php
2019-01-02 14:08:23 +01:00
Peter Fabian
4eaa5d911f
WIP on segmenting for orders/stats.
2019-01-02 13:35:40 +01:00