-
Notifications
You must be signed in to change notification settings - Fork 69
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
Show dispute details on the transaction details screen when a dispute is awaiting response and past due #7231
Show dispute details on the transaction details screen when a dispute is awaiting response and past due #7231
Conversation
@@ -34,33 +33,25 @@ const DisputeAwaitingResponseDetails: React.FC< Props > = ( { dispute } ) => { | |||
<div className="transaction-details-dispute-details-wrapper"> | |||
<Card> | |||
<CardBody className="transaction-details-dispute-details-body"> | |||
{ isAwaitingResponse( dispute.status ) && |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Note: isAwaitingResponse
is handled in the parent component:
woocommerce-payments/client/payment-details/summary/index.tsx
Lines 381 to 391 in 050ee03
{ isDisputeOnTransactionPageEnabled && charge.dispute && ( | |
<> | |
{ isAwaitingResponse( charge.dispute.status ) ? ( | |
<DisputeAwaitingResponseDetails | |
dispute={ charge.dispute } | |
/> | |
) : ( | |
<DisputeResolutionFooter dispute={ charge.dispute } /> | |
) } | |
</> | |
) } |
Test the buildOption 1. Jetpack Beta
Option 2. Jurassic Ninja - available for logged-in A12s🚀 Launch a JN site with this branch 🚀 ℹ️ Install this Tampermonkey script to get more options. Build info:
Note: the build is updated when a new commit is pushed to this PR. |
Size Change: +3 B (0%) Total Size: 1.41 MB
ℹ️ View Unchanged
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since https://github.com/Automattic/woocommerce-payments/pull/7206/files#r1325199048 copied DisputeSummaryRow
's 'smart day' and this PR changes that behavior, I think the change (showing Past due
) should also be applied to DisputeSteps
(awaiting for #7206 to be merged).
Other than that, this PR looks good and useful. I have been seeing the empty rectangle for the past due disputes on my local test store.
We can address this in a subsequent issue/PR to allow us to test this PR in the release testing today. New issue created for this: #7255 |
Fixes #7229
Changes proposed in this Pull Request
This PR allows the Transaction Details dispute details to be rendered if a dispute is awaiting a response but is past its
due_by
date.It is uncertain whether this could occur for accounts in live mode since a dispute will move to a
won
/lost
/under_review
status once thedue_by
date has passed.This case does occur when in test mode since disputes created in test mode remain as
needs_reponse
/warning_needs_response
status until explicit action is taken (challenge or accept), even if it is past thedue_by
date.Screenshots
Current Transaction Details screen when a dispute is awaiting a response,
due_by
in the past:Suggested Transaction Details screen when a dispute is awaiting a response,
due_by
in the past:Note the (Past due) text.
Testing instructions
update_option( '_wcpay_feature_dispute_on_transaction_page', '1' );
in WP Console or by modifying your database tablewp_options
directly.4000000000000259
at checkout.trunk
, you will not see any dispute details, even though the dispute's status isNeeds response
.npm run changelog
to add a changelog file, choosepatch
to leave it empty if the change is not significant. You can add multiple changelog files in one PR by running this command a few times.Post merge