Skip to content

Cover letter for fraudulent reason #10823

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 54 commits into from
Jun 6, 2025
Merged
Show file tree
Hide file tree
Changes from 41 commits
Commits
Show all changes
54 commits
Select commit Hold shift + click to select a range
a04fc87
layout and basic style
rtio May 29, 2025
067dd89
styles and fixing navigation
rtio May 29, 2025
f196005
add main logic
rtio May 29, 2025
599d06c
fix fields not appearing
rtio May 29, 2025
d3c23c1
wrap new component
rtio May 30, 2025
b68eb39
add new field to the order
rtio May 30, 2025
b4cc912
add new components
rtio May 30, 2025
7d11358
update the main page
rtio May 30, 2025
2557045
lint
rtio May 30, 2025
7cbf356
add cover letter
rtio May 31, 2025
a1ef173
add shipping details
rtio May 31, 2025
8c70f39
fix file upload controls
rtio May 31, 2025
4d6ffc3
update main page to use the new components
rtio May 31, 2025
2147b55
last fixes and tests
rtio May 31, 2025
95e0f40
use customer link
rtio May 31, 2025
87665b8
lint
rtio May 31, 2025
a475238
changelog
rtio May 31, 2025
1ce0c14
Merge branch 'develop' into woopmnt-5021-add-missing-components-for-t…
rtio May 31, 2025
2b168c7
save for later
rtio Jun 2, 2025
711a368
fix remove file
rtio Jun 2, 2025
3bf0055
fix save product type
rtio Jun 2, 2025
652ac5f
fix test
rtio Jun 3, 2025
fd166ed
add more state edge cases for the cover letter
rtio Jun 3, 2025
b68599e
fixing tests
rtio Jun 3, 2025
2478b15
pull data from hook
rtio Jun 3, 2025
06bd9c9
fix the address thing, re-generate the cover letter if the content is…
rtio Jun 4, 2025
88f6535
Merge branch 'develop' into woopmnt-5021-add-missing-components-for-t…
rtio Jun 4, 2025
95c4a82
add visual feedback to upload button
rtio Jun 4, 2025
f6c62cf
Merge branch 'woopmnt-5021-add-missing-components-for-the-evidence-fo…
rtio Jun 4, 2025
f81ed89
Merge branch 'woopmnt-5021-add-missing-components-for-the-evidence-fo…
rtio Jun 4, 2025
b790d10
Merge branch 'woopmnt-5025-add-logic-to-save-for-later' into woopmnt-…
rtio Jun 4, 2025
f832be8
localized texts
rtio Jun 4, 2025
d0920c4
change event record
rtio Jun 4, 2025
47a93cc
do not use dash
rtio Jun 4, 2025
8b7a713
Update client/disputes/new-evidence/shipping-details.tsx
rtio Jun 4, 2025
1e7f42e
fix non space on shipping address
rtio Jun 4, 2025
1a14b45
oops
rtio Jun 4, 2025
fe9f934
Merge branch 'woopmnt-5025-add-logic-to-save-for-later' into woopmnt-…
rtio Jun 4, 2025
b871e61
fix test
rtio Jun 4, 2025
e521352
Merge branch 'woopmnt-5025-add-logic-to-save-for-later' into woopmnt-…
rtio Jun 4, 2025
4f807fd
change event call
rtio Jun 4, 2025
2d5df61
fix charset
rtio Jun 5, 2025
8602f12
fix file not being removed
rtio Jun 5, 2025
b13e99d
fix cover letter notice not behaving properlly and upload removal
rtio Jun 5, 2025
f974bbd
keep this
rtio Jun 5, 2025
81b467c
set type date
rtio Jun 5, 2025
27a81a8
Merge branch 'woopmnt-5021-add-missing-components-for-the-evidence-fo…
rtio Jun 5, 2025
b4ef404
fix test
rtio Jun 5, 2025
c70765f
Merge branch 'woopmnt-5025-add-logic-to-save-for-later' into woopmnt-…
rtio Jun 5, 2025
386b350
Merge branch 'develop' into woopmnt-5028-cover-letter-fraudulent
rtio Jun 6, 2025
c3e4d73
lint
rtio Jun 6, 2025
5bcead7
Merge branch 'woopmnt-5028-cover-letter-fraudulent' of github.com:Aut…
rtio Jun 6, 2025
001b5fd
changelog
rtio Jun 6, 2025
5f4594a
Merge branch 'develop' into woopmnt-5028-cover-letter-fraudulent
rtio Jun 6, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions changelog/add-components-for-the-new-evidence-screen
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
Significance: patch
Type: dev

Add the components that will be used on the evidence form
19 changes: 19 additions & 0 deletions client/components/wp-components-wrapped/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ import {
SelectControl as BundledWordPressComponentsSelectControl,
TextControl as BundledWordPressComponentsTextControl,
TextareaControl as BundledWordPressComponentsTextareaControl,
FormFileUpload as BundledWordPressComponentsFormFileUpload,
} from '@wordpress/components';
import BundledWordPressComponentsCardNotice from 'wcpay/components/card-notice';

Expand Down Expand Up @@ -391,6 +392,23 @@ const WrappedTextareaControl = (
return <TextareaControl { ...rest } />;
};

const WrappedFormFileUpload = (
props: ComponentProps< typeof BundledWordPressComponentsFormFileUpload > & {
useBundledComponent?: boolean;
}
) => {
const { useBundledComponent, ...rest } = props;
const context = useContext( WordPressComponentsContext );

if ( ! context || useBundledComponent ) {
return <BundledWordPressComponentsFormFileUpload { ...rest } />;
}

const { FormFileUpload } = context;

return <FormFileUpload { ...rest } />;
};

export {
WrappedCard as Card,
WrappedCardBody as CardBody,
Expand All @@ -413,4 +431,5 @@ export {
WrappedSelectControl as SelectControl,
WrappedTextControl as TextControl,
WrappedTextareaControl as TextareaControl,
WrappedFormFileUpload as FormFileUpload,
};
2 changes: 2 additions & 0 deletions client/data/payment-intents/test/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ export const chargeMock: Charge = {
customer_name: '',
customer_email: '',
subscriptions: [],
ip_address: '127.0.0.1',
},
outcome: {
network_status: 'approved_by_network',
Expand Down Expand Up @@ -100,6 +101,7 @@ export const paymentIntentMock: PaymentIntent = {
customer_name: '',
customer_email: '',
fraud_meta_box_type: 'review',
ip_address: '127.0.0.1',
},
};

Expand Down
Loading