Commit Graph

3322 Commits

Author SHA1 Message Date
Kelly Dwan 1b4904a19e Update `@wordpress/*` packages (https://github.com/woocommerce/woocommerce-blocks/pull/338) 2019-01-17 10:31:01 -05:00
renovate[bot] 0dfece4fd6 Update dependency @woocommerce/components to v1.4.0 (https://github.com/woocommerce/woocommerce-blocks/pull/333)
* Update dependency @woocommerce/components to v1.4.0

* Fix test snapshots
2019-01-16 18:58:37 -05:00
renovate[bot] 5f31174bdc Update dependency stylelint to v9.10.0 (https://github.com/woocommerce/woocommerce-blocks/pull/332) 2019-01-16 10:39:24 -05:00
Kelly Dwan abd6522fc3 Readme: Add link to dev blog post (https://github.com/woocommerce/woocommerce-blocks/pull/330) 2019-01-15 17:10:59 -05:00
Kelly Dwan afae8db424 Add changelog & version bump to 1.3.0 (https://github.com/woocommerce/woocommerce-blocks/pull/323)
* Add changelog & version bump to 1.3.0-RC

* Update changelog phrasing

* Update name/version in package-lock

* Update readme

* Bump version to 1.3.0
2019-01-15 16:43:18 -05:00
Kelly Dwan ea4996267c Add catOperator to remaining blocks (https://github.com/woocommerce/woocommerce-blocks/pull/328) 2019-01-15 13:52:34 -05:00
Jeff Stieler dfba64e833 Merge pull request woocommerce/woocommerce-blocks#329 from woocommerce/fix/wcsettings-object-collision-wc-admin
Use the wcSettings object from wc-admin if present
2019-01-15 11:27:06 -07:00
Jeff Stieler 71a4c81dd1 Use the wcSettings object from wc-admin if present and update it to more closely match the latest from wc-admin. 2019-01-15 11:21:16 -07:00
Kelly Dwan 6267b32772 Featured Product block: Allow custom background image selecton (https://github.com/woocommerce/woocommerce-blocks/pull/322)
* Add media icon to toolbar, save selected media ID and src as attributes

* Use the selected image instead of the product image, if set

* Unset the selected image when a new product is selected
2019-01-14 17:22:00 -05:00
Kelly Dwan 71b448f8b6 Build: Split out vendor files into separate, shared JS & CSS files (https://github.com/woocommerce/woocommerce-blocks/pull/314)
* Add splitchunks to webpack config to combine node_modules imports into a vendors script

* Move legacy CSS into legacy folder

* Get components css without needing to use relative path

* Add vendors css file
2019-01-14 15:33:17 -05:00
Kelly Dwan 162c55d0cc Hide the legacy products block from the block inserter (https://github.com/woocommerce/woocommerce-blocks/pull/143) 2019-01-14 15:03:12 -05:00
Kelly Dwan 2201fe7db7 Remove the “Filter by Attribute” panel from products by category block (https://github.com/woocommerce/woocommerce-blocks/pull/321) 2019-01-14 14:53:55 -05:00
Kelly Dwan 6f2719d36b Featured Product Block: Use real product short description (https://github.com/woocommerce/woocommerce-blocks/pull/315) 2019-01-14 14:53:30 -05:00
James Koster 9c414cac0a Featured Products style tweaks (https://github.com/woocommerce/woocommerce-blocks/pull/316)
* Update search list item padding

* Fix search list item radio alignment

* Star icon: Material -> Dashicons

* Featured product min height

* placeholder icon + explanation of explicit height value

* Fix linter errors

* Remove unnecessary Icon from block registration

* Remove the star icon
2019-01-14 14:37:35 -05:00
renovate[bot] 7d1c67fd2d Pin dependency classnames to 2.2.6 (https://github.com/woocommerce/woocommerce-blocks/pull/313) 2019-01-13 12:28:41 -05:00
Kelly Dwan 0d720183aa Add "Featured Product" block preview (https://github.com/woocommerce/woocommerce-blocks/pull/308)
* Add classnames package

* Add background image & initial styles

* Only show inspector controls when not in edit-mode

* Add overlay color + opacity controls

* Add content alignment

* Fix display of content

* Add content toggles

* Update styles from feedback

* Display the "Featured Product" block on the frontend (https://github.com/woocommerce/woocommerce-blocks/pull/310)

* Add render_callback to dynamically render product

* Set a size for the product description

* Remove fallback placeholder image

* Reset the background color for the placeholder component

Previously this was overriding storefront's custom background color CSS

* Update nested conditional

* Remove unnecessary style

* "Featured Product" Block: Add link to the product to the block (https://github.com/woocommerce/woocommerce-blocks/pull/311)

* Featured Product Block: Add link to the product to the block

* Add a better link label for screen reader users

* Match core button styles, fix alignment of button-link
2019-01-13 12:22:15 -05:00
renovate[bot] dbb04d5f1a Update dependency autoprefixer to v9.4.5 (https://github.com/woocommerce/woocommerce-blocks/pull/312) 2019-01-12 12:55:12 -05:00
Kelly Dwan 62a226b6ee REST API: Add the product description to our products endpoint (https://github.com/woocommerce/woocommerce-blocks/pull/309)
* REST API: Add the product description to our products endpoint

* Add short_description to the API
2019-01-11 18:58:58 -05:00
Kelly Dwan 64e46b8f8e Add ProductControl, update SearchListControl to pick a "single item" (https://github.com/woocommerce/woocommerce-blocks/pull/304)
* Add a prop to turn on “single choice” mode

* Create new ProductControl to select a single product

* Remove align from shared attributes

This is given to us by default for using supports.align

* Add Featured Product block

* Fix spelling mistake & copy-paste issue

* Fix lint warning

* Add featured product script to build process, register block in PHP
2019-01-10 14:01:49 -05:00
Kelly Dwan 6a1c1490cb Split blocks into separate JS files (https://github.com/woocommerce/woocommerce-blocks/pull/305)
This lets us use the functionality of `register_block_type` to automatically enqueue the scripts and styles used by blocks in the editor, and eventually, styles on the frontend as well. Also adds cssnano to minify our CSS.
2019-01-10 13:16:37 -05:00
renovate[bot] b7bd2e7162 Update dependency webpack to v4.28.4 (https://github.com/woocommerce/woocommerce-blocks/pull/307) 2019-01-10 13:07:41 -05:00
renovate[bot] c3c9be354f Update dependency core-js to v2.6.2 (https://github.com/woocommerce/woocommerce-blocks/pull/306) 2019-01-10 11:27:31 -05:00
renovate[bot] 257789a342 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/302) 2019-01-09 20:39:51 -05:00
Kelly Dwan 86874a64e6 Icons: add star and radio button icons, organize folder (https://github.com/woocommerce/woocommerce-blocks/pull/303)
* Split out icons into individual files, add radio icons

* Add star icon

* Fix SVG output in tests
2019-01-09 15:33:10 -05:00
Kelly Dwan 1977e1586b REST API: Update products endpoint to get products across different attributes (https://github.com/woocommerce/woocommerce-blocks/pull/299)
* Add products by attributes tests

* Add new properties to Products endpoint args

Allows for requesting a combination of attribute terms across different attributes.

* Unskip working tests
2019-01-09 10:21:23 -05:00
renovate[bot] 9e89e32213 Update dependency eslint-plugin-jest to v22.1.3 (https://github.com/woocommerce/woocommerce-blocks/pull/301) 2019-01-09 10:18:30 -05:00
renovate[bot] c815e4ad9f Update dependency eslint-plugin-react to v7.12.3 (https://github.com/woocommerce/woocommerce-blocks/pull/297) 2019-01-07 10:20:26 -05:00
renovate[bot] 674c52b36b Update dependency webpack-cli to v3.2.1 (https://github.com/woocommerce/woocommerce-blocks/pull/298) 2019-01-07 10:04:55 -05:00
renovate[bot] 8e49c8184a Update dependency eslint to v5.12.0 (https://github.com/woocommerce/woocommerce-blocks/pull/296) 2019-01-04 17:21:07 -05:00
Kelly Dwan 79574a6450 Products by Category: don't show products if no category is selected, better message (https://github.com/woocommerce/woocommerce-blocks/pull/281)
* Prevent Products by Category from showing all products when no category is selected

* Update string when no categories are selected

* Update button text

* Revert button change, Done is more appropriate
2019-01-04 16:34:37 -05:00
renovate[bot] b2fcd96111 Update dependency babel-loader to v8.0.5 (https://github.com/woocommerce/woocommerce-blocks/pull/292) 2019-01-04 11:37:42 -05:00
renovate[bot] f15a38d076 Update dependency eslint-plugin-react to v7.12.2 (https://github.com/woocommerce/woocommerce-blocks/pull/288) 2019-01-03 17:48:24 -05:00
renovate[bot] 2978534c03 Update dependency eslint to v5.11.1 (https://github.com/woocommerce/woocommerce-blocks/pull/284) 2019-01-03 17:47:37 -05:00
renovate[bot] 2c110db5a7 Update Node.js to v10.15.0 (https://github.com/woocommerce/woocommerce-blocks/pull/286) 2019-01-03 13:28:32 -05:00
renovate[bot] 70131bc025 Update dependency husky to v1.3.1 (https://github.com/woocommerce/woocommerce-blocks/pull/287) 2019-01-03 13:28:02 -05:00
renovate[bot] 9a06938eb5 Update dependency autoprefixer to v9.4.4 (https://github.com/woocommerce/woocommerce-blocks/pull/291) 2019-01-03 13:27:39 -05:00
renovate[bot] 4ae80bc5d2 Update dependency css-loader to v2.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/285) 2019-01-03 13:27:23 -05:00
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