Commit Graph

285 Commits

Author SHA1 Message Date
renovate[bot] 088753ce3c Update dependency webpack-cli to v3.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/290) 2019-01-03 13:27:09 -05:00
renovate[bot] 2147e5713b Update dependency webpack to v4.28.3 (https://github.com/woocommerce/woocommerce-blocks/pull/283) 2019-01-03 13:16:09 -05:00
Kelly Dwan bc53626f1d Hide the selected items section until the content is loaded (https://github.com/woocommerce/woocommerce-blocks/pull/282)
This will prevent the inaccurate “0 items selected” message
2019-01-03 11:16:00 -05:00
Kelly Dwan 03eaddd197 New block: add "Hand-picked Products" block (https://github.com/woocommerce/woocommerce-blocks/pull/276)
* Add ProductsControl component to search and select products

* Add “Hand-picked Products” block

* Update hand-picked & new product icons

* Prevent API request when no products are selected

* Remove rows setting

* Update shortcode/query helpers for the handpicked products

* Remove shortcode from post if no product IDs are passed

Rendering a shortcode with `ids=‘’` will show all products, as if the ids param wasn’t there. The expected outcome would be no products are shown, we we achieve by removing the shortcode.

* Remove unused rows attribute

* Update accessible spoken notice

* Add a variable to hold whether there are selected products

* Fix copy-paste comments
2018-12-21 19:10:17 -05:00
Kelly Dwan 6d06990123 Visually hide the “any”/“all” categories selector when less than 2 categories are selected (https://github.com/woocommerce/woocommerce-blocks/pull/279) 2018-12-21 12:45:07 -05:00
renovate[bot] e212d762f6 Update dependency css-loader to v2.0.2 (https://github.com/woocommerce/woocommerce-blocks/pull/280) 2018-12-21 10:22:31 -05:00
Kelly Dwan 32b5b07c23 Add ProductAttributeControl for selecting product attributes (https://github.com/woocommerce/woocommerce-blocks/pull/266)
* Add initial attribute selector control

* Make the attribute group name unselectable

* Update selected map to reflect attribute syntax

* Add the attributes selector to the product category block

* Update copy-paste comment

* Update variable name to be more clear

* Move & rename the attribute selector in Products by Category

* Reorganize the API calls to fetch attributes + attribute terms
2018-12-20 17:26:51 -05:00
renovate[bot] 0b91be551e Update dependency webpack to v4.28.1 (https://github.com/woocommerce/woocommerce-blocks/pull/278) 2018-12-20 13:09:05 -05:00
renovate[bot] 6f5e0b3fad Update dependency react-test-renderer to v16.7.0 (https://github.com/woocommerce/woocommerce-blocks/pull/275) 2018-12-20 10:25:52 -05:00
Kelly Dwan 134976e5d5 Fix "products by all categories" not finding products in parent-categories (https://github.com/woocommerce/woocommerce-blocks/pull/272)
* Fix issue with product categories when one category is a parent

* Add tests for product by categories intersections
2018-12-20 10:24:11 -05:00
Kelly Dwan c8775aa4e1 Fix the spacing around the “edit mode” of Products by Category (https://github.com/woocommerce/woocommerce-blocks/pull/273) 2018-12-19 17:35:41 -05:00
Kelly Dwan ba8ce223cf Use em-dashes to indent child categories/attributes instead of padding (https://github.com/woocommerce/woocommerce-blocks/pull/265) 2018-12-19 17:34:28 -05:00
Kelly Dwan 18f99101e2 Fix multiple API calls returning out of order, causing set rows to be incorrect (https://github.com/woocommerce/woocommerce-blocks/pull/264) 2018-12-19 17:18:13 -05:00
Kelly Dwan aa9f543834 Add new SearchListItem component (https://github.com/woocommerce/woocommerce-blocks/pull/258)
* Add new SearchListItem component

Extract the custom functionality from product categories, for re-use in product attributes

* Fix error when no breadcrumbs are set

* Update snapshot

* Remove unnecessary key
2018-12-19 11:56:44 -05:00
renovate[bot] d3c8998430 Update dependency @woocommerce/components to v1.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/267)
* Update dependency @woocommerce/components to v1.3.0

* Set up new globals used by @woocommerce/components
2018-12-19 10:55:16 -05:00
renovate[bot] 205f20f879 Update dependency webpack to v4.28.0 (https://github.com/woocommerce/woocommerce-blocks/pull/271) 2018-12-19 10:30:28 -05:00
Kelly Dwan a7fcb82636 Inject attribute group name & slug into API response (https://github.com/woocommerce/woocommerce-blocks/pull/263) 2018-12-18 18:05:52 -05:00
renovate[bot] 877b6e92e8 Update dependency husky to v1.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/262) 2018-12-18 15:01:38 -05:00
David Levin 5af019bcd7 New Block: Add "Newest Products" Block (https://github.com/woocommerce/woocommerce-blocks/pull/255)
* add newest products block

* update class name in index.js and product-new.js

* Add a new WooCommerce block category and include all blocks within.

* Fix shortcode product order

* Show block category on all post types
2018-12-18 14:45:49 -05:00
renovate[bot] 24ab9c5f7e Update dependency core-js to v2.6.1 (https://github.com/woocommerce/woocommerce-blocks/pull/260) 2018-12-18 10:50:35 -05:00
Kelly Dwan 48cd95d64d Move icon components to a shared component, add New Releases SVG (https://github.com/woocommerce/woocommerce-blocks/pull/257) 2018-12-17 15:51:10 -05:00
Kelly Dwan 3bccfda459 Category Selection: Add support for category operator (https://github.com/woocommerce/woocommerce-blocks/pull/251)
* Add core breakpoint 480px, remove non-core breakpoints

* Add the optional operator & save callback

* Add the catOperator as a valid attribute

* Enable cat operator for Products by Category

* Add cat_operator support the products API endpoint

* Enable cat_operator in the shortcode and query utils

* Pluralize the “nothing found” string if we have multiple categories

* Fix style in the inspector panel

* Add category operator support to the Best Sellers product block

* Add cat_operator support to On Sale Products block

* Update label & margin
2018-12-17 15:16:01 -05:00
Michael Rogowski fef17476c8 Fix undefined error when selecting a product without an image (https://github.com/woocommerce/woocommerce-blocks/pull/254)
prior to this commit, an 'individual product' block would produce
an error if associated with a product with no image.
2018-12-17 15:15:32 -05:00
renovate[bot] 8b4503f53b Update dependency autoprefixer to v9.4.3 (https://github.com/woocommerce/woocommerce-blocks/pull/256) 2018-12-17 10:04:50 -05:00
David Levin 7069feec94 Merge pull request woocommerce/woocommerce-blocks#249 from woocommerce/add/top-rated-products-block
New Block: Add "Top Rated Products" block
2018-12-15 11:06:09 -08:00
renovate[bot] 9bb76f741d Update dependency @babel/core to v7.2.2 (https://github.com/woocommerce/woocommerce-blocks/pull/253) 2018-12-15 11:47:54 -05:00
Kelly Dwan 395888a521 Fix mix of tabs/spaces 2018-12-15 11:41:39 -05:00
David Levin 036d36ed6e resolving conflicts 2018-12-14 18:32:29 -08:00
David Levin 0c9e3eb6ba resolving conflicts 2018-12-14 18:12:13 -08:00
David Levin 1bf9ab1fb5 resolve conflicts 2018-12-14 18:08:58 -08:00
David Levin 3b770feb90 remove unnecessary function from get-shortcode.js 2018-12-14 17:48:46 -08:00
Kelly Dwan fed623529e Update assets/js/utils/get-shortcode.js
Co-Authored-By: LevinMedia <sayhi@levinmedia.com>
2018-12-14 17:10:45 -08:00
Kelly Dwan 381752734b New Block: Add "On Sale Products" block (https://github.com/woocommerce/woocommerce-blocks/pull/239)
* Add “On Sale Products” block

* Remove categories requirement from fetching products on mount
2018-12-14 18:47:16 -05:00
David Levin cae9799ffc update ordering by rating 2018-12-14 12:21:56 -08:00
David Levin d30761ba2f Add top rated products block 2018-12-14 11:45:19 -08:00
Kelly Dwan 58f3764c36 Move product order list into a shared component (https://github.com/woocommerce/woocommerce-blocks/pull/238) 2018-12-14 09:57:32 -05:00
Kelly Dwan cdd520bbeb Fix incorrectly escaped HTML in build notice (https://github.com/woocommerce/woocommerce-blocks/pull/235) 2018-12-14 09:57:11 -05:00
Kelly Dwan 9d6628e709 Add PHPCS to travis CI tests (https://github.com/woocommerce/woocommerce-blocks/pull/236)
* Limit phpcs to only linting php files

* Add composer & phpcs to travis process
2018-12-14 09:56:54 -05:00
renovate[bot] 6c7e2d0976 Update dependency css-loader to v2.0.1 (https://github.com/woocommerce/woocommerce-blocks/pull/248) 2018-12-14 09:56:26 -05:00
renovate[bot] e06fcb0a3d Update dependency husky to v1.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/246) 2018-12-14 08:59:23 +08:00
Kelly Dwan 43675515af Block: Add new "Best Selling Products" block (https://github.com/woocommerce/woocommerce-blocks/pull/221)
* Move from a JS file per block registration to one file registering all blocks

This will let webpack combine shared libraries, like gridicons

* Move global block settings to the “before all scripts” section

These shouldn’t be tied to a specific block file, since they’re used across all blocks

* Register both block types

We can also remove the scripts, since we enqueue these below

* Update getShortcode & getQuery to handle different block types

* Pass block type name to getQuery

* Update shared attributes - edit_mode is not a universal option, but categories will be

Categories is shared, but orderby is not

* Add “Best Selling Products” block

* Add a shared class name for product grid blocks

* Fix failing tests
2018-12-13 12:19:55 -05:00
Kelly Dwan e3dab1cbcc Product preview: Update "Add to cart" button to inherit theme's button styles (https://github.com/woocommerce/woocommerce-blocks/pull/223)
* Remove button styling & add classes to inherit style from core button

* Update to CSS grid

* Prevent warnings when running autoprefixer

* Update spacing in preview

* Update snapshots to reflect button markup change

* Switch to flexbox for IE 11 support

* Remove CSS grid autoprefixer support

* Fix spacing on preview items

* Fix stylelint issue

* Remove unnecessary rule
2018-12-13 12:19:06 -05:00
GlennMartin1 15802e9c71 correct link in readme.md (https://github.com/woocommerce/woocommerce-blocks/pull/234) 2018-12-12 11:16:55 -05:00
Joshua T Flowers fed2de790c Add key prop to dropdown elements (https://github.com/woocommerce/woocommerce-blocks/pull/229) 2018-12-11 17:29:15 -05:00
renovate[bot] 578e36701e Update Node.js to v10.14.2 (https://github.com/woocommerce/woocommerce-blocks/pull/232) 2018-12-11 17:28:29 -05:00
Kelly Dwan c6d071cebf Fix PHP CodeSniffer issues (https://github.com/woocommerce/woocommerce-blocks/pull/215) 2018-12-11 11:14:02 -06:00
Kelly Dwan 1ea12ca2ff Merge pull request woocommerce/woocommerce-blocks#230 from woocommerce/renovate/npm-6.x
Update npm to v6.5.0
2018-12-11 10:50:15 -06:00
Kelly Dwan 03c58682d2 Merge pull request woocommerce/woocommerce-blocks#225 from woocommerce/renovate/node-sass-4.x
Update dependency node-sass to v4.11.0
2018-12-11 10:42:21 -06:00
Renovate Bot 5376e31c03 Update npm to v6.5.0 2018-12-10 22:39:50 +00:00
Renovate Bot 9ec5fde082 Update dependency node-sass to v4.11.0 2018-12-09 02:48:04 +00:00