Commit Graph

229 Commits

Author SHA1 Message Date
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
Claudiu Lodromanean ded9322d15 Merge pull request woocommerce/woocommerce-blocks#107 from woocommerce/fix/106
Refactor out withAPIData usage
2018-09-07 08:46:27 -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
Claudiu Lodromanean 0e07f05d30 Merge pull request woocommerce/woocommerce-blocks#102 from ajitbohra/patch-1
Add link to wordpress.org
2018-08-22 10:13:55 -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