Claudio Sanches
80f1b2f256
[REST API] Stock endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/974 )
...
* New reports stock endpoint
* Register new endpoint
* Unit tests
* Included "name" into stock results
* Fixed sku type
* Improve stock _links returning properly links for variations and parent products
* Fixed docblock
* Sort stock by stock_quantity by default
* Fixed orderby
* Ignore sticky posts
* Fixed variable names
2018-12-14 07:43:39 -08:00
Albert Juhé Lluveras
4656f459a7
Remove old comment
2018-12-14 16:35:32 +01:00
Justin Shreve
43055d25a5
Add a country filter to the customers report ( https://github.com/woocommerce/woocommerce-admin/pull/1080 )
...
* Add an advanced country filter to the customers report
* Handle PR feedback: Fix PropType warnings, move filter/label logic to config getLabels() function, fix typo.
* Add flag thumbnail to the country filter
* Update README and CHANGELOG
2018-12-14 10:13:34 -05:00
Albert Juhé Lluveras
578e01b12f
Hide selected items in filters from table search box autocompleter
2018-12-14 14:31:57 +01:00
Albert Juhé Lluveras
bb16ba07c8
Use search box for searches instead of comparisons in Customers table
2018-12-14 14:31:41 +01:00
Albert Juhé Lluveras
ce080f4fe0
Use WC regular endpoint instead of reports endpoint to load customers autocompleter suggestions
2018-12-14 11:27:59 +01:00
renovate[bot]
5e1437b8ea
Pin dependency docsify-cli to 4.3.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1086 )
2018-12-14 13:34:47 +08:00
renovate[bot]
39ed6de5d4
chore(deps): update dependency raw-loader to v1 ( https://github.com/woocommerce/woocommerce-admin/pull/1051 )
2018-12-14 13:30:45 +08:00
renovate[bot]
0c22ec990e
Update dependency html-to-react to v1.3.4 ( https://github.com/woocommerce/woocommerce-admin/pull/1011 )
2018-12-14 13:28:44 +08:00
Andrew Dixon
c343ebb81b
Adding npm test to "helper scripts" section. ( https://github.com/woocommerce/woocommerce-admin/pull/1087 )
2018-12-13 16:47:13 -08:00
Timmy Crawford
dec2bf07b2
Add alert when wc-admin build does not exist. ( https://github.com/woocommerce/woocommerce-admin/pull/1077 )
...
* Add alert when wc-admin build does not exist.
* Updates per feedback.
* Typo and fix for ci ( i hope )
2018-12-13 16:44:58 -08:00
Jeff Stieler
aef873b386
Add examples of NumberFilter to the docs.
2018-12-13 17:30:29 -07:00
Jeff Stieler
89b4ab4d10
Format currency values for NumberFilter legend text.
2018-12-13 17:30:29 -07:00
Jeff Stieler
8e8e6d6d97
Use store’s currency symbol position setting to select prefix/suffix when rendering an advanced number filter input.
2018-12-13 17:30:29 -07:00
Jeff Stieler
de53c50514
Handle NumberFilter value when changing rule type.
2018-12-13 17:30:29 -07:00
Jeff Stieler
38bb06d39b
Render “currency” input type for NumberFilter component.
2018-12-13 17:30:29 -07:00
Jeff Stieler
cb09c195c8
Render a currency-prefixed input for advanced number filters of type “currency”.
2018-12-13 17:30:27 -07:00
Jeff Stieler
e620f8ef92
Generate screen reader text for number filter value .
2018-12-13 17:30:14 -07:00
Jeff Stieler
39a2da70b6
Display advanced number filters inline.
2018-12-13 17:30:01 -07:00
Jeff Stieler
477c83bac2
Use external config for NumberFilter rules. Fixes filter query parsing.
2018-12-13 17:29:59 -07:00
Jeff Stieler
3f2ea6bfb6
Add WIP NumberFilter advanced filter component.
2018-12-13 17:29:39 -07:00
Jeff Stieler
7cf157077a
Merge pull request woocommerce/woocommerce-admin#1081 from woocommerce/add/currency-input-component
...
Add `TextControlWithAffixes` component
2018-12-13 15:58:42 -07:00
Kelly Dwan
846d3b7f43
Add documentation for how to write documentation ( https://github.com/woocommerce/woocommerce-admin/pull/1083 )
...
* Add documentation for how to write documentation
* Update docsify & add prismjs dependency
2018-12-13 16:15:52 -05:00
Kevin Killingsworth
a7aed85244
Add column visibility prefs to all tables ( https://github.com/woocommerce/woocommerce-admin/pull/1082 )
...
* Add column prefs to the other tables
This adds column prefs to the other remaining report tables.
* Table columns: Override defaults with user prefs.
* table columns: Add remaining analytics tables
* user read/update operation: Combine responses
This combines the response handling for the read and update operations.
2018-12-13 14:34:23 -06:00
Kevin Killingsworth
11176f7b0e
wc-api: Add user meta for UI preferences ( https://github.com/woocommerce/woocommerce-admin/pull/1057 )
...
* wc-api: Add user meta for UI preferences
This adds wc-api code to store UI preferences and provides one example
of updating the revenue table to save column preferences.
* wc-api user: fix returns of operations to arrays
Before, a function was returning undefined when the resourceNames didn't
include what we wanted for the user operations. This was causing some
console errors.
* ReportTable: use columnPrefsKey
This uses `columnPrefsKey` for the user preferences key instead of some
erroneously hard-coded values.
* Fix formatting/comments
These are a couple of small formatting and comment fixes.
* Replace woocommerce_meta_ prefix with wc_admin_
This changes the prefix for the meta fields for the `woocommerce_meta`
user meta array to be `wc_admin_` which better hints at the purpose of
these settings.
2018-12-13 13:24:54 -06:00
Albert Juhé Lluveras
d9fe77de24
Add autocompleter for customer name
2018-12-13 18:51:48 +01:00
Kelly Dwan
1adf421137
Change renovate to a once-weekly schedule ( https://github.com/woocommerce/woocommerce-admin/pull/1076 )
2018-12-13 12:20:36 -05:00
Timmy Crawford
19b209fca4
Add util to packages to fix build. ( https://github.com/woocommerce/woocommerce-admin/pull/1079 )
2018-12-13 09:06:26 -08:00
Kelly Dwan
87daca2723
Add IDs to affixes, use these in the input’s describedby
2018-12-13 12:04:57 -05:00
Kelly Dwan
8f5861f8b5
Update the examples
2018-12-13 12:04:28 -05:00
Jeff Stieler
b8ba4ed16d
Fix linting issues with TextControlWithAffixes.
2018-12-13 09:34:46 -07:00
Jeff Stieler
32018506dc
Generate TextControlWithAffixes documentation from the component itself.
2018-12-13 09:21:47 -07:00
Jeff Stieler
700f3ad20f
Make affix background white and remove wrapping behavior from TextControlWithAffixes.
2018-12-13 09:05:03 -07:00
renovate[bot]
2dbbc39071
chore(deps): update dependency node-sass to v4.11.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1043 )
2018-12-13 15:48:59 +08:00
renovate[bot]
2583818a0b
chore(deps): update dependency eslint to v5.10.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1041 )
2018-12-13 15:34:44 +08:00
Jeff Stieler
e3be069601
Hook up TextControlWithAffixes to state for interactivity.
2018-12-12 23:15:39 -07:00
Jeff Stieler
44f025f308
Remove Calypso transform focus hack from TextControlWithAffixes (it’s broken here).
2018-12-12 23:11:27 -07:00
renovate[bot]
711d05c763
chore(deps): update dependency eslint-plugin-jest to v22.1.2 ( https://github.com/woocommerce/woocommerce-admin/pull/986 )
2018-12-13 12:57:14 +08:00
renovate[bot]
25ed79669e
chore(deps): update babel monorepo to v7.2.0 ( https://github.com/woocommerce/woocommerce-admin/pull/981 )
2018-12-13 12:55:20 +08:00
renovate[bot]
ea8ac0117b
chore(deps): update dependency lerna to v3.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/945 )
2018-12-13 12:32:01 +08:00
renovate[bot]
1afd824729
Update dependency webpack to v4.27.1 ( https://github.com/woocommerce/woocommerce-admin/pull/1007 )
2018-12-13 12:24:01 +08:00
Joshua T Flowers
ee5b282957
Fix screen reader label IDs ( https://github.com/woocommerce/woocommerce-admin/pull/1071 )
2018-12-13 09:59:16 +08:00
Timmy Crawford
88b899f7cb
Remove trailing slash on base_dir variable. ( https://github.com/woocommerce/woocommerce-admin/pull/1078 )
2018-12-12 13:13:49 -08:00
Jeff Stieler
0f7d8a753a
Add documentation page for TextControlWithAffixes.
...
Just a combination of the TextControl docs from Gutenberg and the FormTextInputWithAffixes doc from Calypso. :)
2018-12-12 13:51:25 -07:00
Jeff Stieler
28a57f2a1d
Rework border radius logic for all affix combinations including wrapping cases.
2018-12-12 13:51:25 -07:00
Jeff Stieler
4bfe767ad7
Add TextControlWithAffixes to devdocs listing.
2018-12-12 13:51:25 -07:00
Jeff Stieler
aab376a731
Rework TextControlWithAffixes to keep BaseControl at the top of the component tree.
2018-12-12 13:51:25 -07:00
Jeff Stieler
704ee79359
Port over Calypso’s FormTextInputWithAffixes component as TextControlWithAffixes.
2018-12-12 13:51:25 -07:00
Peter Fabian
43b60489ff
Merge pull request woocommerce/woocommerce-admin#1060 from woocommerce/fix/remove-force-update-in-tests
...
Removed force update in tests
2018-12-12 19:47:16 +01:00
Albert Juhé Lluveras
c0ee524d6b
Remove unnecessary query parameters
2018-12-12 15:51:24 +01:00
Albert Juhé Lluveras
110c4f0f73
Fix missing AOV value
2018-12-12 15:46:40 +01:00
Albert Juhé Lluveras
9b4e7ad963
Extract extendTableData to a utils file
2018-12-12 15:25:36 +01:00
Albert Juhé Lluveras
c679c8bad7
Extend customers data with data from WC endpoint
2018-12-12 15:22:25 +01:00
Justin Shreve
20e202080a
Add Live Data to Reviews Panel ( https://github.com/woocommerce/woocommerce-admin/pull/1055 )
...
* Add Live Data to Reviews Panel
Adds the ability to embed the product in a product review response
* Clean up code needed to embed some product fields.
* Add API response tests
2018-12-12 08:35:56 -05:00
Albert Juhé Lluveras
40b00ec7b2
Merge pull request woocommerce/woocommerce-admin#1052 from woocommerce/add/table-header-screenreader-label
...
Add screen reader labels to table headers which are not buttons
2018-12-12 11:33:44 +01:00
renovate[bot]
9601cd64dd
Update dependency core-js to v2.6.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1001 )
2018-12-12 16:00:36 +08:00
renovate[bot]
0249dc758c
Update dependency css-loader to v2 ( https://github.com/woocommerce/woocommerce-admin/pull/1020 )
2018-12-12 15:50:39 +08:00
Kevin Killingsworth
92d79bf605
Update CONTRIBUTING.md with PR instructions ( https://github.com/woocommerce/woocommerce-admin/pull/1066 )
...
When I was trying to commit on a fresh clone, I discovered we have to `composer install` before we can commit. So I updated our documentation to reflect that and gave it a home in some other instructions.
2018-12-11 21:02:08 -06:00
Albert Juhé Lluveras
8ad6ce9f06
Add customers endpoint to wc-api operations ( https://github.com/woocommerce/woocommerce-admin/pull/1061 )
2018-12-12 09:52:50 +08:00
Kevin Killingsworth
62c9a952a1
Table: Add onColumnsChange ( https://github.com/woocommerce/woocommerce-admin/pull/1056 )
...
This adds an `onColumnsChange` property which is called when the column
visiblity is toggled on the table. It also cleans up a bit of the
showCols code and fixes an incorrect update in the component update.
2018-12-11 13:34:16 -06:00
Timmy Crawford
f0b832bf24
Release v0.3.0 ( https://github.com/woocommerce/woocommerce-admin/pull/1065 )
...
* Update versions to 0.3.0
* Release 0.3.0
2018-12-11 11:03:30 -08:00
Paul Sealock
c7546865b9
Merge pull request woocommerce/woocommerce-admin#1058 from woocommerce/update/docs-and-script
...
Update docs and remove reference to internal components
2018-12-12 07:36:25 +13:00
Paul Sealock
fdd60a35ee
Merge pull request woocommerce/woocommerce-admin#1054 from woocommerce/add/customers-advanced-filters
...
Customers: add one advanced filter
2018-12-12 07:33:58 +13:00
Kelly Dwan
3763ec5f16
Add the auto labeler config ( https://github.com/woocommerce/woocommerce-admin/pull/1064 )
2018-12-11 10:40:12 -06:00
Peter Fabian
256a7fd708
Test should run without explicitly calling update for lookups.
...
Same as code in general, tests should also check whether the lookups are updated correctly without explicitly needing to call update on data stores.
2018-12-11 12:41:47 +01:00
Peter Fabian
deba4a354a
PHPCS updates.
2018-12-11 12:41:35 +01:00
Peter Fabian
c612f85c6c
PHPCS updates.
2018-12-11 12:39:44 +01:00
Allen Snook
de105648be
Activity Panel: Inbox: Filter update and error notes out of the inbox ( https://github.com/woocommerce/woocommerce-admin/pull/893 )
...
* Filter update and error notes out of the inbox
* Remove redundant trim().
* Fix test for admin notes API type parameter.
2018-12-11 09:00:57 +08:00
Joshua T Flowers
76f3f8605f
Add z-index to admin menu wrap to fix menu overlapping ( https://github.com/woocommerce/woocommerce-admin/pull/1049 )
2018-12-11 08:59:35 +08:00
Joshua T Flowers
04d3ce6eb1
Add taxes endpoint and data store ( https://github.com/woocommerce/woocommerce-admin/pull/1000 )
...
* Add taxes endpoint and data store
* Add sorting options and normalize orderby param
* Add report taxes unit tests
* Add tax rate to response
* Add country, state, priority, and name to response
* Fix tax codes query param
* Add class comment
* Add missing to record query
* Add comment about ambiguous column
2018-12-11 08:58:05 +08:00
Joshua T Flowers
557cec57cb
Add tax stats endpoint ( https://github.com/woocommerce/woocommerce-admin/pull/1019 )
2018-12-11 08:55:05 +08:00
Paul Sealock
30289cd240
Update docs and remove reference to internal components
2018-12-11 11:27:32 +13:00
Paul Sealock
7f00329889
update comments
2018-12-11 11:18:45 +13:00
Paul Sealock
2240d3d713
Customers: add one advanced filter
2018-12-11 09:01:22 +13:00
Albert Juhé Lluveras
d79b490dda
Add Customers Report page ( https://github.com/woocommerce/woocommerce-admin/pull/1018 )
...
* Create Customers Report page
* Hide date range filter if dateRangeFilter.show is false
* Rename dateRangeFilter.show to showDatePicker in filters config
* Add correct key 'average_order_value'
* Fix customers autocompleter not working
2018-12-10 13:26:43 -06:00
Paul Sealock
93a7472e54
REST API: Add stock info to products and variations
2018-12-11 07:19:46 +13:00
Justin Shreve
569947fb0e
Remove lodash noConflict ( https://github.com/woocommerce/woocommerce-admin/pull/1053 )
2018-12-10 11:48:19 -05:00
Albert Juhé Lluveras
bb3e66ef32
Fix wrong default data structure in 'getReportTableData' ( https://github.com/woocommerce/woocommerce-admin/pull/1042 )
...
* Fix wrong default data structure in 'getReportTableData'
* Update tests
* Change default prop for tableData from null to an empty object in ReportTable
2018-12-10 09:51:11 -06:00
Albert Juhé Lluveras
e8e67e8a76
Add screen reader labels to table headers which are not buttons
2018-12-10 16:45:15 +01:00
Jeff Stieler
4cd01a3b3b
Merge pull request woocommerce/woocommerce-admin#1006 from woocommerce/fix/856-typeerror-interval-over-100-days
...
Use `wc-api` for Reports.
2018-12-10 08:26:42 -07:00
Albert Juhé Lluveras
51bc679fd0
Fix customers autocompleter not working
2018-12-10 16:23:34 +01:00
Albert Juhé Lluveras
6208fb9f34
Add correct key 'average_order_value'
2018-12-10 16:23:02 +01:00
Jeff Stieler
a8247e8e7e
Remove defunct todo comment about swagger hub endpoint pagination headers.
2018-12-10 08:19:28 -07:00
Albert Juhé Lluveras
93a18be2f0
Rename dateRangeFilter.show to showDatePicker in filters config
2018-12-10 16:18:17 +01:00
Jeff Stieler
25f63b0404
Merge pull request woocommerce/woocommerce-admin#1040 from woocommerce/fix/979-devdocs-console-errors
...
Fix console errors in DevDocs
2018-12-10 08:15:44 -07:00
Jeff Stieler
7291a880eb
Update filter component examples with real usage from Orders report.
...
Also resolves JS errors that were occurring.
2018-12-07 17:07:15 -07:00
Jeff Stieler
71e210d1f8
Fix missing key warning on TableCard devdocs example.
2018-12-07 16:47:30 -07:00
Jeff Stieler
d0066f0a60
Add support for “variations” Report Items type.
2018-12-07 16:39:44 -07:00
Jeff Stieler
be74e22a01
Remove unnecessary variable and rename Report Items selectors for consistency.
2018-12-07 16:39:44 -07:00
Jeff Stieler
e3362ddcde
Update report utils tests to use wc-api.
2018-12-07 16:39:44 -07:00
Jeff Stieler
7aeb69916a
Fix swagger hub requests from wc-api (url vs. path).
2018-12-07 16:39:43 -07:00
Jeff Stieler
d28eb0bcc9
Consider pre-flight wc-api requests to be “requesting”.
2018-12-07 16:39:43 -07:00
Jeff Stieler
16f24a31ba
Hook up ReportTable to wc-api.
2018-12-07 16:39:42 -07:00
Jeff Stieler
47703fa9b9
Remove debug logging, restore RevenueReportTable component.
2018-12-07 16:39:42 -07:00
Jeff Stieler
98478653e4
Attempt to include report stats type in resource name prefix rather than identifier.
2018-12-07 16:39:42 -07:00
Jeff Stieler
de1da53aaa
Use wc-api for Report Chart data.
2018-12-07 16:39:41 -07:00
Jeff Stieler
c8a76d6dc0
Use fresh-data/wc-api for revenue report table.
2018-12-07 16:39:41 -07:00
Jeff Stieler
0d6cd1a776
Add report stats to the `wc-api` spec.
2018-12-07 16:39:40 -07:00
Jeff Stieler
cfd4462941
Allow nested objects in the `getResourceName()` identifier.
2018-12-07 16:39:40 -07:00
Jeff Stieler
736d927ead
Add fresh-data backed report stats operations and selectors.
2018-12-07 16:39:40 -07:00