Darren Ethier
380019f489
Rename modelName to resourceName everywhere ( https://github.com/woocommerce/woocommerce-blocks/pull/1173 )
...
* rename modelName to resourceName
* fix inline doc alignment
2019-11-14 11:10:50 -05:00
Mike Jolley
c038a7fed4
Filter all products block by attribute ( https://github.com/woocommerce/woocommerce-blocks/pull/1127 )
...
* Block setup
* Working filtering and intersection of arrays
* Implement block settings and no attribute placeholder
* Correctly toggle counts
* Implement filtering
* Fix price slider constraints
* Fix price slider constraints
* Edit mode
* Rename ProductAttributeControl to ProductAttributeTermControl
* Attribute ID saving
* fix incorrect test fixtures
* fix incorrect regex for parsing model (or resource names) from the route.
* Fix query classes for some endpoints
* Style improvements
* Update inline comments
* use previous tests
* Show attribute control in sidebar
* Remove displayStyle option
* Sort attributes by name
* Show more/less toggle
* Use renderFrontend
* Only sort when adding values
* Rename memo placeholder
* More specific CSS for pointer
* Update assets/js/base/hooks/use-query-state.js
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
* Remove always true taxonomy check
* Update assets/js/blocks/attribute-filter/block.js
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
* Remove lodash join
* native js for string casting
* Move internal deps
* hyphenate attributes
* Correct data set names
* Remove unwanted dependency
* Moving imports
* Missing deps
* replace yoda conditonal
* Missing deps
* Missing deps
* Check value exists
* Remove undefined filter
* renderedOptions usememo
* Set defaults in checkbox list
* Show more/less refactor
* Use getAdminLink
* Fix object length check
* Correct AND query handling for counts
* useQueryStateByContext
* Add store rest endpoints
* Update assets/js/base/components/checkbox-list/index.js
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
* Update assets/js/base/components/checkbox-list/index.js
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
* Update assets/js/base/components/checkbox-list/index.js
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
* Update assets/js/blocks/attribute-filter/block.js
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
* Feedback
* feedback
* API readme
* Fix API relation queries for multiple attributes
* Prevent all options flashing visible during loads
* null check
* Improve loading state
* Remove null options change - it's no longer needed
2019-11-11 10:32:56 +00:00
Darren Ethier
c85078366d
Fix bugs in useCollection hook ( https://github.com/woocommerce/woocommerce-blocks/pull/1103 )
...
* export new hooks
* fix bug with isLoading result on useCollection
2019-10-30 09:57:39 +00:00
Darren Ethier
7e3f5e8ab9
Add useCollection and useCollectionHeader hooks ( closes : woocommerce/woocommerce-blocks#1096 ) ( https://github.com/woocommerce/woocommerce-blocks/pull/1099 )
...
* add use-collection hook and tests
* Add use-collection-header hook
* update use-store-products hook to implement useCollection and useCollection header under the hood
2019-10-29 08:01:13 -04:00