-
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
Gate dispute issuer evidence behind a feature flag. #7394
Conversation
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: +41 B (0%) Total Size: 1.42 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.
Looks good @shendy-a8c! 🏆
Note: I've corrected the dispute.issuer_evidence
type to an array of IssuerEvidence
in 4e872a9. I've tested this with mock data that matches the format found on WCCOM:
{ ...charge,
dispute: {
...dispute,
issuer_evidence: [{
"evidence_type": "chargeback",
"file_evidence": [
"file_abcd123"
],
"text_evidence": "This is test evidence"
}],
}
With the feature flag disabled the issuer evidence component is not visible:
With the feature flag enabled, the issuer evidence component is rendered. The text button is rendered and works as expected. The file button results in an error as expected, but it is handled with a snackbar message:
client/payment-details/dispute-details/dispute-awaiting-response-details.tsx
Outdated
Show resolved
Hide resolved
…se-details.tsx Co-authored-by: Eric Jinks <3147296+Jinksi@users.noreply.github.com>
Nice, @Jinksi! TIL |
Fixes #7372
Changes proposed in this Pull Request
_wcpay_feature_dispute_issuer_evidence
option is on.Testing instructions
IssuerEvidenceList
's return value here to show something. For example:4000000000000259
to trigger a dispute.update_option( '_wcpay_feature_dispute_issuer_evidence', '1' );
in WP Console or by modifying your database tablewp_options
directly.update_option( '_wcpay_feature_dispute_issuer_evidence', '0' );
in WP Console or by modifying your database tablewp_options
directly.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