-
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
Update international IP address rule card behavior when the rule is being affected by another configuration #7827
Update international IP address rule card behavior when the rule is being affected by another configuration #7827
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: +10 B (0%) Total Size: 1.27 MB
ℹ️ View Unchanged
|
Update allow-countries-notice snapshots
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.
I had a question about a variable declaration that was done. I tested and it works either way, so it's not a necessary change if it's better for clarity.
There's the issue of the country names with extended ascii characters not displaying correctly. Do you think you can fix that in this PR without much hassle, or do you think it needs another issue and separate PR?
client/settings/fraud-protection/advanced-settings/cards/international-ip-address.tsx
Outdated
Show resolved
Hide resolved
Thanks for catching this! I looked in to this and it needs to be fixed in Woo core. In the WooPayments code we are getting the countries from
If you run That is hardcoded in the core countries file: I can open an issue in core to track this. |
Actually, it does look like something on our end as core does properly decode the entities on their end. I'll open a separate issue for it in this repo. |
…d-by-other-config
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.
Thanks for updating the variable declaration and opening the issue related to the country display. This is good to go 😁
…d-by-other-config
…d-by-other-config
Fixes #6320
Changes proposed in this Pull Request
This PR modifies the behavior and display of the international IP address rule card if the rule is being affected by the WooCommerce core selling locations general option. Previously, if the WooCommerce core selling locations option was set to 'sell to all countries' we'd show a notice at the bottom of the card but still display the toggle to enable the rule as shown in the screenshot below:
The changes in this PR have updated the rule card display to not show the rule toggle and instead show the notice in the toggle's place with updated text indicating that filter is disabled because the WooCommerce core selling locations option is set to 'sell to all countries'. See the screenshot below:
The behavior and display of the rule card has not been changed if the the WooCommerce core selling locations option is set to the 'specific countries' or 'all countries except' options.
Testing instructions
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