Commit Graph

2451 Commits

Author SHA1 Message Date
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 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 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
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
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 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
Kelly Dwan b8bdc2bf27 Category Selection: Add hierarchy support for nested categories (https://github.com/woocommerce/woocommerce-blocks/pull/179)
* Add buildTermsTree to handle hierarchical list input

* Append items if their parent is not in the given list

* Add `breadcrumbs` property to hierarchical list

* Display the “breadcrumbs” parent categories when searching

* Use display properties

we’re providing alternative text for screen reader users, so we can just toggle display values for the prefix

* Add all parent categories to name provided for screen readers

* Display parent category when parent is a currently selected item

* Add the depth class to items in defaultRenderItem

* Add a test for a hierarchical item list

* Clean up hierarchy docblock & commented-out code

* Update proptype

* Update depth CSS so we still indent very nested categories
2018-11-30 16:37:58 -05:00
Kelly Dwan dc1c1f7370 Add tests for SearchListControl (https://github.com/woocommerce/woocommerce-blocks/pull/174) 2018-11-30 15:39:16 -05:00
Claudio Sanches 81605bae30 New custom endpoints (https://github.com/woocommerce/woocommerce-blocks/pull/162)
* Included PHPCS and git hooks

* Fixed coding standards

* New Products endpoint

* Fixed product controller schema

* Improved products controller schema and response

* New product categories controller

* Updated REST API base to match WooCommerce authentication

* Fixed products/categories endpoint

* Better docblock

* Product attributes controller

* Product attribute terms controller

* Update REST API urls

* Reverted PHPCS changes

* Check permission only once while fetching posts

* Included raw price

* Included sku to products endpoint response

* Fixed endpoints in unit test

* Fixed routes in unit tests

* Check and use subscriber, contributor and author rules in unit tests
2018-11-30 14:12:56 -05:00
renovate[bot] 7a209367a7 Update dependency @woocommerce/components to v1.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/180) 2018-11-30 13:38:00 -05:00
Kelly Dwan 95b4092567 Update eslint config to ignore legacy block (https://github.com/woocommerce/woocommerce-blocks/pull/176)
* Add react version to prevent warning when running eslint

* Ignore eslint issues in the legacy block
2018-11-30 13:18:52 -05:00
James Koster e9b3b341e5 Adjust category list max-height (https://github.com/woocommerce/woocommerce-blocks/pull/177) 2018-11-30 10:50:23 -05:00
Kelly Dwan 649f79903c Show the Layout settings as open by default (https://github.com/woocommerce/woocommerce-blocks/pull/175) 2018-11-29 21:00:46 -05:00
Kelly Dwan 6873f803d6 Fix React warning for array items needed unique key props (https://github.com/woocommerce/woocommerce-blocks/pull/173) 2018-11-29 20:57:15 -05:00
Kelly Dwan 4ac52b3cf3 Create a reusable search + list control for category selection (https://github.com/woocommerce/woocommerce-blocks/pull/166)
* Add new components for ProductCategoryControl, using a reusable SearchListControl

* Add sass variables from wc-admin

* Finish styling

* Save selected categories as selected for the block

* Style sidebar version of control

* Filter the categories list, highlight search term in result

* Filter out selected items in the filter list function

* Add spacing in the placeholder, remove unnecessary stylesheet

* Add a more descriptive label for screen readers

* Remove category references from list item options

* Switch to a configurable object of messages, so SearchListControl can be more customizable

* Add screen-reader message for toggling “done” and moving into preview

* Remove call to getProductCategoryControl

The component is simple enough to just drop in now :)

* Add documentation for all props

* Add padding to placeholder

* Rename fallbackrenderItem to defaultRenderItem

* Add a variable to save the selected count

* Add `isDestructive` to make link red

* Update item style

* Add a hover/focus background color
2018-11-29 13:10:08 -05:00
renovate[bot] fbdc17d532 Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/167) 2018-11-29 13:09:21 -05:00
renovate[bot] 280a983790 Update Node.js to v10.14.1 (https://github.com/woocommerce/woocommerce-blocks/pull/169) 2018-11-29 12:50:42 -05:00
Claudio Sanches bd8d5beb21 Introduced pre-commit hook for PHP (https://github.com/woocommerce/woocommerce-blocks/pull/164) 2018-11-29 10:23:27 -05:00
Claudio Sanches 451a14e0d6 PHPCS (https://github.com/woocommerce/woocommerce-blocks/pull/163) 2018-11-29 10:23:04 -05:00
Kelly Dwan 575ac418c9 Update pull request template to add a11y instructions 2018-11-29 10:02:06 -05:00
renovate[bot] a17986f286 Update dependency @woocommerce/components to v1.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/160) 2018-11-28 10:58:03 -05:00
renovate[bot] 16f7c64258 Update dependency stylelint to v9.9.0 (https://github.com/woocommerce/woocommerce-blocks/pull/161) 2018-11-28 10:57:34 -05:00
renovate[bot] 97a61e803b Update Node.js to v10.14.0 (https://github.com/woocommerce/woocommerce-blocks/pull/165) 2018-11-28 10:55:05 -05:00
renovate[bot] da6180f172 Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/142) 2018-11-27 14:41:06 -05:00
renovate[bot] 16e861859a Update dependency webpack to v4.26.1 (https://github.com/woocommerce/woocommerce-blocks/pull/155) 2018-11-27 14:31:31 -05:00
renovate[bot] 402d428642 Update dependency eslint-plugin-jest to v22.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/154) 2018-11-27 14:29:49 -05:00
renovate[bot] 35ac545abb Update dependency mini-css-extract-plugin to v0.4.5 (https://github.com/woocommerce/woocommerce-blocks/pull/152) 2018-11-27 14:28:39 -05:00
Kelly Dwan eb21a5ec9f Update dependencies, add all packages in use (https://github.com/woocommerce/woocommerce-blocks/pull/159) 2018-11-27 12:13:16 -05:00
Kelly Dwan 133e5374af Update jsx-a11y label rule to only require ID, not ID+nesting (https://github.com/woocommerce/woocommerce-blocks/pull/158) 2018-11-27 12:13:05 -05:00
Kelly Dwan 6a50ebde8b Adds continuous integration testing with travis (https://github.com/woocommerce/woocommerce-blocks/pull/156)
* Add travis to run JS & CSS linting, JS tests, and PHPUnit tests

* Move API initiation out of the gutenberg/files check

So that php tests run without having to build the JS files

* Add very basic product endpoint tests

* Fix stylelint issues in CSS

* Remove e2e setup, replace with dependency setup

* Add missing install step

* Remove cache for now

* Add specific `har-validator` dependency because v 5.1.2 has disappeared

* Only run npm install for the JS test job

* Check for installed plugins

* Update install location

* Fix typo in plugin name

* Check the BRANCH variable, rather than TRAVIS_PULL_REQUEST_BRANCH, which is only set on PR runs

* Remove debug command

* A change to trigger CI

* Set the expected node & npm versions

* Remove copy-pasted command, does not apply
2018-11-27 12:12:48 -05:00
Kelly Dwan a4fb42fe3d Load only published products in the preview (https://github.com/woocommerce/woocommerce-blocks/pull/146)
* Load only published products in the preview

* Fix post status in legacy block too

* Filter searching for individual products to only search published products

* Update query tests with change
2018-11-26 11:03:26 -05:00
Kelly Dwan aec2d567e2 Check that the translation function exists before using it (https://github.com/woocommerce/woocommerce-blocks/pull/150) 2018-11-21 16:10:16 -05:00
renovate[bot] f09a4efae2 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/147) 2018-11-21 11:45:09 -05:00
Kelly Dwan c98e607a6f Add the "edit mode" toggle to the product category block (https://github.com/woocommerce/woocommerce-blocks/pull/144)
* Add sass mixins and variables

* Add an edit mode toggle, with the ability to choose categories

* Only add align classes when align is defined
2018-11-21 11:33:21 -05:00
Kelly Dwan a4205a956e Update “tested up to” versions for WC and WP (https://github.com/woocommerce/woocommerce-blocks/pull/141) 2018-11-21 10:56:05 -05:00
renovate[bot] 3851a6bad1 Update dependency webpack to v4.26.0 (https://github.com/woocommerce/woocommerce-blocks/pull/139) 2018-11-19 11:38:33 -05:00
Kelly Dwan 2231c829d1 Add a basic product category block (https://github.com/woocommerce/woocommerce-blocks/pull/136)
* Add a second block, for “products by category”

* Fetch products in the given category, when attributes change

* Display the resulting products

* Style the product preview

* Create utils folder, move shared attributes

* Move getQuery to shared utils folder

* Create a helper function to get the shortcode string

* Support the menu_order setting

* Support center/wide/full alignment

* Update PropTypes

* Add tests

* Add text domain to translation functions
2018-11-19 11:33:17 -05:00
Kelly Dwan b52bb64d88 Move legacy block to “legacy” folder (https://github.com/woocommerce/woocommerce-blocks/pull/135) 2018-11-19 11:31:43 -05:00
renovate[bot] 10b740d148 Update wordpress monorepo (https://github.com/woocommerce/woocommerce-blocks/pull/133) 2018-11-16 14:32:52 -05:00
renovate[bot] 4e1fb93a51 Update dependency clean-webpack-plugin to v1 (https://github.com/woocommerce/woocommerce-blocks/pull/132) 2018-11-16 14:30:39 -05:00
renovate[bot] a1c79b0114 Update dependency @babel/core to v7.1.6 (https://github.com/woocommerce/woocommerce-blocks/pull/131) 2018-11-16 14:29:42 -05:00
Kelly Dwan 882cd4c7bb Set up Jest for JS testing (https://github.com/woocommerce/woocommerce-blocks/pull/130)
* Set up Jest testing

* Add a snapshot test for the product preview component
2018-11-16 10:43:51 -05:00
Kelly Dwan 9090fb41a1 Add .editorconfig file for editor integration (https://github.com/woocommerce/woocommerce-blocks/pull/128) 2018-11-16 10:42:56 -05:00
renovate[bot] 9bc66d90ee Pin dependencies (https://github.com/woocommerce/woocommerce-blocks/pull/129) 2018-11-15 16:59:05 -05:00
renovate[bot] 151614c8b2 Add renovate.json (https://github.com/woocommerce/woocommerce-blocks/pull/127) 2018-11-15 16:55:12 -05:00
Kelly Dwan 702da46571 Add stylelint to find and fix css code style issues (https://github.com/woocommerce/woocommerce-blocks/pull/126)
* Add stylelint & WP gutenberg configuration

* Fix stylelint issues
2018-11-15 10:45:49 -05:00
Kelly Dwan 45f519590e Add eslint to find and fix code style issues (https://github.com/woocommerce/woocommerce-blocks/pull/123)
* Add eslint configuration

* Run eslint auto-fixer to cover fixable issues

* Use wp.element’s component to prevent undefined React error

* Add products data global to eslint config

* Fix remaining eslint errors by hand

* Fix eslint errors in webpack

* Remove duplicate rule
2018-11-13 14:21:04 -05:00
Kelly Dwan 140f4e5ed6 Update build process (https://github.com/woocommerce/woocommerce-blocks/pull/122)
* Add api-fetch dependency

* Remove compiled files from the repo

* Update build process, remove grunt

* Import CSS into block, as we now extract CSS via webpack to build

* Update enqueue scripts to reflect new build locations

* Detect if build files don’t exist, and instruct users to build project

* Update readme with build instructions

* Clarify where to run npm commands in info notice

* Only enqueue our JS files if we know they exist

* Clarify version compatibility between WC and WP 5.0
2018-11-13 14:12:32 -05:00
Kelly Dwan 27ad957eb3 Add all dependencies used in the product block to the script registration (https://github.com/woocommerce/woocommerce-blocks/pull/121)
Fixed woocommerce/woocommerce-blocks#120
2018-11-13 10:48:13 -05:00
Kelly Dwan 940c21d0fb Merge pull request woocommerce/woocommerce-blocks#113 from ajitbohra/patch-1
Readme replace withAPIData with apiFetch
2018-11-12 18:01:36 -05:00
Kelly Dwan 238f68e999 Create pull request template 2018-11-12 17:58:55 -05:00
Kelly Dwan 85a209834a Update issue templates 2018-11-12 17:56:39 -05:00
Ajit Bohra 8995333e6b Readme replace withAPIData with apiFetch 2018-10-05 19:23:21 +05:30
claudiulodro 905ced2193 Update version for release 2018-09-07 08:51:45 -07:00
claudiulodro cb2e63f130 Merge remote-tracking branch 'origin/fix/106-wip' into HEAD 2018-09-06 11:48:37 -07:00
claudiulodro 30aa4814e6 Fix no products found bug in product search 2018-09-06 11:47:51 -07:00
Tiago Noronha 37a7a0ca6c Fade padding fix 2018-09-06 18:53:36 +01:00
claudiulodro 78d21584fa Fix bugs in specific select 2018-09-06 09:58:55 -07:00
claudiulodro dd0b7284e4 Fix bugs with sidebar info 2018-09-06 09:44:30 -07:00
claudiulodro 6d0167b356 Refactor single select 2018-09-06 09:31:05 -07:00
claudiulodro 5bebb96cfa Refactor specific select screen 2018-09-06 09:29:17 -07:00
Tiago Noronha 451a4722f5 Refactor category select 2018-09-06 17:03:36 +01:00
Tiago Noronha cc05f947cd Merge pull request woocommerce/woocommerce-blocks#109 from woocommerce/fix/106-attribute-select
Refactor attribute select
2018-09-06 16:42:23 +01:00
Tiago Noronha 7cca16abdd Refactor attribute select 2018-09-06 16:40:50 +01:00
claudiulodro 914fa794af Fix method name mismatch 2018-09-06 08:37:54 -07:00
claudiulodro 6d4c811949 Refactor sidebar info class 2018-09-06 08:21:56 -07:00
claudiulodro 61d7a229ad Refactor product preview api usage 2018-09-05 13:20:09 -07:00
claudiulodro 6cde5409a1 Begin migration off withapidata 2018-09-05 11:30:46 -07:00
claudiulodro 66aa3b52a9 Merge remote-tracking branch 'origin/master' into HEAD 2018-08-22 11:00:00 -07:00
claudiulodro f411c4453f Update info for release 2018-08-22 10:59:02 -07:00
Claudiu Lodromanean 89794358e6 Merge pull request woocommerce/woocommerce-blocks#105 from woocommerce/fix/101
Add order DESC attribute when ordering by newest first
2018-08-22 10:37:16 -07:00
claudiulodro ce6938548e Don't initialize scripts if wc is not active 2018-08-22 10:28:39 -07:00
Tiago Noronha f6a992a17c Add order DESC attribute when ordering by newest first 2018-08-22 15:05:34 +01:00
Ajit Bohra 38e8f6f518 Add link to wordpress.org 2018-08-10 09:11:28 +05:30
claudiulodro 03ade781d3 Update WC requires version 2018-06-06 09:08:17 -07:00
claudiulodro 6e09ffb392 Update info for 1.1 release 2018-06-06 08:59:45 -07:00
claudiulodro 9a8236ce68 Make attribute select scalable 2018-06-05 10:06:39 -07:00
claudiulodro 07e249faae Add some keys to elements 2018-06-04 10:48:48 -07:00
claudiulodro 59cba2a952 Include custom API endpoint for required orderby features 2018-06-01 10:22:58 -07:00
claudiulodro 0572330b3e Only enqueue gberg scripts/styles on backend editor 2018-06-01 09:35:46 -07:00
claudiulodro f2ee9915f9 Fix things that broke in latest gberg version 2018-06-01 09:19:25 -07:00
claudiulodro 34f6d14bb1 Add best seller and top rated scopes 2018-04-25 12:03:08 -07:00
Claudiu Lodromanean 5df1d15a3b Lowercase readme.txt 2018-04-23 10:35:30 -07:00
claudiulodro b48feb62cd Add gitatributes file 2018-04-23 10:34:21 -07:00
Tiago Noronha 75a4b1b294 Increase search input CSS specificity 2018-04-23 16:55:01 +01:00
claudiulodro 31d489a4ba Readme 2018-04-20 10:17:55 -07:00
claudiulodro 188eaba8bb Compartmentalize plugin 2018-04-19 09:53:21 -07:00
claudiulodro 5b24ae57e4 Fix broken padding from latest gberg update 2018-04-19 09:16:38 -07:00
claudiulodro 3b55ae7c66 Bring up-to-date with master 2018-04-11 08:44:56 -07:00
Tiago Noronha d509148d5b Set results images to specific size 2018-04-10 16:54:06 +01:00
Tiago Noronha a0110a982c Hide outline and remove button when results are visible 2018-04-10 16:42:37 +01:00
Tiago Noronha 23b4d10036 Track if the results dropdown is visible or not 2018-04-10 16:34:53 +01:00
Tiago Noronha d424d9f678 Set number of per page items to the number of individual products set 2018-04-10 15:14:39 +01:00
Tiago Noronha a3b9df0e55 Change outline color 2018-04-10 15:01:31 +01:00
Tiago Noronha f387eb4312 Selected products overflow fix 2018-04-10 14:44:12 +01:00
James Koster e4bbd11cbc Don't show "selected products" label when no products are selected
The instructions in the search input are adequate
2018-04-09 14:46:42 +01:00
James Koster 09bf724059 dropdown / hover styles 2018-04-09 14:32:54 +01:00
James Koster d1566fb0d2 Update block scope details design 2018-04-09 13:53:38 +01:00
Tiago Noronha f83c958eec Remove button tag around selected product checkmark 2018-04-07 00:34:47 +01:00
Tiago Noronha f4bfda9832 Updated individual products design 2018-04-06 23:57:20 +01:00
claudiulodro 6cb26a20c8 Style and fix bug 2018-04-06 14:03:06 -07:00
claudiulodro bb576d2a9c Attribute sidebar description 2018-04-06 13:12:26 -07:00
claudiulodro 9efc26a3b3 Sidebar info working great except for attributes 2018-04-05 12:25:59 -07:00
Tiago Noronha 5d42920036 Closes woocommerce/woocommerce-blocks#84: Adds order setting to individual product scope 2018-04-05 18:22:44 +01:00
Tiago Noronha 08ec9fa803 Closes woocommerce/woocommerce-blocks#59: Individual products - remove rows slider 2018-04-05 17:19:36 +01:00
Tiago Noronha 710e8d03eb Closes woocommerce/woocommerce-blocks#73: Search result row should be clickable 2018-04-05 16:55:36 +01:00
claudiulodro 24898d007d Refactor main products block for better maintainability 2018-04-04 12:26:23 -07:00
claudiulodro c8dfecdf9a Wording update for All scope woocommerce/woocommerce-blocks#72 2018-04-03 10:33:20 -07:00
claudiulodro d5dbda0d9f Use theme default number of rows 2018-04-03 10:26:56 -07:00
claudiulodro 55054fcd02 Jump direct to preview if no further settings are required woocommerce/woocommerce-blocks#68 2018-04-03 09:56:00 -07:00
claudiulodro 06e76d402a Change block icon woocommerce/woocommerce-blocks#85 2018-04-03 09:22:01 -07:00
claudiulodro bc8e85006c Remove list view woocommerce/woocommerce-blocks#70 2018-04-02 11:46:57 -07:00
James Koster 1393ab769a Update order option labels
Also arranges the options alphabetically
2018-03-19 10:09:23 +00:00
claudiulodro c3354c6363 Price orderby shortcode functionality 2018-03-16 09:43:25 -07:00
claudiulodro 6eba00b97a Remove rand and add price ordering 2018-03-16 09:26:42 -07:00
claudiulodro 24059f109d Orderby selector 2018-03-15 10:20:43 -07:00
Tiago Noronha f238cbbca0 Change cursor for current display and prevent option from being selected 2018-03-15 15:07:09 +00:00
Tiago Noronha c5424350ab Fix inline if statement 2018-03-14 15:15:34 +00:00
Tiago Noronha a92bc86761 Add active state to scope switcher 2018-03-14 15:11:36 +00:00
Claudiu Lodromanean cdf1c7ec6e Merge pull request woocommerce/woocommerce-blocks#65 from woocommerce/fix/bugs
Fix product preview bugs
2018-03-12 10:21:43 -07:00
claudiulodro 25e6666145 Hide grid/list toggle in edit mode and better edit button disabling 2018-03-12 10:20:00 -07:00
Claudiu Lodromanean 4c3470ce18 Merge pull request woocommerce/woocommerce-blocks#57 from woocommerce/improve/specific
Specific Select improvements
2018-03-12 10:04:44 -07:00
claudiulodro 8a7b00b7cc Update tooltip wording 2018-03-12 10:03:51 -07:00
claudiulodro 52c6b37abf Format prices in preview 2018-03-09 11:45:53 -08:00
claudiulodro 8dbc87ee37 Fix layout issues with column/row settings 2018-03-09 11:33:57 -08:00
claudiulodro 397937edd0 Use theme column settings and dont enable top edit buttons if no display selected 2018-03-09 11:04:01 -08:00
claudiulodro faa3309a8e Disable Done button if no display selected 2018-03-09 09:57:08 -08:00
claudiulodro 4c10e3312c Caching for specific select 2018-03-02 11:18:42 -08:00
claudiulodro 72eedda5df Prevent Done button when no selection 2018-03-02 10:05:13 -08:00
claudiulodro 866a634e9d Reset display setting when display changes to prevent e.g. product ids in the category select 2018-03-02 09:39:12 -08:00
claudiulodro 21b0f59efc Each attribute doesnt need a loading indicator 2018-03-02 09:16:28 -08:00
Claudiu Lodromanean bd48a9e397 Update README.md 2018-03-02 08:33:27 -08:00
Tiago Noronha c00f32506c Tweak popover margin 2018-03-02 00:24:45 +00:00
Tiago Noronha 0104cf3c3e Removed fixed attribute item size 2018-03-01 19:43:21 +00:00
Tiago Noronha eae0dbcd1c Remove hidden sidebar hack, fixed width counts, and simple blocks styling 2018-03-01 19:24:12 +00:00
Patrick Rauland 12d3aa6da4 Update README.md
Adding the vision to the readme so people know what this repo is for. :)
2018-02-27 13:54:30 -07:00
Claudiu Lodromanean ee935b6385 Merge pull request woocommerce/woocommerce-blocks#47 from woocommerce/styling-fixes
Styling fixes
2018-02-27 12:50:33 -08:00
Patrick Garman 1c6e583c32 Update README.md 2018-02-27 11:07:49 -06:00
Patrick Garman 193aab84d0 Requires Gutenberg 2.2+
![](http://c.pmgr.mn/R56GOX+)

:D
2018-02-27 11:06:58 -06:00
Tiago Noronha 365d05ee6a Add max-height to individual product search results 2018-02-27 15:41:03 +00:00
Tiago Noronha a011a91057 Align bottom gradient when there are no results 2018-02-27 15:36:20 +00:00
Claudiu Lodromanean 1d041a1c2b Merge pull request woocommerce/woocommerce-blocks#44 from woocommerce/specific-products-styling
Specific products styling
2018-02-27 07:19:39 -08:00
Tiago Noronha 3ce176a8d8 Add background to search results parent div 2018-02-27 15:12:14 +00:00
Tiago Noronha 5a1532d64c Fix max width percentage 2018-02-27 14:47:15 +00:00
Tiago Noronha 5dc8e0fc2a Fix attributes max width 2018-02-27 14:41:35 +00:00
Tiago Noronha 7e4fed3b68 Small screen tweaks 2018-02-27 14:28:48 +00:00
Tiago Noronha 05acb959a9 Restore fade out transition when adding an item from search 2018-02-27 14:08:32 +00:00
Tiago Noronha c0a25d5e78 Styling fixes 2018-02-27 11:56:18 +00:00
Tiago Noronha c486bd4208 Specific products styling 2018-02-26 22:52:12 +00:00
claudiulodro cb5d2be41e Only show column controls when not list layout 2018-02-26 12:21:47 -08:00
claudiulodro add00960dc Fix deprecation notices caused by new gutenberg version 2018-02-26 12:13:08 -08:00
claudiulodro 2d6701b107 Hook settings up to API preview and fix rangecontrol warning 2018-02-26 11:58:19 -08:00
claudiulodro 2d2702e035 Generate shortcodes for all settings 2018-02-26 11:12:21 -08:00
Claudiu Lodromanean 4c8eb59b9a Merge pull request woocommerce/woocommerce-blocks#40 from woocommerce/fix/previewapi
"Fix" preview API call
2018-02-26 10:37:58 -08:00
claudiulodro 6a8c7e02f9 Resolve merge conflicts 2018-02-26 10:26:08 -08:00
Claudiu Lodromanean 3c06393135 Merge pull request woocommerce/woocommerce-blocks#41 from woocommerce/beautify
Updated styling for Categories and Attributes
2018-02-26 09:53:47 -08:00
Tiago Noronha a5c9ba5cad Categories, attributes and general styling 2018-02-26 17:10:45 +00:00
claudiulodro 271276e27b "Fix" preview API call 2018-02-23 12:05:44 -08:00
claudiulodro 6f6246c779 Copy products into new array when updating display setting 2018-02-23 11:38:59 -08:00
claudiulodro fdadfa5753 Resolve merge conflicts 2018-02-23 10:46:25 -08:00
claudiulodro 86419ad130 Close display setting menu when clicked off 2018-02-23 10:22:05 -08:00
Tiago Noronha ba040ffe5e General and menu styling 2018-02-23 14:57:27 +00:00
claudiulodro 23c6acaba2 Remove toggles and order setting 2018-02-22 12:11:53 -08:00
claudiulodro 6f28b2e0b5 Close product search results when clicked off 2018-02-22 11:06:13 -08:00
claudiulodro caf0a09a79 Fade out products when selected 2018-02-22 10:48:34 -08:00
claudiulodro 01f8dd6915 Fix default layout after gberg update 2018-02-22 07:33:18 -08:00
claudiulodro a0f1a63504 Clean up 2018-02-21 11:59:40 -08:00
claudiulodro 8fa05f6dab Previews for attribute selections 2018-02-21 11:53:36 -08:00
claudiulodro 9f03594ae0 Basic attribute filtering 2018-02-21 11:30:47 -08:00
claudiulodro a879ddc36a Attributes data is moving around correctly now 2018-02-21 10:43:21 -08:00
claudiulodro 3dde60703b Bring up to date with master 2018-02-21 10:08:34 -08:00
Tiago Noronha a6b5d546f4 Checkbox indeterminate state and reveal accordions on first laod 2018-02-21 13:58:20 +00:00
claudiulodro 9148e9801b Working attributes select UI 2018-02-20 11:47:50 -08:00
Tiago Noronha 4ca9df7a79 Toggle children when toggling a parent category 2018-02-20 17:00:43 +00:00
claudiulodro d5b02e2996 Resolve merge conflicts 2018-02-19 12:58:13 -08:00
Tiago Noronha ec403f8fc8 Remove top level item margin when accordion is open 2018-02-19 20:19:06 +00:00
Tiago Noronha 8645fe83fc Add method docblock 2018-02-19 20:07:32 +00:00
Tiago Noronha e60c2d2970 Remove redundant parameter 2018-02-19 20:05:59 +00:00
Tiago Noronha 99f3de3098 New design 2018-02-19 19:57:37 +00:00
claudiulodro 9949564a42 Products search and select 2018-02-16 11:40:19 -08:00
claudiulodro f8f01a8e8f Toggle open/close when clicking on settings groups 2018-02-15 11:54:03 -08:00
claudiulodro d94773bd6f Modularize the settings screens 2018-02-15 10:16:14 -08:00
claudiulodro 149a546290 Update menu functionality to match latest designs 2018-02-15 09:42:24 -08:00
claudiulodro 6533d2f166 Set up and move things over for a feature plugin 2018-02-13 11:03:53 -08:00
claudiulodro 22e23e7252 Initialize with readme 2018-02-13 09:32:11 -08:00