-
Notifications
You must be signed in to change notification settings - Fork 192
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
Feature: Add additional gateway notice #7477
Feature: Add additional gateway notice #7477
Conversation
Build for QA, see https://github.com/impress-org/givewp/actions/runs/10253458388. |
Build for QA, see https://github.com/impress-org/givewp/actions/runs/10269404181. |
Build for QA, see https://github.com/impress-org/givewp/actions/runs/10271659133. |
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.
@kjohnson Looks good to me, I just left a comment related to a small change.
Also, I noticed on the Zeplin Design that the offline instructions are displayed before the notice instead of after, which makes the implementation from this PR slightly different from the original design - check the attached screenshot for reference.
Honestly, I don't know if it should be a concern. So, I would like to confirm with @jdghinson if it's ok as it is currently or if we need to change it.
@glaubersilva thanks. I didn't have the Offline Donations showing when I added this. I'll take a look. |
@glaubersilva it seems that the Offline Donations settings are added by filtering the Block's Edit component, so there isn't a way to control this ordering from within the Payment Gateways block. We could inject this notice as a filter, which is what I'll try next. |
The order issue is actually due to the use of a Higher Order Component to append the Offline Donation inspector controls, where as the filter is only used to render the block itself. |
@glaubersilva Ok, I was able to re-position the notice using a filter and a higher order component, see 15ca140. |
@kjohnson Thanks for the changes, this seems more with the design now. However, to compile the files on my local machine I have to delete lines a couple of unused imports on the Besides that, it's all good. So, I'll approve the PR to advance things, but remember to remove this not used imports before sending it to QA. =) Nice work! |
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, @glaubersilva. I removed those unused imports, see d1e3cde. |
Build for QA, see https://github.com/impress-org/givewp/actions/runs/10421224477. |
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.
Passed manual QA tests.
Resolves GIVE-1092
Description
This PR adds a notice about additional payment gateways to the payment gateway block.
Affects
Adds a notice in the inspector controls.
Dev note: the external link element cannot be added to the block card description directly, which only accepts a string. The implementation here is a workaround, which is documented.
Visuals
Testing Instructions
Create a v3 donation form.
Go to the Build tab/screen.
Click on the Payment Gateways block.
Dismiss the notice.
Reload the form builder.
Pre-review Checklist
@unreleased
tags included in DocBlocks