Commit Graph

92 Commits

Author SHA1 Message Date
Darren Ethier a1768ad3ec Remove reference to REST API feature plugin. 2020-06-20 08:21:46 -04:00
Albert Juhé Lluveras ae0f3b8200 Update version to 2.8.0-dev 2020-06-09 16:02:13 +02:00
Albert Juhé Lluveras c52d5cad5c Release: 2.7.0 (https://github.com/woocommerce/woocommerce-blocks/pull/2666)
* Add 2.7.0 changelog

* Add 2.7.0 testing steps

* Add woocommerce/woocommerce-blocks#2664 to readme

* Update testing notes to add checklist app creation link

* Add note that 'No shipping methods placeholder when they are all disabled' requires WC 4.3

* Bumping version strings to new version.

* Update readme.txt date

Co-authored-by: Darren Ethier <darren@roughsmootheng.in>
2020-06-09 15:58:19 +02:00
Seghir Nadir 0ac76337d4 Expand Feature flags (https://github.com/woocommerce/woocommerce-blocks/pull/2591)
* Revert "Move blocks to stable flag (https://github.com/woocommerce/woocommerce-blocks/pull/2261)"

This reverts commit a005649ab8.

* migrate to number based gating

* add todo to watch feature flag

* remove flags from build

* change flag in travis

* load flag in right order

* expose flag to js

* simplify flag definition

* more feature flags

* wrap flag in check

* add helper functions

* add helpers in PHP

* fix typo in flag

* move php code to src/domain/package

* tweak if condition

* return flag to travis

* fix broken block name
2020-06-05 20:13:51 +01:00
Albert Juhé Lluveras 104850deb5 Update WC tested version to 4.2 (https://github.com/woocommerce/woocommerce-blocks/pull/2643) 2020-06-05 12:57:25 +02:00
Darren Ethier 401cb20af1 update readme.txt and bump development version 2020-05-27 15:25:20 -04:00
Albert Juhé Lluveras 89b94e7cf2 Bumping version strings to new version. 2020-05-18 17:21:41 +02:00
Mike Jolley 9caf01c354 Update wp.editor references, bump min version support (https://github.com/woocommerce/woocommerce-blocks/pull/2434)
* Update wp.editor references to wp.blockEditor

* Bump min version requirment to 5.2

* Update packages

* Revert "Update packages"

This reverts commit 7565c83a14fe8efd2e7c52473eeeaa5f837fa9fb.

* Undo server side render import changes

* bump min wp version variable
2020-05-13 08:31:49 +12:00
Mike Jolley bb20212390 Fix cached shipping fees on consecutive orders (https://github.com/woocommerce/woocommerce-blocks/pull/2144)
* Rest API - Ensure totals are up to date on init

* Update cart controller to bail if the cart does not need shipping

* Update todos and wc supported version to match status of core

* Add todos

* Fix customer address population

* exit early
2020-04-08 11:23:25 +01:00
Albert Juhé Lluveras bd6426ae84 Update WooCommerce tested version up to 4.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1768) 2020-02-18 14:51:25 +01:00
Albert Juhé Lluveras 48c914ce4d Load core translations for PHP strings that don't have a translation (https://github.com/woocommerce/woocommerce-blocks/pull/1694)
* Load core translations for PHP strings too

* Fix accepted_args

* Make phpcs:ignore more precise
2020-01-31 15:28:18 +01:00
Mike Jolley 2f91921214 Fix package init for WooCommerce 3.9 (https://github.com/woocommerce/woocommerce-blocks/pull/1335)
* Update Domain/Package so plugin file is not required, only a path.

* remove WC_BLOCKS_PLUGIN_FILE constant and add more inline docs

* Update tests

* Remove WC_BLOCKS_PLUGIN_FILE constant
2019-12-09 16:44:28 +00:00
Mike Jolley fc32c0a9ed Update translation handling to include core translations (https://github.com/woocommerce/woocommerce-blocks/pull/1242)
* Remove language files and po2json generation scripts

* Add action filter and function to load core translations

* Use pre_load_script_translations

* Remove script actions

* docblock
2019-11-23 16:28:54 +00:00
Darren Ethier 688d60d9bd update to dev version 2019-11-19 14:08:55 -05:00
Seghir Nadir 7995d56d9f Bumping version strings to new version. 2019-11-19 18:20:22 +01:00
Albert Juhé Lluveras 47e082ef58 Update minimum WooCommerce version to 3.7 (https://github.com/woocommerce/woocommerce-blocks/pull/1181)
* Update minimum WooCommerce version to 3.7

* Update README sentence
2019-11-15 16:32:40 +01:00
Albert Juhé Lluveras 2fde5d6890 Show notices when WP or PHP versions are not met (https://github.com/woocommerce/woocommerce-blocks/pull/1160)
* Show notices when PHP or WP versions are not met

* Update version-changes.sh so it updates versions in woocommerce-gutenberg-products-block.php

* Convert constants to normal variables

* Remove error_log calls

* Remove button with PHP update link

* Show notices only in plugins and WooCommerce pages
2019-11-15 13:33:43 +01:00
Darren Ethier 5f7dfe0ac8 Fix Package::init breakage for including plugin in WC core (https://github.com/woocommerce/woocommerce-blocks/pull/1175)
* fix broken Package init process

* add missing @since tag

* update version bump file to account for file location for version change
2019-11-14 12:19:22 -05:00
Darren Ethier 2b7fad30d4 Update version script to account for changes in version setting on bootstrap (https://github.com/woocommerce/woocommerce-blocks/pull/1158)
* update version change script so it accounts for the new version setting in Package

* fix hardcoded version string in replacement script

* change version registration block

* improve specificity of version string change
2019-11-12 11:26:35 -05:00
Albert Juhé Lluveras 8fe23415ba Update WooCommerce compatibility version to 3.8.0 (https://github.com/woocommerce/woocommerce-blocks/pull/1149)
* Update WooCommerce compatibility version to 3.8.0

* Add PHP compatibility versions

* Fix wrong values for minimum WP and PHP versions

* Remove ending .0
2019-11-11 18:06:03 +01:00
Darren Ethier 57fdb8fe9c Implement PHP DI container and refactor. Also implements new Asset data interface for extendable settings passed to js. (https://github.com/woocommerce/woocommerce-blocks/pull/956)
* Add dependency injection container for blocks

* Add new Pacakge and Bootstrap classes.

- Bootstrap for bootstrapping the plugin.
- Package will replace `src/Package` and added as a dependency for any classes needing package info.

* Introduce AssetsDataRegistry for managing asset data

* refactor existing classes to use new DIC and Asset Data Registry

- this is the bare minimum needed to make this pull viable.
- further refactors will be done in more atomic smaller pulls for easier review.

* add new settings handling and export `@woocommerce/settings` as an alias to wc.wcSettings

- the export is exposed php side on the `wc-settings` handle.

* Remove unnecessary concatenation

* Fix typos and improve doc blocks

* fix php linting issue

* Use better escaping function.

* improve jsdoc spacing

* improve test assertion

* use fully qualified class names in bootstrap

* improve comment block to account for dynamic version string replace on build

* handle exceptions a bit differently

* correct dependency reference in webpack config

* remove blank lines

* fix doc block comment alignment

* Various doc/grammar/spacing fixes from code review.

Co-Authored-By: Albert Juhé Lluveras <contact@albertjuhe.com>

* improve naming, documentation and logic of filter callbacks

While this is intended for sanitization/validation, the callback ultimately provides flexibility for filtering the value before returning or setting in state so `filter` is a better name for this.
2019-09-23 14:07:13 -04:00
Mike Jolley 2c64ff0e98 Master is now 2.5.0-dev 2019-08-29 10:46:11 +01:00
Mike Jolley 0d0474f1e7 Rolling 2.4 release changelog (https://github.com/woocommerce/woocommerce-blocks/pull/720)
* 2.4 placeholder

* Add error handling for API requests to the featured product block.

* changelog

* Update changelog

* Changelog and versions
2019-08-29 10:39:51 +01:00
Mike Jolley 76f93866b3 Master is now `2.4.0-dev` 2019-07-11 11:03:16 +01:00
Mike Jolley 050a9bdcdd Rolling 2.3 release changelog (https://github.com/woocommerce/woocommerce-blocks/pull/672)
* changelog

* Updated changelog

* featured category block readme

* readme

* version bump
2019-07-10 11:38:03 +01:00
Mike Jolley 3678beab97 Move main controllers from assets/php to src (https://github.com/woocommerce/woocommerce-blocks/pull/655)
* Create Package class and use in main plugin file

* Move and refactor library class - split asset methods into new Assets class.

* Add jetpack autoloader dependency

* fix tests

* Update from master

* Update testing framework

* Update package name

* Classname changes from master

* Indent
2019-07-01 13:52:44 +01:00
Mike Jolley 8bc02c3b0c Include blocks api in feature plugin (https://github.com/woocommerce/woocommerce-blocks/pull/628)
* Progress moving endpoints

* Handle rest api registration

* Add tag_operator to blocks API

From https://github.com/woocommerce/woocommerce-gutenberg-products-block/pull/555

* Unit tests

* update travis

* Composer before install

* Travis config

* switch dir running composer

* nodev mode
2019-06-27 11:03:21 +01:00
Kelly Dwan 6471602702 Bump version to 2.3.0-dev (https://github.com/woocommerce/woocommerce-blocks/pull/652) 2019-06-26 15:17:17 -04:00
Kelly Dwan 4c941191ba Release version 2.2.0 (https://github.com/woocommerce/woocommerce-blocks/pull/651)
* Version bump to RC

* Add json files to built package

* Center images in product columns

* Update changelog, bump version to final
2019-06-26 12:37:50 -04:00
Kelly Dwan 1ea00a7fb1 Bump to dev version (https://github.com/woocommerce/woocommerce-blocks/pull/564) 2019-05-15 08:37:48 +01:00
Kelly Dwan 22439f5c12 Release version 2.1.0 (https://github.com/woocommerce/woocommerce-blocks/pull/562)
* Version bump to 2.1.0-rc

* Version bump to 2.1.0

* Add missing period
2019-05-14 13:43:54 -04:00
Kelly Dwan cf14034f9a Cherry-pick branch/2.0.x: Fix conflict with hooks + 3.6, pre 3.6.2 2019-04-22 12:16:53 -04:00
Kelly Dwan 7bac46f286 Move conflict check to init action (https://github.com/woocommerce/woocommerce-blocks/pull/534)
Checking the feature plugin version on `init` ensures the constant is defined before we get to it, which is not guaranteed in `__construct` due to potential different load orders.
2019-04-19 12:33:04 -04:00
Kelly Dwan da1ef3fead Version bump to 2.1.0-dev (https://github.com/woocommerce/woocommerce-blocks/pull/523) 2019-04-10 19:13:09 -04:00
Kelly Dwan 634349ce4b Bump version to 2.0.0-rc3 (https://github.com/woocommerce/woocommerce-blocks/pull/521)
* Update tested versions of WP & WC

* Bump version & update readme
2019-04-08 19:24:02 -04:00
Kelly Dwan 23532701dd Fix fatal with 1.x versions of the feature plugin (https://github.com/woocommerce/woocommerce-blocks/pull/502)
* Add plugin version check to prevent fatal error with core + 1.4

* Version bump
2019-03-22 10:42:01 -04:00
Kelly Dwan 0c85ec1bc7 Add pre-publishing script and bump version to 2.0.0-rc1 (https://github.com/woocommerce/woocommerce-blocks/pull/494)
* Add a `prepack` script to run before publish

This will re-install dependencies, run linting on PHP, CSS, and JS, run the JS tests, and lastly build the production bundle.

* phpcs is now part of `npm run lint` so we don’t need to run it twice

* Version bump to RC1
2019-03-15 12:55:34 -04:00
Kelly Dwan cba3d402b6 Bump the version, update the changelog (https://github.com/woocommerce/woocommerce-blocks/pull/478) 2019-03-06 18:27:37 -05:00
Kelly Dwan 1712f8dbcf Remove blocks API endpoints (https://github.com/woocommerce/woocommerce-blocks/pull/477)
* Remove blocks API endpoints

* Remove API tests
2019-03-06 16:06:02 -05:00
Kelly Dwan 7f78a79698 Set up plugin to be published on npm (https://github.com/woocommerce/woocommerce-blocks/pull/456)
* Move block rendering class into assets

* Update package.json for npm

* Move script registration into publish-able file

* Fix phpcs issue

* Add note about source of file

* Add wcSettings back in

* Rename files to match class name

* Add languages & includes back, so we can use this for publishing zip files

* Update documentation, versions, and add hook for wc components settings

* Update wcSettings output to use fitler

* Update version to `alpha`

* Make block library class into a singleton
2019-03-04 09:30:06 -08:00
Kevin Killingsworth 1288fe1c75 Remove legacy block (https://github.com/woocommerce/woocommerce-blocks/pull/457)
* Remove legacy block

This removes the legacy products block and sets the version to
v2.0.0-dev

* Remove legacy product block test

* Update plugin header version
2019-02-26 14:16:21 -06:00
Kelly Dwan 930602bc8d Remove shortcode tweaks (https://github.com/woocommerce/woocommerce-blocks/pull/449)
* Remove shortcode filter

WC core handles category & attribute IDs as of 3.5

* Bump min requirements to 3.5+
2019-02-22 13:16:46 -05:00
Kelly Dwan 5af66f5de5 Remove the edit-blocks dependency from front end styles (https://github.com/woocommerce/woocommerce-blocks/pull/446) 2019-02-21 14:01:04 -05:00
Kelly Dwan b14a37f7b5 Update CSS build process (https://github.com/woocommerce/woocommerce-blocks/pull/439)
* Split apart editor and frontend styles

* Remove the empty JS files after each build

* Pull out editor and style CSS files into two single, separate files
Rename products-grid CSS, add a “global” front end stylesheet

* Update style registration to use these two new global CSS files

* Merge style JS files into vendors before deleting them

* Remove empty file to fix lint error

* Check for file before reading from it

When watching, not all the file stubs are created, so this errors out.
2019-02-19 16:09:36 -05:00
Kelly Dwan 37fca65ad6 Bump stable tag & plugin dev version (https://github.com/woocommerce/woocommerce-blocks/pull/420) 2019-02-13 15:18:21 -05:00
Kelly Dwan 33cb699ef1 Update changelog, bump version to 1.4.0-rc (https://github.com/woocommerce/woocommerce-blocks/pull/413)
* Update changelog, bump version to 1.4.0-rc

* Update languages to language packs at 100% for v1.3.1

* Update readme with button PR

* Add note about featured product edit mode

* Update version number

* Add a missing bug fix to the changelog
2019-02-13 10:50:40 -05:00
Kelly Dwan 6bf837ff7a Featured Product: Allow to resize the block height (https://github.com/woocommerce/woocommerce-blocks/pull/397)
* Add ResizeableBox wrapper to component to adjust height

* Use the fixed height on the front end display of the block

* Fix display of resize handle

* Allow the default & min featured product heights to be customized by setting a new theme support keyword, `featured_block`.

* Use `min-height` on the front end display, so content is not clipped on smaller screens

* Add a wrapper div to the content, to prevent it from breaking out of the block display
2019-02-05 15:49:24 -05:00
Kevin Killingsworth dc2b4485f4 Add placeholder image for product preview (https://github.com/woocommerce/woocommerce-blocks/pull/382)
* Add placeholder image for product preview

This adds the designated placeholder image url from settings into the
wcSettings global for the blocks to use. Then uses the placeholder url
when a product doesn't have any images.

* Updated based on review notes

Using `$block_settings` instead of `$settings`
Using '' alt tag
Updated snapshot

* Add the placeholder global to test that it passes through to the preview
2019-02-01 10:45:53 -05:00
Kelly Dwan ac96484f7a New block: Products by Attribute (https://github.com/woocommerce/woocommerce-blocks/pull/378)
* Add Products by Attribute block

* Remove attributes property from sharedAttributes

* Add operator control to Products Attribute selector

* Fix default operator queries

* Add the initial “edit mode” placeholder screen

* Style attribute selector better

* Add ‘edit mode’ toggle to toolbar

* Add orderby control
2019-01-30 16:27:56 -05:00
Kelly Dwan d0d2bb4f3b Release 1.3.1 (https://github.com/woocommerce/woocommerce-blocks/pull/346)
* Bump the version number

* Add the changelog to the readme

* Add new strings to the PHP file

* Update stable tag
2019-01-17 15:04:22 -05:00