Skip to content

Commit 6470314

Browse files
oaratovskyioaratovskyi
andauthored
Refine "Temporarily Suspended" language, statuses and tooltip copy (#10853)
Co-authored-by: oaratovskyi <[email protected]>
1 parent 8e411ff commit 6470314

File tree

6 files changed

+14
-21
lines changed

6 files changed

+14
-21
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Significance: minor
2+
Type: update
3+
4+
Refine "Temporarily Suspended" language, statuses and tooltip copy

client/components/account-status/index.js

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -118,10 +118,6 @@ const AccountStatusDetails = ( props ) => {
118118
status={ accountStatus.deposits?.status }
119119
interval={ accountStatus.deposits?.interval }
120120
accountStatus={ accountStatus.status }
121-
poEnabled={ accountStatus.progressiveOnboarding.isEnabled }
122-
poComplete={
123-
accountStatus.progressiveOnboarding.isComplete
124-
}
125121
iconSize={ 24 }
126122
/>
127123
</AccountStatusItem>

client/components/account-status/status-chip.js

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ import Chip from 'components/chip';
1212
import './style.scss';
1313

1414
const StatusChip = ( props ) => {
15-
const { accountStatus, poEnabled, poComplete } = props;
15+
const { accountStatus } = props;
1616

1717
let description = __( 'Unknown', 'woocommerce-payments' );
1818
let type = 'light';
@@ -27,10 +27,7 @@ const StatusChip = ( props ) => {
2727
} else if ( accountStatus === 'restricted_soon' ) {
2828
description = __( 'Restricted soon', 'woocommerce-payments' );
2929
type = 'warning';
30-
} else if (
31-
accountStatus === 'pending_verification' ||
32-
( poEnabled && ! poComplete && accountStatus === 'restricted' )
33-
) {
30+
} else if ( accountStatus === 'pending_verification' ) {
3431
description = __( 'Pending', 'woocommerce-payments' );
3532
type = 'light';
3633
tooltip = __(

client/components/deposits-status/index.tsx

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ const DepositsStatusSuspended: React.FC< DepositsStatusProps > = ( {
6767
} ) => {
6868
const description =
6969
/* translators: <a> - suspended accounts FAQ URL */
70-
__( 'Temporarily suspended', 'woocommerce-payments' );
70+
__( 'Under Review', 'woocommerce-payments' );
7171

7272
return (
7373
<span className={ 'account-status__info__yellow' }>
@@ -85,7 +85,7 @@ const DepositsStatusSuspended: React.FC< DepositsStatusProps > = ( {
8585
/* translators: 1: WooPayments */
8686
__(
8787
// eslint-disable-next-line max-len
88-
'After the information review, your account was temporarily suspended. {{learnMoreLink}}Learn more{{/learnMoreLink}}',
88+
'While the account is under review payouts may remain suspended. {{learnMoreLink}}Learn more{{/learnMoreLink}}',
8989
'woocommerce-payments'
9090
),
9191
'WooPayments'
@@ -134,20 +134,16 @@ const DepositsStatus: React.FC< Props > = ( {
134134
status,
135135
interval,
136136
accountStatus,
137-
poEnabled,
138-
poComplete,
139137
iconSize,
140138
} ) => {
141-
const isPoInProgress = poEnabled && ! poComplete;
142-
143139
if ( status === 'blocked' || accountStatus === 'under_review' ) {
144140
return (
145141
<DepositsStatusSuspended
146142
iconSize={ iconSize }
147143
interval={ interval }
148144
/>
149145
);
150-
} else if ( accountStatus === 'pending_verification' || isPoInProgress ) {
146+
} else if ( accountStatus === 'pending_verification' ) {
151147
return (
152148
<DepositsStatusPending
153149
iconSize={ iconSize }

client/components/deposits-status/test/__snapshots__/index.js.snap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ exports[`DepositsStatus renders blocked status 1`] = `
1818
/>
1919
</g>
2020
</svg>
21-
Temporarily suspended
21+
Under Review
2222
<button
2323
class="wcpay-tooltip__content-wrapper wcpay-tooltip--click__content-wrapper"
2424
type="button"
@@ -69,7 +69,7 @@ exports[`DepositsStatus renders blocked status 2`] = `
6969
/>
7070
</g>
7171
</svg>
72-
Temporarily suspended
72+
Under Review
7373
<button
7474
class="wcpay-tooltip__content-wrapper wcpay-tooltip--click__content-wrapper"
7575
type="button"
@@ -212,7 +212,7 @@ exports[`DepositsStatus renders pending verification status 1`] = `
212212
/>
213213
</g>
214214
</svg>
215-
Temporarily suspended
215+
Under Review
216216
<button
217217
class="wcpay-tooltip__content-wrapper wcpay-tooltip--click__content-wrapper"
218218
type="button"

client/components/deposits-status/test/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ describe( 'DepositsStatus', () => {
5454
}
5555
);
5656

57-
expect( await findByText( /Temporarily suspended/i ) ).toBeVisible();
57+
expect( await findByText( /Under Review/i ) ).toBeVisible();
5858
expect( depositsStatus ).toMatchSnapshot();
5959
} );
6060

@@ -67,7 +67,7 @@ describe( 'DepositsStatus', () => {
6767
}
6868
);
6969

70-
expect( await findByText( /Temporarily suspended/i ) ).toBeVisible();
70+
expect( await findByText( /Under Review/i ) ).toBeVisible();
7171
expect( depositsStatus ).toMatchSnapshot();
7272
} );
7373

0 commit comments

Comments
 (0)