Jeff Stieler
08c31151b4
Merge pull request woocommerce/woocommerce-admin#1089 from woocommerce/add/1028-advanced-numerical-value-filter
...
Add Advanced Numerical Value Filter
2018-12-14 18:02:16 -07:00
Albert Juhé Lluveras
e4fb53b8f8
Stock report ( https://github.com/woocommerce/woocommerce-admin/pull/977 )
...
* Create Stock report
* Create Stock report page
* Display product name in Stock table
* Hide 'Parent' column in Stock table
* Add stock to endpoints map
* Remove dateRangeFilter.show from ReportFilters
* Fix stock status link
* Set the default order to 'stock_quanity'
* Add correct name to StockReport
2018-12-14 15:58:08 -08:00
Albert Juhé Lluveras
f9533afdda
Rename 'totalCount' to 'totalResults' ( https://github.com/woocommerce/woocommerce-admin/pull/1093 )
2018-12-14 15:56:52 -08:00
Jeff Stieler
6eadf9c875
NumberFilter: rename “more than” and “less than” to represent a non-positional input range for “between” rules, simplify rule change logic.
2018-12-14 16:53:13 -07:00
Timmy Crawford
88b81beac0
Updating changelogs for npm release. ( https://github.com/woocommerce/woocommerce-admin/pull/1088 )
...
* Updating changelogs for npm release.
* Adding in a few more changelog items.
2018-12-14 10:44:24 -08:00
Jeff Stieler
fea292125d
Fix import path for formatCurrency().
2018-12-14 11:26:11 -07:00
Jeff Stieler
93b05bba94
Square off the corners of TextControlWithAffixes.
2018-12-14 09:59:37 -07:00
Jeff Stieler
2b8526bbfb
Stope NumberFilter inputs from overflowing their container in “between” mode.
2018-12-14 09:59:23 -07:00
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
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
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
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