Albert Juhé Lluveras
aaa37637c2
Replace 'isPreview' with 'isEditor' when it refers to the editor ( https://github.com/woocommerce/woocommerce-blocks/pull/1276 )
...
* Replace 'isPreview' with 'isEditor' in several places
* Explicitly set props to true
* Add missing propTypes
2019-12-02 11:27:44 +01:00
renovate[bot]
05b234862b
Lock file maintenance ( https://github.com/woocommerce/woocommerce-blocks/pull/1288 )
2019-12-02 10:52:13 +01:00
Albert Juhé Lluveras
84a073acf4
Update 'Tested up to' version to WP 5.3 ( https://github.com/woocommerce/woocommerce-blocks/pull/1282 )
2019-11-29 19:37:05 +01:00
Albert Juhé Lluveras
f8571c3618
Add instructions to update a single file to WordPress.org ( https://github.com/woocommerce/woocommerce-blocks/pull/1284 )
2019-11-29 19:36:38 +01:00
Albert Juhé Lluveras
5698e123d3
Fix Price Filter block if minPrice or maxPrice are null ( https://github.com/woocommerce/woocommerce-blocks/pull/1278 )
2019-11-29 15:28:14 +01:00
Jeff Stieler
fb8a21ba81
Add getAdminLink() to shared settings export. ( https://github.com/woocommerce/woocommerce-blocks/pull/1244 )
...
* Add getAdminLink() to shared settings export.
* Import getAdminLink from @woocommerce/settings
* Uninstall @woocommerce/navigation
2019-11-28 17:33:29 +01:00
Darren Ethier
bdcb7544c1
Add source-maps for easier debugging development builds ( https://github.com/woocommerce/woocommerce-blocks/pull/1274 )
...
* add source-maps for easier debugging
* change test to be a bit more stable
2019-11-28 07:55:59 -05:00
Albert Juhé Lluveras
ed4e4ad7b9
Use attribute label instead of slug in Filter by Attribute title ( https://github.com/woocommerce/woocommerce-blocks/pull/1271 )
2019-11-27 14:29:28 +01:00
Seghir Nadir
087e5531aa
Update CONTRIBUTING.md
...
change some things according to Darren [notes here](2ee0b6afd8
)
2019-11-27 14:27:44 +01:00
Seghir Nadir
6680559d53
Update CONTRIBUTING.md
2019-11-27 12:27:17 +01:00
renovate[bot]
007e19eb68
Update dependency eslint to v6.7.1 ( https://github.com/woocommerce/woocommerce-blocks/pull/1268 )
2019-11-27 11:19:08 +01:00
renovate[bot]
e326639a37
Update dependency core-js to v3.4.4 ( https://github.com/woocommerce/woocommerce-blocks/pull/1267 )
2019-11-27 11:19:00 +01:00
renovate[bot]
2ce6504676
Update babel monorepo to v7.7.4 ( https://github.com/woocommerce/woocommerce-blocks/pull/1266 )
2019-11-27 11:18:53 +01:00
renovate[bot]
18d2757665
Update dependency request-promise to v4.2.5 ( https://github.com/woocommerce/woocommerce-blocks/pull/1269 )
2019-11-27 10:36:34 +01:00
Albert Juhé Lluveras
919ad381fb
Add 2.5.1 changelog
2019-11-26 18:11:33 +01:00
Albert Juhé Lluveras
ec4ae1269d
Filter by Attribute: Allow reselecting unselected attribute ( https://github.com/woocommerce/woocommerce-blocks/pull/1264 )
...
* Filter by Attribute: Allow reselecting unselected attribute
* Run prettier
2019-11-26 17:43:27 +01:00
Seghir Nadir
e8f0a071ba
Fix bug with cart not updating ( https://github.com/woocommerce/woocommerce-blocks/pull/1258 )
...
* fix bug with add to cart
* prettier
* migrate to Event
* prettier
* Update assets/js/atomic/components/product/button/index.js
update to fix on sequential adds
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
* Avoid dispatching cart update event on initial mount
* add condition to check if Event is defined
2019-11-26 11:26:53 -05:00
Seghir Nadir
998d3920c9
Fix color on pagination caused by Twenty Twenty ( https://github.com/woocommerce/woocommerce-blocks/pull/1257 )
...
* fix color on pagination caused by twentytwenty
2019-11-26 12:45:00 +01:00
Albert Juhé Lluveras
ea1a31123f
Fix wrong proptypes definition in BlockTitle component ( https://github.com/woocommerce/woocommerce-blocks/pull/1259 )
2019-11-26 12:16:28 +01:00
Rua Haszard
1ec624f2d7
Fix inconsistent heading editor styles for filter blocks ( https://github.com/woocommerce/woocommerce-blocks/pull/1256 )
...
* override title bg to transparent in editor for filter blocks
2019-11-26 11:56:14 +01:00
renovate[bot]
9eaeb208f5
Lock file maintenance ( https://github.com/woocommerce/woocommerce-blocks/pull/1250 )
2019-11-26 06:38:50 +01:00
renovate[bot]
dc13d9c8ec
Update dependency react-test-renderer to v16.12.0 ( https://github.com/woocommerce/woocommerce-blocks/pull/1225 )
2019-11-26 06:38:12 +01:00
renovate[bot]
e5a7d1bab9
Update dependency node-sass to v4.13.0 ( https://github.com/woocommerce/woocommerce-blocks/pull/1224 )
2019-11-26 06:37:57 +01:00
renovate[bot]
571254f69e
Update dependency lint-staged to v9.4.3 ( https://github.com/woocommerce/woocommerce-blocks/pull/1223 )
2019-11-26 06:37:18 +01:00
renovate[bot]
1d3201609b
Update dependency eslint-config-prettier to v6.7.0 ( https://github.com/woocommerce/woocommerce-blocks/pull/1222 )
2019-11-26 06:36:56 +01:00
renovate[bot]
85ed640634
Update dependency autoprefixer to v9.7.2 ( https://github.com/woocommerce/woocommerce-blocks/pull/1221 )
2019-11-26 06:36:32 +01:00
Albert Juhé Lluveras
f32011e2d3
Fix invalid attributes error in some blocks ( https://github.com/woocommerce/woocommerce-blocks/pull/1254 )
2019-11-26 06:34:49 +01:00
Mike Jolley
c55a387657
Prevent multiple collection data requests using debounce ( https://github.com/woocommerce/woocommerce-blocks/pull/1233 )
...
* Add context for collection data query
* Introduce useCollectionData hook
* Implement hook in filter blocks
* Update API to handle nuances of counts instead of client side
* Clone requests so original is untouched
* Prevent dupe requests is working
* Cleanup
* Update assets/js/base/hooks/use-collection-data.js
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
* Update assets/js/base/hooks/use-collection-data.js
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
* Feedback
* Remove context
2019-11-23 17:04:30 +00:00
Mike Jolley
c595444b7f
Hydrate REST endpoint data in the stores ( https://github.com/woocommerce/woocommerce-blocks/pull/1206 )
...
* Helper to get namespace routes from the REST Api
* Add routes to store settings
* HydrateRestApiData component
* Correct usage of useSelect
* Remove lodash
* Move code to HOC
2019-11-23 16:29:35 +00:00
Mike Jolley
fc32c0a9ed
Update translation handling to include core translations ( https://github.com/woocommerce/woocommerce-blocks/pull/1242 )
...
* Remove language files and po2json generation scripts
* Add action filter and function to load core translations
* Use pre_load_script_translations
* Remove script actions
* docblock
2019-11-23 16:28:54 +00:00
Darren Ethier
5c26249e26
don’t mutate default state constant. ( https://github.com/woocommerce/woocommerce-blocks/pull/1245 )
...
There was no need to have a const for the default state and also needed to make sure we’re not mutating it because it would result in the mutation of the default state. This in turn meant that on the initial reducing action, the default state in the store would have a ghost value.
2019-11-22 15:18:45 -05:00
Seghir Nadir
aa2e2d8f1e
introduce block title component ( https://github.com/woocommerce/woocommerce-blocks/pull/1240 )
...
* introduce block title component
* style with prettier
* rename component class
* update readme
2019-11-21 18:21:14 +01:00
Mike Jolley
2f3c4623b7
Update `useQueryStateByContext` to remove need for context when setting values ( https://github.com/woocommerce/woocommerce-blocks/pull/1239 )
...
* Don't require context for set
* Update tests
2019-11-21 16:06:52 +01:00
Mike Jolley
6e2978413e
level -> headingLevel ( https://github.com/woocommerce/woocommerce-blocks/pull/1230 )
2019-11-21 12:19:34 +00:00
Mike Jolley
b96f568c2e
Price Slider -- Only do instant updates if filter button is disabled ( https://github.com/woocommerce/woocommerce-blocks/pull/1228 )
...
* Only do instant updates if filter button is disabled
* Update assets/js/blocks/price-filter/block.js
Co-Authored-By: Albert Juhé Lluveras <aljullu@gmail.com>
2019-11-21 11:53:08 +00:00
renovate[bot]
868db00a86
Pin dependency use-debounce to 3.1.0 ( https://github.com/woocommerce/woocommerce-blocks/pull/1220 )
2019-11-21 11:51:46 +00:00
Albert Juhé Lluveras
e3eebe89c2
Move ErrorBoundary to renderFrontend() function ( https://github.com/woocommerce/woocommerce-blocks/pull/1226 )
2019-11-21 09:09:14 +01:00
Albert Juhé Lluveras
4652ce1547
Honor CSS classes in editor ( https://github.com/woocommerce/woocommerce-blocks/pull/1227 )
...
* Honor CSS classes in editor
* Remove is-loading classes from editor
* Make sure we always destructure all attributes
2019-11-21 08:50:30 +01:00
Albert Juhé Lluveras
15cce7eb74
All Products block: format prices of variable products ( https://github.com/woocommerce/woocommerce-blocks/pull/1210 )
2019-11-21 08:47:38 +01:00
Albert Juhé Lluveras
6f4a9e7782
Remove minConstraint and maxConstraint from price filter state ( https://github.com/woocommerce/woocommerce-blocks/pull/1192 )
...
* Remove minConstraint and maxConstraint from price filter state
* Remove 'useMemo' from minConstraint and maxConstraint
* Make sure minConstraint and maxConstraint are numbers before updating min/max prices
* Make sure non-valid price constraints don't make it to usePrevious
* Remove again track min/max constraint useEffect
2019-11-21 08:42:58 +01:00
Darren Ethier
688d60d9bd
update to dev version
2019-11-19 14:08:55 -05:00
Seghir Nadir
7995d56d9f
Bumping version strings to new version.
2019-11-19 18:20:22 +01:00
Seghir Nadir
b09c6a69b1
add changelog entries
2019-11-19 18:11:31 +01:00
Mike Jolley
0272c4472b
Add no result templates ( https://github.com/woocommerce/woocommerce-blocks/pull/1178 )
...
* All Products block with filters: avoid showing loading placeholders if there are no results
* Hide sort select and show message when no products are available
* Add no result templates
* Remove product-grid
* Move images to assets dir
* Update images
* Switch functions to Components
* Capitals
* add missing context
2019-11-19 15:47:46 +00:00
Seghir Nadir
bb0227edb1
Show number of reviews in each category in Reviews per Category block ( https://github.com/woocommerce/woocommerce-blocks/pull/1177 )
...
* Add reviews to Category endpoint
* add option to show categories with reviews
* update label text if we're using reviews for counting
* update reviews count to use raw sql
* add flag before querying review count
* add review_count to collection data & schema
* fix PR code review problems
* update tests to it expects the new collection param
* add note about review_count is schema
2019-11-19 16:22:16 +01:00
Albert Juhé Lluveras
dceb2c6a0f
All Products: avoid pagination disappearing when switching pages/changing sort value (take 2) ( https://github.com/woocommerce/woocommerce-blocks/pull/1201 )
...
* Use same query for headers collection
* All Products: avoid pagination disappearing when switching pages/changing sort value (take 2)
* Cleanup
* fixes after rebase
* Make it work after last rebase
* only do page change when queryState.page has changed.
* Fix woocommerce/woocommerce-blocks#1198 again
* Remove previousPage and isInitialized checks
2019-11-19 16:14:34 +01:00
Mike Jolley
8eec47e241
Use same query for headers collection ( https://github.com/woocommerce/woocommerce-blocks/pull/1196 )
2019-11-19 13:17:03 +01:00
Darren Ethier
2ca9f5eca2
Fix: Page selection will reset to 1 after deselecting filterable item, re-sorting products, and selecting new page. ( https://github.com/woocommerce/woocommerce-blocks/pull/1205 )
...
* initial commit
* change initialization state when user triggered page change
2019-11-19 06:20:23 -05:00
Darren Ethier
652aa0caa2
Fix paging issues ( https://github.com/woocommerce/woocommerce-blocks/pull/1202 )
2019-11-19 04:55:16 -05:00
Darren Ethier
3189a9483b
Implement useProductLayoutContext for layout prefix in atomic blocks. ( https://github.com/woocommerce/woocommerce-blocks/pull/1183 )
...
* implement product layout context for product button
* convert product image component to functional component
- also implements useProductLayoutContext
* ensure edit context for AllProducts block has appropriate providers wrapping it.
* update price block with useProductLayoutContext
* convert ProductRating block to functional component and add useProductLayoutContext
* add useProductLayoutContext to ProductSummary
* update sale badge component adding useProductLayoutContext
* add useProductLayoutContext to ProductTitle component
* update ProductListItem component to add useProductLayoutContext
* update ProductList component to add useProductLayoutContext
2019-11-18 15:25:29 +01:00