Commit Graph

3322 Commits

Author SHA1 Message Date
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
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