-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'develop' into add-more-typescript-guidelines
- Loading branch information
Showing
54 changed files
with
1,302 additions
and
200 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: add | ||
|
||
Add a task on WooCommerce Home page to remind accounts operating in sandbox mode to set up live payments. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: add | ||
|
||
Adding a tracking event for external redirects to finish setup and start receiving deposits. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: dev | ||
|
||
Add VariableAnalysis sniffs for better ergonomics around unused and undefined variables |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: add | ||
|
||
feat: BNPL April announcement. |
4 changes: 4 additions & 0 deletions
4
changelog/fix-8583-sync-discount-calculation-with-server-processing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: fix | ||
|
||
Sync discount brakedown with how server processes it |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: fix | ||
|
||
Remove extra WooPay icon on connect page |
5 changes: 5 additions & 0 deletions
5
changelog/fix-infinite-recursive-call-for-price-decimal-separator-filter-2
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: fix | ||
Comment: This supplements a previous fix | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: fix | ||
|
||
Defensive check for cart block PMME which hasn't yet been deployed. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: dev | ||
|
||
Changes are not user facing, behind a feature flag. Refactor - tooltip component flattened in place, instead of calling it from a separate file. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: minor | ||
Type: update | ||
|
||
Reduce the visual footprint of the sandbox mode notice. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
Significance: patch | ||
Type: update | ||
|
||
Update Discover and Diners logos |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
Significance: patch | ||
Type: dev | ||
Comment: Update "Proceed to checkout" tracking to take the skip_woopay cookie into account. | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,99 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import React, { useEffect, useState } from 'react'; | ||
import ReactDOM from 'react-dom'; | ||
import { __ } from '@wordpress/i18n'; | ||
import { Button, ExternalLink } from '@wordpress/components'; | ||
import { recordEvent } from 'tracks'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import './style.scss'; | ||
import ConfirmationModal from 'wcpay/components/confirmation-modal'; | ||
import AfterpayBanner from 'assets/images/bnpl_announcement_afterpay.png?asset'; | ||
import ClearpayBanner from 'assets/images/bnpl_announcement_clearpay.png?asset'; | ||
|
||
const BannerIcon = | ||
window.wcpayBnplAnnouncement?.accountCountry === 'GB' | ||
? ClearpayBanner | ||
: AfterpayBanner; | ||
|
||
const Dialog = () => { | ||
useEffect( () => { | ||
recordEvent( 'wcpay_bnpl_april15_feature_announcement_view' ); | ||
}, [] ); | ||
|
||
const [ isHidden, setIsHidden ] = useState( false ); | ||
|
||
if ( isHidden ) return null; | ||
|
||
return ( | ||
<ConfirmationModal | ||
aria={ { labelledby: 'wcpay-bnpl-announcement' } } | ||
className="wcpay-bnpl-announcement" | ||
onRequestClose={ () => setIsHidden( true ) } | ||
actions={ | ||
<> | ||
<ExternalLink | ||
onClick={ () => { | ||
recordEvent( | ||
'wcpay_bnpl_april15_feature_announcement_learn_click' | ||
); | ||
setIsHidden( true ); | ||
} } | ||
href="https://woo.com/document/woopayments/payment-methods/buy-now-pay-later/" | ||
> | ||
{ __( 'Learn more', 'woocommerce-payments' ) } | ||
</ExternalLink> | ||
<Button | ||
variant="primary" | ||
onClick={ () => { | ||
recordEvent( | ||
'wcpay_bnpl_april15_feature_announcement_enable_click' | ||
); | ||
setIsHidden( true ); | ||
} } | ||
> | ||
{ __( 'Get started', 'woocommerce-payments' ) } | ||
</Button> | ||
</> | ||
} | ||
> | ||
<div className="wcpay-bnpl-announcement__payment-icons"> | ||
<img | ||
src={ BannerIcon } | ||
alt={ __( | ||
'Buy now, pay later is here', | ||
'woocommerce-payments' | ||
) } | ||
></img> | ||
</div> | ||
<h1 id="wcpay-bnpl-announcement"> | ||
{ __( 'Buy now, pay later is here', 'woocommerce-payments' ) } | ||
</h1> | ||
<p> | ||
{ __( | ||
// eslint-disable-next-line max-len | ||
'Boost conversions and give your shoppers additional buying power, with buy now, pay later — now available in your WooPayments dashboard.*', | ||
'woocommerce-payments' | ||
) } | ||
</p> | ||
<p className="wcpay-bnpl-announcement__fine-print"> | ||
{ __( | ||
'*Subject to country availability', | ||
'woocommerce-payments' | ||
) } | ||
</p> | ||
</ConfirmationModal> | ||
); | ||
}; | ||
|
||
const container = document.getElementById( 'wpwrap' ); | ||
if ( container ) { | ||
const dialogWrapper = document.createElement( 'div' ); | ||
container.appendChild( dialogWrapper ); | ||
|
||
ReactDOM.createRoot( dialogWrapper ).render( <Dialog /> ); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
.wcpay-bnpl-announcement { | ||
&.wcpay-confirmation-modal.wcpay-confirmation-modal { | ||
margin-top: auto; | ||
height: auto; | ||
|
||
@media screen and ( min-width: 600px ) { | ||
max-width: 400px; | ||
} | ||
|
||
.components-modal__header { | ||
padding: 0; | ||
|
||
.components-button.has-icon { | ||
position: absolute; | ||
top: 18px; | ||
left: auto; | ||
right: 18px; | ||
} | ||
} | ||
|
||
.components-modal__content { | ||
padding: 0 20px 100px; | ||
margin-top: 60px; | ||
|
||
@media screen and ( min-width: 600px ) { | ||
padding: 0 35px 24px; | ||
} | ||
} | ||
|
||
.wcpay-confirmation-modal__separator { | ||
opacity: 0; | ||
} | ||
} | ||
|
||
&__payment-icons { | ||
display: flex; | ||
justify-content: center; | ||
align-items: flex-start; | ||
flex-wrap: wrap; | ||
gap: 17px; | ||
margin-bottom: 20px; | ||
|
||
.payment-method__icon { | ||
margin-right: 0; | ||
max-height: 35px; | ||
outline: none; | ||
|
||
&[alt='Affirm'] { | ||
max-height: 30px; | ||
} | ||
} | ||
} | ||
|
||
h1 { | ||
text-align: left; | ||
width: 100%; | ||
} | ||
|
||
p { | ||
text-align: left; | ||
} | ||
|
||
.components-external-link { | ||
padding: 6px 12px; | ||
align-items: center; | ||
display: flex; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.