-
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 fix/fallback-to-cc-when-hiding-pm
- Loading branch information
Showing
23 changed files
with
374 additions
and
85 deletions.
There are no files selected for viewing
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 feedback survey modal upon deactivation. |
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: add | ||
Comment: Behind feature flag. Adds few changes to support displaying multiple currencies for Payment Activity Widget. | ||
|
||
|
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: Fix Klarna E2E Tests. | ||
|
||
|
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: fix | ||
|
||
Fix input-specific credit card errors. |
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
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
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,50 @@ | ||
/** | ||
* External dependencies | ||
*/ | ||
import React, { useState } from 'react'; | ||
import { __ } from '@wordpress/i18n'; | ||
import { Modal } from '@wordpress/components'; | ||
|
||
/** | ||
* Internal dependencies | ||
*/ | ||
import './style.scss'; | ||
import Loadable from 'wcpay/components/loadable'; | ||
import WooPaymentsIcon from 'assets/images/woopayments.svg?asset'; | ||
|
||
const PluginDisableSurvey = ( { onRequestClose } ) => { | ||
const [ isLoading, setIsLoading ] = useState( true ); | ||
|
||
return ( | ||
<Modal | ||
title={ | ||
<img | ||
src={ WooPaymentsIcon } | ||
alt={ __( 'WooPayments Logo', 'woocommerce-payments' ) } | ||
className="woopayments-disable-survey-logo" | ||
/> | ||
} | ||
isDismissible={ true } | ||
shouldCloseOnClickOutside={ false } // Should be false because of the iframe. | ||
shouldCloseOnEsc={ true } | ||
onRequestClose={ onRequestClose } | ||
className="woopayments-disable-survey" | ||
> | ||
<Loadable isLoading={ isLoading }> | ||
<iframe | ||
title={ __( | ||
'WooPayments Disable Survey', | ||
'woocommerce-payments' | ||
) } | ||
src="https://automattic.survey.fm/woopayments-exit-feedback" | ||
className="woopayments-disable-survey-iframe" | ||
onLoad={ () => { | ||
setIsLoading( false ); | ||
} } | ||
/> | ||
</Loadable> | ||
</Modal> | ||
); | ||
}; | ||
|
||
export default PluginDisableSurvey; |
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,38 @@ | ||
.woopayments-disable-survey { | ||
@media ( min-width: 960px ) { | ||
max-height: calc( 100% - 120px ); | ||
} | ||
|
||
.components-modal__content { | ||
padding: 0; | ||
overflow: hidden; | ||
} | ||
|
||
&-iframe { | ||
width: 100%; | ||
height: 100%; | ||
|
||
@media ( min-width: 600px ) { | ||
width: 600px; | ||
height: 650px; | ||
} | ||
} | ||
|
||
&-logo { | ||
height: 40px; | ||
} | ||
} | ||
|
||
/** | ||
* There is a bug with the Modal component that when the close X is hovered or focused, a tooltip | ||
* appears outside of the view of the modal causing scrollbars. This is a work around to hide the | ||
* tooltip until the bug is fixed. | ||
* TODO: remove rule ones bug is closed | ||
* https://github.com/WordPress/gutenberg/issues/15434 | ||
*/ | ||
.components-modal__content | ||
.components-modal__header | ||
.components-button | ||
.components-tooltip { | ||
display: none; | ||
} |
Oops, something went wrong.