renovate[bot]
39ed6de5d4
chore(deps): update dependency raw-loader to v1 ( https://github.com/woocommerce/woocommerce-admin/pull/1051 )
2018-12-14 13:30:45 +08:00
renovate[bot]
0c22ec990e
Update dependency html-to-react to v1.3.4 ( https://github.com/woocommerce/woocommerce-admin/pull/1011 )
2018-12-14 13:28:44 +08:00
Andrew Dixon
c343ebb81b
Adding npm test to "helper scripts" section. ( https://github.com/woocommerce/woocommerce-admin/pull/1087 )
2018-12-13 16:47:13 -08:00
Timmy Crawford
dec2bf07b2
Add alert when wc-admin build does not exist. ( https://github.com/woocommerce/woocommerce-admin/pull/1077 )
...
* Add alert when wc-admin build does not exist.
* Updates per feedback.
* Typo and fix for ci ( i hope )
2018-12-13 16:44:58 -08:00
Jeff Stieler
aef873b386
Add examples of NumberFilter to the docs.
2018-12-13 17:30:29 -07:00
Jeff Stieler
89b4ab4d10
Format currency values for NumberFilter legend text.
2018-12-13 17:30:29 -07:00
Jeff Stieler
8e8e6d6d97
Use store’s currency symbol position setting to select prefix/suffix when rendering an advanced number filter input.
2018-12-13 17:30:29 -07:00
Jeff Stieler
de53c50514
Handle NumberFilter value when changing rule type.
2018-12-13 17:30:29 -07:00
Jeff Stieler
38bb06d39b
Render “currency” input type for NumberFilter component.
2018-12-13 17:30:29 -07:00
Jeff Stieler
cb09c195c8
Render a currency-prefixed input for advanced number filters of type “currency”.
2018-12-13 17:30:27 -07:00
Jeff Stieler
e620f8ef92
Generate screen reader text for number filter value .
2018-12-13 17:30:14 -07:00
Jeff Stieler
39a2da70b6
Display advanced number filters inline.
2018-12-13 17:30:01 -07:00
Jeff Stieler
477c83bac2
Use external config for NumberFilter rules. Fixes filter query parsing.
2018-12-13 17:29:59 -07:00
Jeff Stieler
3f2ea6bfb6
Add WIP NumberFilter advanced filter component.
2018-12-13 17:29:39 -07:00
Jeff Stieler
7cf157077a
Merge pull request woocommerce/woocommerce-admin#1081 from woocommerce/add/currency-input-component
...
Add `TextControlWithAffixes` component
2018-12-13 15:58:42 -07:00
Kelly Dwan
846d3b7f43
Add documentation for how to write documentation ( https://github.com/woocommerce/woocommerce-admin/pull/1083 )
...
* Add documentation for how to write documentation
* Update docsify & add prismjs dependency
2018-12-13 16:15:52 -05:00
Kevin Killingsworth
a7aed85244
Add column visibility prefs to all tables ( https://github.com/woocommerce/woocommerce-admin/pull/1082 )
...
* Add column prefs to the other tables
This adds column prefs to the other remaining report tables.
* Table columns: Override defaults with user prefs.
* table columns: Add remaining analytics tables
* user read/update operation: Combine responses
This combines the response handling for the read and update operations.
2018-12-13 14:34:23 -06:00
Kevin Killingsworth
11176f7b0e
wc-api: Add user meta for UI preferences ( https://github.com/woocommerce/woocommerce-admin/pull/1057 )
...
* wc-api: Add user meta for UI preferences
This adds wc-api code to store UI preferences and provides one example
of updating the revenue table to save column preferences.
* wc-api user: fix returns of operations to arrays
Before, a function was returning undefined when the resourceNames didn't
include what we wanted for the user operations. This was causing some
console errors.
* ReportTable: use columnPrefsKey
This uses `columnPrefsKey` for the user preferences key instead of some
erroneously hard-coded values.
* Fix formatting/comments
These are a couple of small formatting and comment fixes.
* Replace woocommerce_meta_ prefix with wc_admin_
This changes the prefix for the meta fields for the `woocommerce_meta`
user meta array to be `wc_admin_` which better hints at the purpose of
these settings.
2018-12-13 13:24:54 -06:00
Albert Juhé Lluveras
d9fe77de24
Add autocompleter for customer name
2018-12-13 18:51:48 +01:00
Kelly Dwan
1adf421137
Change renovate to a once-weekly schedule ( https://github.com/woocommerce/woocommerce-admin/pull/1076 )
2018-12-13 12:20:36 -05:00
Timmy Crawford
19b209fca4
Add util to packages to fix build. ( https://github.com/woocommerce/woocommerce-admin/pull/1079 )
2018-12-13 09:06:26 -08:00
Kelly Dwan
87daca2723
Add IDs to affixes, use these in the input’s describedby
2018-12-13 12:04:57 -05:00
Kelly Dwan
8f5861f8b5
Update the examples
2018-12-13 12:04:28 -05:00
Jeff Stieler
b8ba4ed16d
Fix linting issues with TextControlWithAffixes.
2018-12-13 09:34:46 -07:00
Jeff Stieler
32018506dc
Generate TextControlWithAffixes documentation from the component itself.
2018-12-13 09:21:47 -07:00
Jeff Stieler
700f3ad20f
Make affix background white and remove wrapping behavior from TextControlWithAffixes.
2018-12-13 09:05:03 -07:00
renovate[bot]
2dbbc39071
chore(deps): update dependency node-sass to v4.11.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1043 )
2018-12-13 15:48:59 +08:00
renovate[bot]
2583818a0b
chore(deps): update dependency eslint to v5.10.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1041 )
2018-12-13 15:34:44 +08:00
Jeff Stieler
e3be069601
Hook up TextControlWithAffixes to state for interactivity.
2018-12-12 23:15:39 -07:00
Jeff Stieler
44f025f308
Remove Calypso transform focus hack from TextControlWithAffixes (it’s broken here).
2018-12-12 23:11:27 -07:00
renovate[bot]
711d05c763
chore(deps): update dependency eslint-plugin-jest to v22.1.2 ( https://github.com/woocommerce/woocommerce-admin/pull/986 )
2018-12-13 12:57:14 +08:00
renovate[bot]
25ed79669e
chore(deps): update babel monorepo to v7.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/981 )
2018-12-13 12:55:20 +08:00
renovate[bot]
ea8ac0117b
chore(deps): update dependency lerna to v3.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/945 )
2018-12-13 12:32:01 +08:00
renovate[bot]
1afd824729
Update dependency webpack to v4.27.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1007 )
2018-12-13 12:24:01 +08:00
Joshua T Flowers
ee5b282957
Fix screen reader label IDs ( https://github.com/woocommerce/woocommerce-admin/pull/1071 )
2018-12-13 09:59:16 +08:00
Timmy Crawford
88b899f7cb
Remove trailing slash on base_dir variable. ( https://github.com/woocommerce/woocommerce-admin/pull/1078 )
2018-12-12 13:13:49 -08:00
Jeff Stieler
0f7d8a753a
Add documentation page for TextControlWithAffixes.
...
Just a combination of the TextControl docs from Gutenberg and the FormTextInputWithAffixes doc from Calypso. :)
2018-12-12 13:51:25 -07:00
Jeff Stieler
28a57f2a1d
Rework border radius logic for all affix combinations including wrapping cases.
2018-12-12 13:51:25 -07:00
Jeff Stieler
4bfe767ad7
Add TextControlWithAffixes to devdocs listing.
2018-12-12 13:51:25 -07:00
Jeff Stieler
aab376a731
Rework TextControlWithAffixes to keep BaseControl at the top of the component tree.
2018-12-12 13:51:25 -07:00
Jeff Stieler
704ee79359
Port over Calypso’s FormTextInputWithAffixes component as TextControlWithAffixes.
2018-12-12 13:51:25 -07:00
Peter Fabian
43b60489ff
Merge pull request woocommerce/woocommerce-admin#1060 from woocommerce/fix/remove-force-update-in-tests
...
Removed force update in tests
2018-12-12 19:47:16 +01:00
Albert Juhé Lluveras
c0ee524d6b
Remove unnecessary query parameters
2018-12-12 15:51:24 +01:00
Albert Juhé Lluveras
110c4f0f73
Fix missing AOV value
2018-12-12 15:46:40 +01:00
Albert Juhé Lluveras
9b4e7ad963
Extract extendTableData to a utils file
2018-12-12 15:25:36 +01:00
Albert Juhé Lluveras
c679c8bad7
Extend customers data with data from WC endpoint
2018-12-12 15:22:25 +01:00
Justin Shreve
20e202080a
Add Live Data to Reviews Panel ( https://github.com/woocommerce/woocommerce-admin/pull/1055 )
...
* Add Live Data to Reviews Panel
Adds the ability to embed the product in a product review response
* Clean up code needed to embed some product fields.
* Add API response tests
2018-12-12 08:35:56 -05:00
Albert Juhé Lluveras
40b00ec7b2
Merge pull request woocommerce/woocommerce-admin#1052 from woocommerce/add/table-header-screenreader-label
...
Add screen reader labels to table headers which are not buttons
2018-12-12 11:33:44 +01:00
renovate[bot]
9601cd64dd
Update dependency core-js to v2.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1001 )
2018-12-12 16:00:36 +08:00
renovate[bot]
0249dc758c
Update dependency css-loader to v2 ( https://github.com/woocommerce/woocommerce-admin/pull/1020 )
2018-12-12 15:50:39 +08:00
Kevin Killingsworth
92d79bf605
Update CONTRIBUTING.md with PR instructions ( https://github.com/woocommerce/woocommerce-admin/pull/1066 )
...
When I was trying to commit on a fresh clone, I discovered we have to `composer install` before we can commit. So I updated our documentation to reflect that and gave it a home in some other instructions.
2018-12-11 21:02:08 -06:00
Albert Juhé Lluveras
8ad6ce9f06
Add customers endpoint to wc-api operations ( https://github.com/woocommerce/woocommerce-admin/pull/1061 )
2018-12-12 09:52:50 +08:00
Kevin Killingsworth
62c9a952a1
Table: Add onColumnsChange ( https://github.com/woocommerce/woocommerce-admin/pull/1056 )
...
This adds an `onColumnsChange` property which is called when the column
visiblity is toggled on the table. It also cleans up a bit of the
showCols code and fixes an incorrect update in the component update.
2018-12-11 13:34:16 -06:00
Timmy Crawford
f0b832bf24
Release v0.3.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1065 )
...
* Update versions to 0.3.0
* Release 0.3.0
2018-12-11 11:03:30 -08:00
Paul Sealock
c7546865b9
Merge pull request woocommerce/woocommerce-admin#1058 from woocommerce/update/docs-and-script
...
Update docs and remove reference to internal components
2018-12-12 07:36:25 +13:00
Paul Sealock
fdd60a35ee
Merge pull request woocommerce/woocommerce-admin#1054 from woocommerce/add/customers-advanced-filters
...
Customers: add one advanced filter
2018-12-12 07:33:58 +13:00
Kelly Dwan
3763ec5f16
Add the auto labeler config ( https://github.com/woocommerce/woocommerce-admin/pull/1064 )
2018-12-11 10:40:12 -06:00
Peter Fabian
256a7fd708
Test should run without explicitly calling update for lookups.
...
Same as code in general, tests should also check whether the lookups are updated correctly without explicitly needing to call update on data stores.
2018-12-11 12:41:47 +01:00
Peter Fabian
deba4a354a
PHPCS updates.
2018-12-11 12:41:35 +01:00
Peter Fabian
c612f85c6c
PHPCS updates.
2018-12-11 12:39:44 +01:00
Allen Snook
de105648be
Activity Panel: Inbox: Filter update and error notes out of the inbox ( https://github.com/woocommerce/woocommerce-admin/pull/893 )
...
* Filter update and error notes out of the inbox
* Remove redundant trim().
* Fix test for admin notes API type parameter.
2018-12-11 09:00:57 +08:00
Joshua T Flowers
76f3f8605f
Add z-index to admin menu wrap to fix menu overlapping ( https://github.com/woocommerce/woocommerce-admin/pull/1049 )
2018-12-11 08:59:35 +08:00
Joshua T Flowers
04d3ce6eb1
Add taxes endpoint and data store ( https://github.com/woocommerce/woocommerce-admin/pull/1000 )
...
* Add taxes endpoint and data store
* Add sorting options and normalize orderby param
* Add report taxes unit tests
* Add tax rate to response
* Add country, state, priority, and name to response
* Fix tax codes query param
* Add class comment
* Add missing to record query
* Add comment about ambiguous column
2018-12-11 08:58:05 +08:00
Joshua T Flowers
557cec57cb
Add tax stats endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1019 )
2018-12-11 08:55:05 +08:00
Paul Sealock
30289cd240
Update docs and remove reference to internal components
2018-12-11 11:27:32 +13:00
Paul Sealock
7f00329889
update comments
2018-12-11 11:18:45 +13:00
Paul Sealock
2240d3d713
Customers: add one advanced filter
2018-12-11 09:01:22 +13:00
Albert Juhé Lluveras
d79b490dda
Add Customers Report page ( https://github.com/woocommerce/woocommerce-admin/pull/1018 )
...
* Create Customers Report page
* Hide date range filter if dateRangeFilter.show is false
* Rename dateRangeFilter.show to showDatePicker in filters config
* Add correct key 'average_order_value'
* Fix customers autocompleter not working
2018-12-10 13:26:43 -06:00
Paul Sealock
93a7472e54
REST API: Add stock info to products and variations
2018-12-11 07:19:46 +13:00
Justin Shreve
569947fb0e
Remove lodash noConflict ( https://github.com/woocommerce/woocommerce-admin/pull/1053 )
2018-12-10 11:48:19 -05:00
Albert Juhé Lluveras
bb3e66ef32
Fix wrong default data structure in 'getReportTableData' ( https://github.com/woocommerce/woocommerce-admin/pull/1042 )
...
* Fix wrong default data structure in 'getReportTableData'
* Update tests
* Change default prop for tableData from null to an empty object in ReportTable
2018-12-10 09:51:11 -06:00
Albert Juhé Lluveras
e8e67e8a76
Add screen reader labels to table headers which are not buttons
2018-12-10 16:45:15 +01:00
Jeff Stieler
4cd01a3b3b
Merge pull request woocommerce/woocommerce-admin#1006 from woocommerce/fix/856-typeerror-interval-over-100-days
...
Use `wc-api` for Reports.
2018-12-10 08:26:42 -07:00
Albert Juhé Lluveras
51bc679fd0
Fix customers autocompleter not working
2018-12-10 16:23:34 +01:00
Albert Juhé Lluveras
6208fb9f34
Add correct key 'average_order_value'
2018-12-10 16:23:02 +01:00
Jeff Stieler
a8247e8e7e
Remove defunct todo comment about swagger hub endpoint pagination headers.
2018-12-10 08:19:28 -07:00
Albert Juhé Lluveras
93a18be2f0
Rename dateRangeFilter.show to showDatePicker in filters config
2018-12-10 16:18:17 +01:00
Jeff Stieler
25f63b0404
Merge pull request woocommerce/woocommerce-admin#1040 from woocommerce/fix/979-devdocs-console-errors
...
Fix console errors in DevDocs
2018-12-10 08:15:44 -07:00
Jeff Stieler
7291a880eb
Update filter component examples with real usage from Orders report.
...
Also resolves JS errors that were occurring.
2018-12-07 17:07:15 -07:00
Jeff Stieler
71e210d1f8
Fix missing key warning on TableCard devdocs example.
2018-12-07 16:47:30 -07:00
Jeff Stieler
d0066f0a60
Add support for “variations” Report Items type.
2018-12-07 16:39:44 -07:00
Jeff Stieler
be74e22a01
Remove unnecessary variable and rename Report Items selectors for consistency.
2018-12-07 16:39:44 -07:00
Jeff Stieler
e3362ddcde
Update report utils tests to use wc-api.
2018-12-07 16:39:44 -07:00
Jeff Stieler
7aeb69916a
Fix swagger hub requests from wc-api (url vs. path).
2018-12-07 16:39:43 -07:00
Jeff Stieler
d28eb0bcc9
Consider pre-flight wc-api requests to be “requesting”.
2018-12-07 16:39:43 -07:00
Jeff Stieler
16f24a31ba
Hook up ReportTable to wc-api.
2018-12-07 16:39:42 -07:00
Jeff Stieler
47703fa9b9
Remove debug logging, restore RevenueReportTable component.
2018-12-07 16:39:42 -07:00
Jeff Stieler
98478653e4
Attempt to include report stats type in resource name prefix rather than identifier.
2018-12-07 16:39:42 -07:00
Jeff Stieler
de1da53aaa
Use wc-api for Report Chart data.
2018-12-07 16:39:41 -07:00
Jeff Stieler
c8a76d6dc0
Use fresh-data/wc-api for revenue report table.
2018-12-07 16:39:41 -07:00
Jeff Stieler
0d6cd1a776
Add report stats to the `wc-api` spec.
2018-12-07 16:39:40 -07:00
Jeff Stieler
cfd4462941
Allow nested objects in the `getResourceName()` identifier.
2018-12-07 16:39:40 -07:00
Jeff Stieler
736d927ead
Add fresh-data backed report stats operations and selectors.
2018-12-07 16:39:40 -07:00
Kevin Killingsworth
acfe2d28ae
withSelect: fix for multiple select() calls ( https://github.com/woocommerce/woocommerce-admin/pull/1037 )
...
* withSelect: fix for multiple select() calls
This fixes a problem with a fresh-data store implementation that was
cancelling out previous requirements when mapSelectToProps
select( 'wc-api' ) was called more than once.
* wc-api: Only clear if no requirements selected.
Small update to only clear out a component's requirements if withSelect
returns without any requirements.
2018-12-07 17:04:52 -06:00
Albert Juhé Lluveras
a393ba543b
Fix ReportNumber sometimes receiving NaN values ( https://github.com/woocommerce/woocommerce-admin/pull/1026 )
...
* Fix ReportNumber sometimes receiving NaN values
* Remove unnecessary utils function
* Destructure summaryData
2018-12-07 15:13:02 -06:00
Albert Juhé Lluveras
44e97caeab
Hide date range filter if dateRangeFilter.show is false
2018-12-07 14:19:20 -06:00
Albert Juhé Lluveras
3a9beb238e
Add missing comma to chart tooltip label ( https://github.com/woocommerce/woocommerce-admin/pull/1021 )
2018-12-07 11:47:30 -06:00
Albert Juhé Lluveras
d161732c0a
Create Customers Report page
2018-12-06 16:25:31 -06:00
Timmy Crawford
46c8518fe1
Add/tax report filters/924 ( https://github.com/woocommerce/woocommerce-admin/pull/1017 )
...
* Add comparison filter to tax reports
* Extract tax code function to utils
* Filter tax code strings and add priority
2018-12-06 17:18:46 -05:00
Justin Shreve
8d4b0fcc07
Fix Activity Panel on existing WooCommerce pages ( https://github.com/woocommerce/woocommerce-admin/pull/1004 )
...
* Fix Activity Panel on embedded pages
* Fix comment typo
2018-12-06 17:08:40 -05:00
Timmy Crawford
7f35fe7ed1
Update/php sniffs ( https://github.com/woocommerce/woocommerce-admin/pull/1016 )
...
* Use WooCommerce Sniffs 0.0.5
* Updated phpcs.xml.dist to use the correct PHPCS rules
2018-12-06 09:31:02 -08:00
Kevin Killingsworth
8bb3175172
Table Component: Update showcols to use keys ( https://github.com/woocommerce/woocommerce-admin/pull/971 )
...
* component/table: Update showcols to use keys
This updates the table component to use keys to keep track of which
columns should be visible instead of column indices. This will be
necessary for keeping track of which columns were selected after a
component has been unmounted and re-mounted again later. (e.g. for
persistence or saving of user preferences)
* components/table: Add changelog entry
2018-12-05 16:30:01 -06:00
Albert Juhé Lluveras
96d930b119
Fix Orders table summary display 'order' in singular when it should be plural ( https://github.com/woocommerce/woocommerce-admin/pull/1003 )
2018-12-05 15:54:52 -06:00
Jeff Stieler
c170e289f5
Merge pull request woocommerce/woocommerce-admin#853 from woocommerce/add/711-bump-notes
...
Activity Panel: Inbox: Bump notes for expiring subs at certain days-remaining thresholds
2018-12-05 13:40:04 -07:00
Kevin Killingsworth
a6993f4709
Update @fresh-data/framework to 0.5.1 ( https://github.com/woocommerce/woocommerce-admin/pull/997 )
2018-12-05 10:52:49 -06:00
Robert Elliott
ca28c42ead
separate legend styling out
2018-12-05 12:50:07 +02:00
Robert Elliott
c9ccc015ca
move chart and d3chart components into @woocommerce/components package
2018-12-05 12:50:04 +02:00
Joshua T Flowers
5d3c771d45
Trigger sync_order on order stats table when refunding ( https://github.com/woocommerce/woocommerce-admin/pull/990 )
2018-12-05 10:10:22 +08:00
Joshua T Flowers
755b9c94f7
Reduce order table net revenue by refund total ( https://github.com/woocommerce/woocommerce-admin/pull/988 )
...
* Reduce order table net revenue by refund total
* Use order utils to get refund total
2018-12-05 10:06:00 +08:00
Joshua T Flowers
9e1cb88dfa
Add filters for order tables column headers/rows ( https://github.com/woocommerce/woocommerce-admin/pull/781 )
...
* Add filters for order tables column headers/rows
* Move filters inside rows
* Rename filter constants
* Apply filters directly to rows
* Rename Orders table filter to be more consistent with core
* Filter entire reports table
2018-12-05 09:44:32 +08:00
Albert Juhé Lluveras
e1fd72d06b
Fix 'categories' value in Categories report table summary ( https://github.com/woocommerce/woocommerce-admin/pull/995 )
...
* Add table summary to Revenue report
* Fix 'categories' value in Categories report table summary
2018-12-04 13:29:58 -06:00
Albert Juhé Lluveras
98289b32c9
Add table summary to Revenue report ( https://github.com/woocommerce/woocommerce-admin/pull/994 )
2018-12-04 13:28:18 -06:00
Justin Shreve
cf8d2bd6b0
Ignore PHPUnit updates in renovate ( https://github.com/woocommerce/woocommerce-admin/pull/993 )
2018-12-04 14:05:29 -05:00
Albert Juhé Lluveras
2387908ab6
Move activity-card CSS inside the activity-card directory ( https://github.com/woocommerce/woocommerce-admin/pull/984 )
2018-12-04 10:01:43 -06:00
renovate[bot]
0e92e03027
chore(deps): update dependency webpack to v4.27.0 ( https://github.com/woocommerce/woocommerce-admin/pull/992 )
2018-12-04 10:28:47 -05:00
renovate[bot]
19aad73f03
Update dependency autoprefixer to v9.4.2 ( https://github.com/woocommerce/woocommerce-admin/pull/976 )
2018-12-04 10:05:09 -05:00
Peter Fabian
1c8459244a
Merge branch 'master' into fix/749
...
# Conflicts:
# includes/data-stores/class-wc-admin-reports-products-data-store.php
2018-12-04 12:07:43 +01:00
Peter Fabian
670801cee8
Merge pull request woocommerce/woocommerce-admin#978 from woocommerce/fix/PHP52-compat
...
Fixed PHP 5.2 compatibility
2018-12-04 12:00:37 +01:00
Paul Sealock
bf0e025b05
REST API: isolate extened info in /reports/products
2018-12-04 13:01:36 +13:00
Albert Juhé Lluveras
093b6d9ec0
Use ReportTable in Revenue report ( https://github.com/woocommerce/woocommerce-admin/pull/982 )
...
* Use ReportTable in RevenueTable component
* Convert 'query.per_page' to an integer before using it as a prop
2018-12-03 18:00:13 -06:00
Peter Fabian
15b4681d30
Updated refactored function call from variations data store.
2018-12-03 20:14:05 +01:00
Peter Fabian
ef0f11182a
Added missing function parameter.
2018-12-03 20:07:44 +01:00
Jeff Stieler
d605ecd74e
Order data: fix isGetOrdersRequesting() for the first request.
...
Ensure a boolean return from isGetOrdersRequesting() and handle cases where requests haven’t taken off or responses haven’t been received yet.
2018-12-03 11:55:04 -07:00
Jeff Stieler
5e6ccfdbe4
Merge pull request woocommerce/woocommerce-admin#969 from woocommerce/add/935-hook-up-order-panel
...
Activity Panel: Orders: Hook up to orders data.
2018-12-03 11:28:32 -07:00
Jeff Stieler
a7b30d9779
Orders panel: use fresh-data instead of @wordpress/data.
2018-12-03 11:05:14 -07:00
renovate[bot]
7d427d7cb0
chore(deps): update dependency stylelint to v9.9.0 ( https://github.com/woocommerce/woocommerce-admin/pull/948 )
2018-12-03 12:30:28 -05:00
renovate[bot]
caa705688c
Update dependency webpack to v4.26.1 ( https://github.com/woocommerce/woocommerce-admin/pull/929 )
2018-12-03 12:27:01 -05:00
renovate[bot]
b86356e065
Update dependency eslint-plugin-jest to v22.1.0 ( https://github.com/woocommerce/woocommerce-admin/pull/927 )
2018-12-03 12:04:24 -05:00
Peter Fabian
e297e5ba7f
Fixed TABLE_NAME references.
...
To be compatible with PHP 5.2.
2018-12-03 18:01:50 +01:00
renovate[bot]
0d24d8a9ac
Update dependency ast-types to v0.11.7 ( https://github.com/woocommerce/woocommerce-admin/pull/925 )
2018-12-03 12:00:53 -05:00
renovate[bot]
2e62f23534
Update dependency husky to v1.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/899 )
2018-12-03 11:53:51 -05:00
renovate[bot]
54639586a7
Update dependency marked to v0.5.2 ( https://github.com/woocommerce/woocommerce-admin/pull/894 )
2018-12-03 11:50:12 -05:00
Jeff Stieler
251c943b2a
Orders panel: translate fulfillment button text on order card.
2018-12-03 08:53:30 -07:00
Jeff Stieler
44b77c8e06
Orders panel: link fulfillment button to order edit page.
2018-12-03 08:53:29 -07:00
Jeff Stieler
96eddcd1eb
Orders panel: only show “processing” status orders.
2018-12-03 08:53:29 -07:00
Jeff Stieler
77842d8551
Orders panel: display error if order fetching fails.
2018-12-03 08:53:29 -07:00
Jeff Stieler
84be615778
Add loading placeholder to orders panel.
2018-12-03 08:53:28 -07:00
Jeff Stieler
4f6346e068
Order panel card style - weighted title, collapse icon column.
2018-12-03 08:53:28 -07:00
Jeff Stieler
d18de54c35
Update order panel card title line to match latest design.
2018-12-03 08:53:28 -07:00
Jeff Stieler
a055f1a829
Connect orders panel to data store.
...
Modeled after the reviews panel.
2018-12-03 08:53:27 -07:00
Peter Fabian
1acb9827e7
Merge branch 'master' into fix/749
...
# Conflicts:
# includes/data-stores/class-wc-admin-reports-products-data-store.php
2018-12-03 16:21:04 +01:00
Kelly Dwan
0045f2b7a4
Bump @woocommerce/components to version 1.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/967 )
...
* Version bump & changelog update
* Roll version back so that lerna updates it
* chore(release): publish
- @woocommerce/components@1.2.0
* Update packages documentation after trying to follow it
2018-12-03 10:09:16 -05:00
Peter Fabian
b8dff97e00
Fixed PHP 5.2 compatibility.
2018-12-03 14:44:43 +01:00
Peter Fabian
6e68247701
Merge pull request woocommerce/woocommerce-admin#953 from woocommerce/fix/740
...
Added support for ordering by product name in products endpoint.
2018-12-03 11:56:28 +01:00
Albert Juhé Lluveras
bda7d0a6ee
Use ReportTable in Orders report ( https://github.com/woocommerce/woocommerce-admin/pull/968 )
...
* Use ReportTable in Orders report
* Get totalCount from hte X-WP-Total header
* Order props alphabetically
* Cleanup report table 'tableData' prop
* Use short-circuit evaluation
2018-12-02 21:40:57 -06:00
Paul Sealock
da4dea57be
Variations: Add endopoint repsonse to table data
2018-12-03 12:16:43 +13:00
Paul Sealock
516062975b
try/variations-endpoint
2018-12-03 12:02:58 +13:00
Paul Sealock
164a67144b
try/variations-endpoint
2018-12-03 11:49:37 +13:00
Albert Juhé Lluveras
293d58615d
Add screen reader labels to table headers ( https://github.com/woocommerce/woocommerce-admin/pull/964 )
...
* Add screen reader labels to tables
* Add missing propType
2018-11-30 14:44:02 -06:00
Kelly Dwan
6e3242c421
Packages – Components: Move proptype-validator utility into src ( https://github.com/woocommerce/woocommerce-admin/pull/962 )
...
* Move proptype-validator utility into src
Only src files are transpiled for external use, so requiring this file was breaking my jest tests
* Bump the package version + changelog
2018-11-30 13:19:17 -05:00
Albert Juhé Lluveras
9b0c767749
Make sure D3Base always updates when width changes ( https://github.com/woocommerce/woocommerce-admin/pull/961 )
...
* Make sure D3Base always updates when props change
* Fix JS error when resizing the window
* d3Chart cleanup
* Update tests
* Update d3Base also when drawChart prop changes
* Save height and width without margins in params
* Remove resize listeners inside d3Base
* Remove unused param
2018-11-29 19:01:00 -06:00
Albert Juhé Lluveras
109592ebc9
Don't encode search text in autocompleters before stringifying it ( https://github.com/woocommerce/woocommerce-admin/pull/959 )
2018-11-29 19:00:51 -06:00
David Levin
3d4ca67f89
Merge pull request woocommerce/woocommerce-admin#958 from woocommerce/update/summary-number-focus
...
Update/summary number focus
2018-11-29 13:55:45 -08:00
David Levin
f2f8ebebe1
Update styles to remove hheight calc and negative margin h4x
2018-11-29 13:49:45 -08:00
Kelly Dwan
062b3fd529
Packages: Add changelogs and documentation ( https://github.com/woocommerce/woocommerce-admin/pull/949 )
...
* Add changelogs for latest package releases
* Add lerna instructions
* Add placeholder changelogs for other packages
* Add “working with existing packages"
2018-11-29 16:34:01 -05:00
Kevin Killingsworth
847131c6c9
Add wc-api and "Fresh Data" ( https://github.com/woocommerce/woocommerce-admin/pull/833 )
...
* data: Add @fresh-data/framework to package.json
* data: Add fresh-data and replace orders in table
This PR adds fresh-data with a WooCommerce API spec to fulfill order
information. It then replaces the existing selectors for the orders
table with the new selectors as a proof-of-concept.
* wc-api: Add temporary code for `withSelect`
This adds temporary code for a `withSelect` function outside of
`@wordpress/data` until the context PR is merged:
https://github.com/WordPress/gutenberg/pull/11460
* wc-api: Update fresh-data to 0.5.0
2018-11-29 09:57:49 -06:00
Albert Juhé Lluveras
540a191b57
Use X-WP-Total header to set the total number of items in tables ( https://github.com/woocommerce/woocommerce-admin/pull/952 )
...
* Use X-WP-Total header to set the total number of items in tables
* Improve naming
* Improve tests
* Make getReportItems() return a 'data' property by default
* Make getSummary prop behavior more clear
2018-11-29 08:03:04 -06:00
Allen Snook
b27aa9b0aa
Merge pull request woocommerce/woocommerce-admin#946 from woocommerce/update/0.2.0
...
Roll version to 0.2.0
2018-11-28 18:53:18 -08:00
Paul Sealock
2a4b9bada9
Merge pull request woocommerce/woocommerce-admin#951 from woocommerce/fix/order-statuses-prefix
...
Remove order statuses "wc-" prefix
2018-11-29 15:01:06 +13:00
Albert Juhé Lluveras
d59e5803d3
Hide selected items from autocomplete dropdown ( https://github.com/woocommerce/woocommerce-admin/pull/932 )
2018-11-28 16:55:11 -06:00
David Levin
4bfea20e56
Ensure all edges of focus use core-grey-dark-300
2018-11-28 13:31:49 -08:00
David Levin
f938afe946
Update Summary Focus Styles
2018-11-28 13:14:15 -08:00
Paul Sealock
47291b3873
Filters: code -> coupon in config
2018-11-29 09:29:12 +13:00
Paul Sealock
41efde0b23
Merge branch 'fix/749' of github.com:woocommerce/wc-admin into fix/749
2018-11-29 09:05:52 +13:00
Albert Juhé Lluveras
c65709f2db
Fix false positives in Reports stats resolvers ( https://github.com/woocommerce/woocommerce-admin/pull/955 )
2018-11-28 13:08:53 -06:00
Peter Fabian
8b80de9bc2
Added support for ordering by product name in products endpoint.
2018-11-28 15:14:34 +01:00
Peter Fabian
99e2c463c7
Added parameter mapping for products/stats endpoint.
2018-11-28 11:04:18 +01:00
Peter Fabian
e6cca3c083
Replaced code_includes/_excludes with coupon_* as agreed.
2018-11-28 10:53:11 +01:00
Paul Sealock
0ab5c735be
Remove order statuses wc- prefix
2018-11-28 15:58:17 +13:00
Allen Snook
c9857b9c88
Call wp_set_script_translations when possible
2018-11-28 10:36:08 +13:00
Allen Snook
d223eb25fd
Roll to 0.2.0
2018-11-27 13:12:16 -08:00
Kelly Dwan
4b8969acc7
chore(release): publish
...
- @woocommerce/components@1.1.0
- @woocommerce/date@1.0.2
- @woocommerce/navigation@1.1.0
2018-11-27 15:57:27 -05:00
Peter Fabian
eff3a97573
Added time clause to WHERE subquery and fixed product selection.
2018-11-27 21:41:52 +01:00
Peter Fabian
bc29615454
Removed unnecessary SQL conditions.
2018-11-27 21:40:13 +01:00
Peter Fabian
a765a6df97
Added tests for advanced filters of orders report.
2018-11-27 21:39:14 +01:00
Jonathan Belcher
e2faa2fee2
Tag component snapshots ( https://github.com/woocommerce/woocommerce-admin/pull/877 )
...
* Tag component snapshots
* Make snapshots better
* Update snapshots
2018-11-27 13:57:52 -05:00
Kelly Dwan
8828345f86
Remove import from local files ( https://github.com/woocommerce/woocommerce-admin/pull/939 )
...
These are exported packages, they can’t rely on any local files.
2018-11-27 10:46:22 -08:00
Albert Juhé Lluveras
5fe5dbe5cd
Categories table ( https://github.com/woocommerce/woocommerce-admin/pull/903 )
...
* Merge table stores
* Add Categories table
* Add numberFormat to non-currency numbers displayed to the user in the Categories Table
* Rename 'Coupons' to 'Categories' in Categories table title
* Update Categories table to use the ReportTable
2018-11-27 10:44:03 -08:00
Allen Snook
dbb386c6e5
Merge pull request woocommerce/woocommerce-admin#938 from woocommerce/fix/937-js-translations
...
Call wp_set_script_translations when possible
2018-11-27 09:50:51 -08:00
Peter Fabian
688b47aa7c
Added tests for advanced filters of orders report.
2018-11-27 17:04:16 +01:00
Peter Fabian
f9a46423e0
Added get_order_statuses to REST controllers where it's required.
2018-11-27 16:39:11 +01:00
Peter Fabian
c1af1da752
Updated structure of SQL queries for coupons and products.
...
As there can be multiple couopns and products assigned to one order, it requires different handling to what was initially implemented.
2018-11-27 16:34:12 +01:00
Peter Fabian
8e5709ce26
Updated get_unique_products to be more versatile and support running in other contexts.
...
In some cases of advanced filters, it produced incorrect SQL code.
Additionally, split of where clause to time clause and rest needed to be reflected here, too.
2018-11-27 16:32:42 +01:00
Peter Fabian
32e30ac274
Made sync of order stats table run also on clean_post_cache.
...
Otherwise, some changes in master data for orders would not be reflected, as save_post action is skipped if order is updated while the save_post action is running.
2018-11-27 16:29:21 +01:00
Peter Fabian
216b7c94ca
Updated structure for includes/excludes coupons and products subqueries.
...
As there can be multiple coupons and products assigned to one order, it needs to ba handled differently when constructing SQL query.
2018-11-27 16:26:50 +01:00
Peter Fabian
7dd611f4d4
Added table name to time period sql params.
...
Without this, the subquery could not be used in some contexts, as the column name was ambiguous.
2018-11-27 16:23:40 +01:00
Peter Fabian
8dbcbfc6cb
Store coupon id, not coupon item id in the stat table.
2018-11-27 16:18:42 +01:00
Peter Fabian
942db641e8
Added extra trigger for updating stats tables.
...
If order is updated while save_post action is in progress, then the update does not trigger stats table update, thus stats table gets out of sync with master data.
2018-11-27 16:17:30 +01:00
Robert Elliott
0a134d2d53
Merge pull request woocommerce/woocommerce-admin#910 from woocommerce/fix/chart-empty-data
...
Bug: noticed a new NaN error caused by attempt to draw chart with empty data
2018-11-27 11:39:40 +02:00
Allen Snook
a7667c2aff
Call wp_set_script_translations when possible
2018-11-26 16:18:36 -08:00
Jonathan Belcher
eddf8bc609
Remove duplicate config
...
https://github.com/woocommerce/wc-admin/pull/618#issuecomment-441742419
2018-11-26 15:54:50 -05:00
Jonathan Belcher
a308fcc830
Adds snapshots for the Split Button component ( https://github.com/woocommerce/woocommerce-admin/pull/891 )
...
* Adds snapshots for the Split Button component
* Update snapshots
* Remove duplicate test
2018-11-26 13:44:05 -05:00
Albert Juhé Lluveras
0cbe3034d8
Merge report tables ( https://github.com/woocommerce/woocommerce-admin/pull/928 )
...
* Merge report tables
* Remove unnecessary semicolon
* Improve sorting of variables
* Rename props to tableProps in ReportTable
2018-11-26 08:01:20 -06:00
Robert Elliott
2ac101f1c2
fix check on this.props.data
2018-11-26 12:04:37 +02:00
Albert Juhé Lluveras
b84fce8580
Add Summary to Products table ( https://github.com/woocommerce/woocommerce-admin/pull/904 )
...
* Add Summary to Products table
* Use numberFormat() in tables summary
2018-11-25 21:41:56 -06:00
Albert Juhé Lluveras
0acc43a551
Use numberFormat() to format all non-currency numbers in tables ( https://github.com/woocommerce/woocommerce-admin/pull/913 )
2018-11-25 21:31:38 -06:00
Peter Fabian
a86560498e
Added primary key to coupon lookup.
...
Otherwise REPLACE query adds a multiple identical rows.
2018-11-23 22:29:47 +01:00
Albert Juhé Lluveras
e4f05f31cb
Make ChartPlaceholder have the same height than the resulting Chart ( https://github.com/woocommerce/woocommerce-admin/pull/908 )
...
* Make ChartPlaceholder have the same height than the resulting Chart
* Update Chart docs
2018-11-23 07:54:53 -06:00
Robert Elliott
427d0ac7dd
combine isRequesting and check that there is data
2018-11-23 10:31:50 +02:00
Albert Juhé Lluveras
2057741853
Merge table stores ( https://github.com/woocommerce/woocommerce-admin/pull/896 )
2018-11-22 17:12:12 -06:00