Skip to content

Commit

Permalink
Merge branch 'develop' into fix/woopay-theming-border-styles
Browse files Browse the repository at this point in the history
  • Loading branch information
malithsen authored Oct 15, 2024
2 parents 6495f0d + 3a0ed10 commit cff7707
Show file tree
Hide file tree
Showing 88 changed files with 593 additions and 256 deletions.
2 changes: 1 addition & 1 deletion .github/actions/e2e/env-setup/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ runs:
shell: bash
run : |
echo "::group::Kill webserver running on port 8084"
sudo fuser -k -n tcp 8084
sudo fuser -k -n tcp 8084 || true
echo "::endgroup::"
# Prepare test environment
Expand Down
5 changes: 5 additions & 0 deletions bin/run-ci-tests-check-coverage.bash
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,11 @@ else
fi

composer self-update && composer install --no-progress
# SVN is needed when installing WP.
if ! [ -x "$(command -v svn)" ]; then
echo 'Installing SVN...'
sudo apt-get install -y subversion
fi
sudo systemctl start mysql.service
bash bin/install-wp-tests.sh woocommerce_test root root localhost $WP_VERSION $WC_VERSION false
echo 'Running the tests...'
Expand Down
7 changes: 7 additions & 0 deletions bin/run-ci-tests.bash
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,13 @@ WCPAY_DIR="$GITHUB_WORKSPACE"
echo 'Updating composer version & Install dependencies...'
composer self-update && composer install --no-progress

# SVN is needed when installing WP.
if ! [ -x "$(command -v svn)" ]; then
echo 'Installing SVN...'
sudo apt-get install -y subversion
fi

# SVN is needed when installing WP.
echo 'Starting MySQL service...'
sudo systemctl start mysql.service

Expand Down
32 changes: 32 additions & 0 deletions changelog.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
*** WooPayments Changelog ***

= 8.3.0 - 2024-10-03 =
* Add - Add compatibility with the buttonAttributes API from Woo Blocks
* Add - Add rate limiter to compatibility data updates
* Add - Add UTC to the date time column header of transactions list page.
* Add - Disable save changes button until a setting has changed.
* Add - Enables Klarna with amount limitations for FR country code.
* Add - Provide locale to Express Checkout Element.
* Add - Redesigned the Payment Method labels for the Blocks Checkout
* Add - Show a notice in Payments > Settings > Deposits if there is an error with the bank account.
* Add - Updates to the Embedded KYC to ensure compatibility with Progressive Onboarding
* Fix - Allow the network saved card payment method setting to be overridden by the `wcpay_force_network_saved_cards` filter
* Fix - Create div container element with JS dynamically.
* Fix - Do not display BNPL methods and PMME when WooPayments is disabled
* Fix - Fixed CC form input fields appearance when using RGBA
* Fix - Fixed invalid appearance warnings
* Fix - Fix event prefix duplication in Tracks events
* Fix - Handle loadError in ECE for Block Context Initialization.
* Fix - Prevent failures and notices related to trying to schedule AS jobs before init.
* Fix - Prevent multi-currency conversion during a REST API request.
* Fix - Remove text color from WooPay component.
* Fix - Rendering Test Model badge only for Credit Card
* Fix - Sync phone changes with WooPay phone field.
* Fix - Update payment methods when manual capture is enabled.
* Update - Default express checkout button label to "Only icon".
* Update - Remove feature flag to make embedded KYC enabled by default
* Update - Some minor styling updates on the Onboarding form.
* Update - Update express payment methods with a title, description and gatewayId
* Dev - fix: prevent multiple instances of WC_Payments_Apple_Pay_Registration
* Dev - Fix gutenberg blueberry focus color
* Dev - Fix progressive onboarding e2e test
* Dev - Some refactors to embedded KYC logic.

= 8.2.2 - 2024-09-24 =
* Fix - Fix WooPay pre-checking place order bug when buying a subscription.

Expand Down
4 changes: 0 additions & 4 deletions changelog/9363-manual-capture-disable-payment-methods

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/add-8522-utc-list-page-csv

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/add-9245-ece-locale

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/add-9462-add-fr-to-klarna-country-list

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/add-express-payment-button-styles

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/add-server-6156-compatibility-data-rate-limiter

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/add-stripe-floating-labels
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Using Floating Labels with Stripe Appearance API for Blocks Checkout
4 changes: 4 additions & 0 deletions changelog/add-support-for-woo-button-controls
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: update

Add support for the style controls for the WooPay button
4 changes: 4 additions & 0 deletions changelog/add-test-mode-badge-classic-checkout
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: add

Add test mode badge to classic checkout and add payment method.
4 changes: 0 additions & 4 deletions changelog/as-fix-react-error-container-not-found

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/as-fix-unnecessary-css-import
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: minor
Type: fix

Stop enqueuing woopay-express-button.css to prevent 404 errors
4 changes: 0 additions & 4 deletions changelog/blocks-checkout-label-design

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/chore-v8.3.0-wc-version-bump

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/dev-9393-embedded-kyc-po

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/dev-bump-wc-tested-up-to-version
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Bump WC tested up to version to 9.3.3.
4 changes: 0 additions & 4 deletions changelog/dev-fix-po-test

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/dev-i4-design-updates

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/dev-improve-unit-tests-handling-of-filters

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/dev-remove-feature-flag

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/dev-session-fixes

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/dev-update-dockerfile-to-allow-more-xdebug-config

This file was deleted.

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-8331-bank-error-notice-settings-deposit

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/fix-9142-classname-optional-default-null
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Migrate WizardTaskItem and CollapsibleBody components to TypeScript, making the className prop optional.

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-9332-default-express-buttons-only-icon

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-9384-invalid-appearence

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-9390-hide-bnpl-pmme-if-gateway-is-disabled

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-9414-unhandled-ece-loaderror

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-9434-action-scheduler-service-schedule-job-init

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/fix-9548-woopay-auto-enable
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Auto-enabled WooPay for new accounts.
5 changes: 5 additions & 0 deletions changelog/fix-add-svn-script
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: fix: add GH action SVN dependency


4 changes: 4 additions & 0 deletions changelog/fix-convert-rgba-text-color
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Converting text color rgba to hex to prevent Stripe warning
4 changes: 0 additions & 4 deletions changelog/fix-dark-mode-stripe-appearance

This file was deleted.

5 changes: 5 additions & 0 deletions changelog/fix-e2e-save-settings-button-disabled
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Significance: patch
Type: dev
Comment: fix: e2e tests w/ save settings button disabled.


4 changes: 4 additions & 0 deletions changelog/fix-multiple-instances-of-wc-payments-in-tests
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

fix: prevent multiple instances of WC_Payments_Apple_Pay_Registration

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-remove-text-color-from-woopay-component

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-sync-woopay-phone-field

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/fix-test-mode-badge-credit-card
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: fix

Rendering Test Model badge only for Credit Card
4 changes: 0 additions & 4 deletions changelog/fix-tracks-event-prefix-duplication

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-update-dark-blueberry-color

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/fix-woopay-pre-checking-save-my-info-place-order

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/fix-wrong-utils-path
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Fixed wrong utils path that would prevent checkout with WooPay OTP
5 changes: 0 additions & 5 deletions changelog/revert-9439-multi-currency-v2

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/update-9305-settings-disable-save-changes-button

This file was deleted.

This file was deleted.

4 changes: 4 additions & 0 deletions changelog/update-9540-payment-task-onboarding-flow
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: update

Payments task onboarding flows skip the Connect page.
4 changes: 0 additions & 4 deletions changelog/update-express-method-titles

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ import classNames from 'classnames';
import WizardTaskContext from './task/context';
import './collapsible-body.scss';

const CollapsibleBody = ( { className, ...restProps } ) => {
const CollapsibleBody: React.FC< React.HTMLAttributes< HTMLDivElement > > = ( {
className,
...restProps
} ) => {
const { isActive } = useContext( WizardTaskContext );

return (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,19 @@ import { Icon, check } from '@wordpress/icons';
import WizardTaskContext from './task/context';
import './task-item.scss';

const WizardTaskItem = ( { children, title, index, className } ) => {
interface WizardTaskItemProps {
children: React.ReactNode;
title: string;
index: number;
className?: string;
}

const WizardTaskItem: React.FC< WizardTaskItemProps > = ( {
children,
title,
index,
className,
} ) => {
const { isCompleted, isActive } = useContext( WizardTaskContext );

return (
Expand All @@ -26,7 +38,7 @@ const WizardTaskItem = ( { children, title, index, className } ) => {
className="wcpay-wizard-task__headline"
// tabindex with value `-1` is necessary to programmatically set the focus
// on an element that is not interactive.
tabIndex="-1"
tabIndex={ -1 }
>
<div className="wcpay-wizard-task__icon-wrapper">
<div className="wcpay-wizard-task__icon-text">
Expand Down
1 change: 1 addition & 0 deletions client/checkout/api/test/index.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,7 @@ const mockAppearance = {
fontFamily: undefined,
fontSizeBase: undefined,
},
labels: 'above',
};

describe( 'WCPayAPI', () => {
Expand Down
2 changes: 1 addition & 1 deletion client/checkout/blocks/payment-elements.js
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ const PaymentElements = ( { api, ...props } ) => {
useEffect( () => {
async function generateUPEAppearance() {
// Generate UPE input styles.
let upeAppearance = getAppearance( 'blocks_checkout' );
let upeAppearance = getAppearance( 'blocks_checkout', false, true );
upeAppearance = await api.saveUPEAppearance(
upeAppearance,
'blocks_checkout'
Expand Down
Loading

0 comments on commit cff7707

Please sign in to comment.