Skip to content

Commit

Permalink
Merge branch 'develop' into update/remove-feature-flag-payment-overvi…
Browse files Browse the repository at this point in the history
…ew-widget
  • Loading branch information
Jinksi authored Aug 13, 2024
2 parents 537a384 + 788d571 commit e467a8f
Show file tree
Hide file tree
Showing 133 changed files with 4,912 additions and 1,768 deletions.
6 changes: 3 additions & 3 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -81,15 +81,15 @@ Docker can be used to setup a local development environment:

* Ensure Docker is installed ([Docker Desktop](https://www.docker.com/products/docker-desktop) is a good option for developers)
* Follow the steps above in the Development section to build the project's JavaScript
* From the root of this project, run `docker-compose up -d`
* From the root of this project, run `docker compose up -d`
* Once <http://localhost:8082> displays the WordPress install screen, run `./bin/docker-setup.sh`
* The fully configured site can now be accessed on <http://localhost:8082>
* The prompt to run the setup wizard can be dismissed unless there is something specific you would like to configure

To shutdown:

* Use `docker-compose down` to stop the running containers
* The state of the environment will be persisted in `docker/wordpress` and `docker/data`. To restart the environment simply run `docker-compose up` again. To start afresh, delete these folders and let `docker-compose up` re-create them.
* Use `docker compose down` to stop the running containers
* The state of the environment will be persisted in `docker/wordpress` and `docker/data`. To restart the environment simply run `docker compose up` again. To start afresh, delete these folders and let `docker compose up` re-create them.

IDE setup:

Expand Down
Binary file removed assets/images/bnpl_announcement_afterpay.png
Binary file not shown.
Binary file removed assets/images/bnpl_announcement_clearpay.png
Binary file not shown.
4 changes: 2 additions & 2 deletions bin/check-test-coverage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ fi

echo "Installing the test environment..."

docker-compose exec -u www-data wordpress \
docker compose exec -u www-data wordpress \
/var/www/html/wp-content/plugins/woocommerce-payments/bin/install-wp-tests.sh

echo "Checking coverage..."

docker-compose exec -u www-data wordpress \
docker compose exec -u www-data wordpress \
php -d xdebug.remote_autostart=on \
/var/www/html/wp-content/plugins/woocommerce-payments/vendor/bin/phpunit \
--configuration "/var/www/html/wp-content/plugins/woocommerce-payments/$CONFIGURATION_FILE" \
Expand Down
2 changes: 1 addition & 1 deletion bin/cli.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ fi

command=${command:-bash}

docker-compose exec -u ${user} wordpress ${command}
docker compose exec -u ${user} wordpress ${command}
6 changes: 3 additions & 3 deletions bin/run-tests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,21 +15,21 @@ done

echo "Installing the test environment..."

docker-compose exec -u www-data wordpress \
docker compose exec -u www-data wordpress \
/var/www/html/wp-content/plugins/woocommerce-payments/bin/install-wp-tests.sh

if $WATCH_FLAG; then
echo "Running the tests on watch mode..."

# Change directory to WooCommerce Payments' root in order to have access to .phpunit-watcher.yml
docker-compose exec -u www-data wordpress bash -c \
docker compose exec -u www-data wordpress bash -c \
"cd /var/www/html/wp-content/plugins/woocommerce-payments && \
php -d xdebug.remote_autostart=on \
./vendor/bin/phpunit-watcher watch --configuration ./phpunit.xml.dist $*"
else
echo "Running the tests..."

docker-compose exec -u www-data wordpress \
docker compose exec -u www-data wordpress \
php -d xdebug.remote_autostart=on \
/var/www/html/wp-content/plugins/woocommerce-payments/vendor/bin/phpunit \
--configuration /var/www/html/wp-content/plugins/woocommerce-payments/phpunit.xml.dist \
Expand Down
5 changes: 5 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
*** WooPayments Changelog ***

= 8.0.2 - 2024-08-07 =
* Fix - Add opt-in checks to prevent blocking customers using other payment methods.
* Fix - Fix error in Express Checkout Element use with coupons.
* Fix - Only enable Direct Checkout when WooPayments gateway is enabled.

= 8.0.1 - 2024-07-31 =
* Fix - Reverts changes related to Direct Checkout that broke the PayPal extension.

Expand Down
5 changes: 5 additions & 0 deletions changelog/Update URLs and anchors.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: PR updates URLs but does not resolve any 404 errors or other functionality. Very little changes that an end-user will notice.


4 changes: 4 additions & 0 deletions changelog/add-get-button-styles-by-selectors
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: add

Add button rules to appearance
4 changes: 4 additions & 0 deletions changelog/add-get-link-styles-by-selectors
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: add

Add link rules to appearance
4 changes: 4 additions & 0 deletions changelog/as-fix-error-cart-block
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Fix uncaught error on the block based Cart page when WooPayments is disabled.
4 changes: 4 additions & 0 deletions changelog/as-fix-track-event
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Do not enqueue Cart scripts if WooPayments is not enabled
5 changes: 5 additions & 0 deletions changelog/chore-remove-bnpl-april-announcement
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: update
Comment: chore: remove BNPL April announcement


5 changes: 5 additions & 0 deletions changelog/chore-rename-test
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: chore: rename test file


4 changes: 4 additions & 0 deletions changelog/dev-bump-wc-version-9-2-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Bump WC tested up to version to 9.2.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Added better error message when mandate is invalid.
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Fix onboarding redirect loop when starting from Woo Settings Payments.
5 changes: 5 additions & 0 deletions changelog/fix-9145-tokenized-cart-customer-id-mismatch
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Fix for unreleased tokenized cart feature


4 changes: 4 additions & 0 deletions changelog/fix-9205-use-docker-compose-v2-commands
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Migrate to Docker Compose V2 for test runner environment setup scripts
5 changes: 5 additions & 0 deletions changelog/fix-9214-missing-null-check
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: Added a simple null check for an edge case.


4 changes: 4 additions & 0 deletions changelog/fix-remove-console-warns
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: dev

Remove unnecessary console.warn statements added in #9121.
5 changes: 5 additions & 0 deletions changelog/fix-tokenized-cart-prbs-entities
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: fix
Comment: fix: tokenized cart PRB products w/ special characters


5 changes: 5 additions & 0 deletions changelog/revert-ipp-missing-failure-webhooks
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: This change reverts a previously merged PR that needs to wait for changes in the mobile app.


4 changes: 4 additions & 0 deletions changelog/update-9193-outdated-express-checkout-notification
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

Update outdated express checkout settings notification.
105 changes: 0 additions & 105 deletions client/bnpl-announcement/index.js

This file was deleted.

68 changes: 0 additions & 68 deletions client/bnpl-announcement/style.scss

This file was deleted.

2 changes: 1 addition & 1 deletion client/cart/blocks/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getUPEConfig } from 'wcpay/utils/checkout';

const { registerPlugin } = window.wp.plugins;

const paymentMethods = getUPEConfig( 'paymentMethodsConfig' );
const paymentMethods = getUPEConfig( 'paymentMethodsConfig' ) || {};

const BNPL_PAYMENT_METHODS = {
AFFIRM: 'affirm',
Expand Down
2 changes: 2 additions & 0 deletions client/checkout/api/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,8 @@ const mockAppearance = {
'.Text': {},
'.Text--redirect': {},
'.Heading': {},
'.Button': {},
'.Link': {},
},
theme: 'stripe',
variables: {
Expand Down
Loading

0 comments on commit e467a8f

Please sign in to comment.