Commit Graph

250 Commits

Author SHA1 Message Date
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
Kelly Dwan 566822fd97 Update dependency css-loader to v2 (https://github.com/woocommerce/woocommerce-blocks/pull/218) 2018-12-08 10:36:17 -06:00
Renovate Bot 0b7168e2a3 Update dependency css-loader to v2 2018-12-08 16:26:58 +00:00
renovate[bot] 9bf2b5aa10 Update dependency eslint to v5.10.0 (https://github.com/woocommerce/woocommerce-blocks/pull/224) 2018-12-08 10:25:34 -06:00
renovate[bot] 7d114483fb Update dependency mini-css-extract-plugin to v0.5.0 (https://github.com/woocommerce/woocommerce-blocks/pull/217) 2018-12-08 10:24:47 -06:00
renovate[bot] 4118fd3bf3 Update dependency core-js to v2.6.0 (https://github.com/woocommerce/woocommerce-blocks/pull/213) 2018-12-08 10:24:22 -06:00
renovate[bot] 2dfb1bc5cd Update dependency webpack to v4.27.1 (https://github.com/woocommerce/woocommerce-blocks/pull/216) 2018-12-08 10:24:02 -06:00
Kelly Dwan a92ae1477b Remove “center” alignment option (https://github.com/woocommerce/woocommerce-blocks/pull/214) 2018-12-05 12:00:40 -05:00
Kelly Dwan ba83d67b32 Bump version (https://github.com/woocommerce/woocommerce-blocks/pull/211) 2018-12-04 19:41:40 -05:00
Kelly Dwan cd01cfe3bd Release 1.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/206)
* Update display name in wp-admin

* Update minimum WP in readme.txt

* Bump version in wp-admin

* Disable “dev mode” for release

* Updating plugin name

* Update version constant

* Don’t commit disabling dev mode
2018-12-04 15:54:14 -05:00
Kelly Dwan 02f8aa1091 Add styles for better reusable block preview (https://github.com/woocommerce/woocommerce-blocks/pull/210)
* Add styles for better reusable block preview

* Fix class names for legacy block preview style

* Check that `products` exists before checking length

* Fix stylelint issues
2018-12-04 15:40:00 -05:00
renovate[bot] 48bcc11ae2 Update dependency autoprefixer to v9.4.2 (https://github.com/woocommerce/woocommerce-blocks/pull/204) 2018-12-04 10:09:45 -05:00
renovate[bot] 3cd501745d Update dependency eslint-plugin-jest to v22.1.2 (https://github.com/woocommerce/woocommerce-blocks/pull/203) 2018-12-04 09:52:42 -05:00
renovate[bot] 0eaebf04c0 Update dependency webpack to v4.27.0 (https://github.com/woocommerce/woocommerce-blocks/pull/201) 2018-12-04 09:52:20 -05:00
renovate[bot] 4cc4c7a7e9 Update dependency autoprefixer to v9.4.1 (https://github.com/woocommerce/woocommerce-blocks/pull/202) 2018-12-04 09:51:48 -05:00
Kelly Dwan 723c8eedab Update textdomain to plugin slug (https://github.com/woocommerce/woocommerce-blocks/pull/199)
* Update textdomain in JS files

* Update textdomain in PHP files

* Add babel plugin to create pot & php files from JS

* Update textdomain in plugin header

* Update translations after rebase
2018-12-04 09:51:21 -05:00
David Levin 57c5e08340 Merge pull request woocommerce/woocommerce-blocks#196 from woocommerce/update/readme-for-release
Update readme file
2018-12-03 16:24:14 -08:00
Kelly Dwan 6572b79708 Category Selection: Add loading & no results states (https://github.com/woocommerce/woocommerce-blocks/pull/197)
* Add gridicons dependency

* Add loading & no results states

* Update test snapshots

* Remove redundant setState call
2018-12-03 19:17:22 -05:00
Kelly Dwan 5966050367 Add `woocommerce` as a supported keyword for the block (https://github.com/woocommerce/woocommerce-blocks/pull/198) 2018-12-03 19:17:10 -05:00
renovate[bot] be07093ae0 Update dependency @babel/core to v7.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/194) 2018-12-03 19:16:31 -05:00
renovate[bot] 503aba0275 Update dependency eslint-plugin-jest to v22.1.1 (https://github.com/woocommerce/woocommerce-blocks/pull/200) 2018-12-03 19:16:16 -05:00
Kelly Dwan 663e324534 Update the minimum requirements
Tested with WC 3.3.1/WP 4.9/Gutenberg 4.6
2018-12-03 17:37:40 -05:00
Kelly Dwan c0b98aac61 Fix spelling, add periods to changelog bullets to match previous items 2018-12-03 17:36:28 -05:00
David Levin 1de118608c Update readme file 2018-12-03 13:36:57 -08:00
Kelly Dwan f0f62b5caa Category Selection: Always show "selected" section (https://github.com/woocommerce/woocommerce-blocks/pull/192)
* Always show the selected tags section, with a min-height to prevent jumping when selecting tags

* Only show the “clear all” button if there are selected items

* Update snapshot tests

* Update height for sidebar category selection
2018-12-03 16:05:12 -05:00
Kelly Dwan 50aa551268 Prevent scrollbar on bottom of category selection screen (https://github.com/woocommerce/woocommerce-blocks/pull/191)
Only show vertical scrollbar if the container is scrollable
2018-12-03 13:06:47 -05:00
Kelly Dwan 46cc38e3be Add the first category to deeply nested items (https://github.com/woocommerce/woocommerce-blocks/pull/189) 2018-12-03 13:06:28 -05:00
Kelly Dwan e1f8e7d552 Update tests after markup changes in 182 (https://github.com/woocommerce/woocommerce-blocks/pull/190) 2018-12-03 12:29:44 -05:00
Kelly Dwan 063f38192f Category Selection: Keep selected categories in the list (https://github.com/woocommerce/woocommerce-blocks/pull/182)
* Don’t hide selected elements, instead add selection toggle

* Add checked/unchecked icons next to each menu item

* Add icon to product category list

* Update snapshots with added icons
2018-12-03 11:27:35 -05:00
Kelly Dwan e8538ca0cd Update role/selected code to make it clear to screen reader users that items are selected 2018-12-03 11:25:54 -05:00
Kelly Dwan f1f1a324a0 Add a specific class wrapper to the SVG 2018-12-03 11:25:32 -05:00
Kelly Dwan 94db1a65cf Update snapshots with added icons 2018-12-03 11:10:24 -05:00
Kelly Dwan c4ca6b484d Add icon to product category list 2018-12-03 11:10:23 -05:00
Kelly Dwan 5b9e615d45 Add checked/unchecked icons next to each menu item 2018-12-03 11:10:23 -05:00
Kelly Dwan 3d5571093a Don’t hide selected elements, instead add selection toggle 2018-12-03 11:10:22 -05:00
renovate[bot] 15dbfc3236 Update dependency autoprefixer to v9.4.0 (https://github.com/woocommerce/woocommerce-blocks/pull/185) 2018-12-03 10:18:30 -05:00