-
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
Enable transaction dispute details feature for all merchants (remove feature flag) #7365
Merged
Jinksi
merged 10 commits into
develop
from
add/7289-remove-transaction-dispute-details-feature-flag
Oct 5, 2023
Merged
Changes from all commits
Commits
Show all changes
10 commits
Select commit
Hold shift + click to select a range
266fe7d
Remove transaction dispute details feature flag to enable feature by …
Jinksi 7cc4546
Remove redundant payment details summary test
Jinksi 868ab80
Group dispute-related payment details summary tests
Jinksi 6c40af9
Update snapshot for dispute-reversal test
Jinksi c85be9b
Remove unused import
Jinksi 28e14a5
Fix PHPCS errors
Jinksi 030262e
Merge branch 'develop' into add/7289-remove-transaction-dispute-detai…
Jinksi 171fe63
Add changelog entry
Jinksi 520a379
Merge branch 'develop' into add/7289-remove-transaction-dispute-detai…
Jinksi bebbecd
Merge branch 'develop' into add/7289-remove-transaction-dispute-detai…
Jinksi File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
changelog/add-7289-remove-transaction-dispute-details-feature-flag
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: major | ||
Type: add | ||
|
||
Display dispute information, recommended resolution steps, and actions directly on the transaction details screen to help merchants with dispute resolution. | ||
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 |
---|---|---|
|
@@ -20,7 +20,6 @@ import DepositDetailsPage from 'deposits/details'; | |
import TransactionsPage from 'transactions'; | ||
import PaymentDetailsPage from 'payment-details'; | ||
import DisputesPage from 'disputes'; | ||
import LegacyDisputeDetailsPage from 'disputes/details'; | ||
import RedirectToTransactionDetails from 'disputes/redirect-to-transaction-details'; | ||
import DisputeEvidencePage from 'disputes/evidence'; | ||
import AdditionalMethodsPage from 'wcpay/additional-methods-setup'; | ||
|
@@ -152,14 +151,8 @@ addFilter( | |
capability: 'manage_woocommerce', | ||
} ); | ||
|
||
// If disputes on transaction page feature is enabled, set up a soft | ||
// redirect component; otherwise register the (legacy) dispute details page. | ||
const isDisputeOnTransactionPageEnabled = | ||
window.wcpaySettings.featureFlags.isDisputeOnTransactionPageEnabled; | ||
pages.push( { | ||
container: isDisputeOnTransactionPageEnabled | ||
? RedirectToTransactionDetails | ||
: LegacyDisputeDetailsPage, | ||
container: RedirectToTransactionDetails, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. We can also remove There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I believe this is being handled in #7363 and is OK to merge after 6.6. |
||
path: '/payments/disputes/details', | ||
wpOpenMenu: menuID, | ||
breadcrumbs: [ | ||
|
@@ -171,9 +164,7 @@ addFilter( | |
__( 'Dispute details', 'woocommerce-payments' ), | ||
], | ||
navArgs: { | ||
id: isDisputeOnTransactionPageEnabled | ||
? 'wc-payments-disputes-details-legacy-redirect' | ||
: 'wc-payments-disputes-details', | ||
id: 'wc-payments-disputes-details-legacy-redirect', | ||
parentPath: '/payments/disputes', | ||
}, | ||
capability: 'manage_woocommerce', | ||
|
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.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Nice changelog!