-
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
Instant Deposits: Show amount on a notice and button label #8970
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: +365 B (0%) Total Size: 1.25 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.
Based on a code review this is looking good. I didn't test because my dev is not setup for instant deposits. Happy to do another test review later if needed (I can test on a different site).
There's one blocker: the notice dismissal should be persisted to user options. Look in wcpaySettings
for similar examples, e.g. isNextDepositNoticeDismissed
(aka wcpay_next_deposit_notice_dismissed
in database).
Whether we need a #8220 (comment) prevent confusion.
The current wording was approved earlier (IIRC!) so hopefully we don't get bogged down 😁
That said, it looks like we have agreement from @rogermattic and @aheckler 🎉 so I recommend going with that new wording. If there is some technical problem with new wording, maybe we can push ahead with the previously approved wording.
New wording:
Get $239.66 via instant deposit. Funds are typically in your bank account within 30 minutes. Fee: 1.5%.
Get $239.66 now
import HelpOutlineIcon from 'gridicons/dist/help-outline'; | ||
import InlineNotice from '../inline-notice'; | ||
import InstantDepositButton from 'deposits/instant-deposits'; | ||
import SendMoneyIcon from 'assets/images/icons/send-money.svg?asset'; |
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.
Why the ?asset
– what is the purpose of this? I haven't seen it before.
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 see this is used throughout WooPayments for SVGs, assuming this a way to load them as asset files at runtime. Asked for clarification (so I understand) in front end guild channel internally.
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 first picked up the pattern from how SVGs were embedded earlier, and then read about it. I hope I am right about this: ?asset
invokes the asset module of Webpack. Ref. It bundles the SVG file to a base 64 URI, that can be easily used in HTML.
Another helpful read I found.
Significance: patch | ||
Type: fix | ||
|
||
Clearly display available instant deposit amount on notice and button label on Payment Overview page |
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 clear merchant-relevant changelog 👌🏻
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.
Tested and works well. Glad to see this issue progress!
Good work @nagpai
Fixes #8220
The PR implements a notice, updated button text and a tooltip for
Instant deposits
on theOverview
page. The UI update will clearly inform the merchant of the exact amount available for instant deposit.Screenshots
With notice
After notice is dismissed
Tooltip
Testing instructions
acct_1LqHU4QocNIKfAAZ
. This account is approved for instant deposit and should show you the notice and button.With notice
. Note that there is no tooltip icon visibleTooltip
Learn more
link should lead to - https://woocommerce.com/document/woopayments/deposits/instant-deposits/wcpay_instant_deposit_notice_dismissed
from the client test site DB.Points of discussion / decision needed
These are minor changes and can be easily actioned depending on the outcome of the discussion.
Whether we need a change in the text to prevent confusion.Opinion needed - Not directly related, and minor test refactorHow to persist notice dismissal better - 1718694806082599-slack-C02BW3Z8SHKDev notes
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