-
Notifications
You must be signed in to change notification settings - Fork 293
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
Create Sign in With Google banner notification to prompt user to enable feature #9335
Comments
@zutigrm, the following requirement is missing:
|
@eugene-manuilov ah indeed! Thanks, IB updated |
@zutigrm, we should use |
@eugene-manuilov Updated |
Thanks, IB ✔ |
QA Update ⚠Hi @jimmymadon , I've set up a site but the banner isn't showing at all.
https://github.com/user-attachments/assets/bff972e0-b214-4fe3-bf8b-e8805b6a775b
|
@kelvinballoo I should've just seen the video first! You've got the Zero Data Notification banner showing! So in this case, if you dismiss or action that banner, the Sign in with Google banner should then appear. This behaviour will change after #9568 is merged though as the Notification Banners and Setup CTA banners will have their own "queue"! |
QA update ⚠Thanks @jimmymadon . The banner showed up after dismissing it the Zero data banner. ITEM 1: ITEM 2: ITEM 3: ITEM 4: ITEM 5:
|
Yes, that is correct. I've created Issue #9675 that should fix this.
Again, #9675 should improve the way we render SVGs on different viewports. However, I have fixed the Maybe later button stacking instead of being side by side in my follow up PR which is now merged.
Fixed in the follow up PR.
Yes, I believe so. The conditions in the AC are all mutually independent of each other. So in the case you mention, the banner was never dismissed and the module is fully disconnected.
I think this can be done locally by any engineer as QA:Eng if everything else is tested. This might be simpler than you trying to force a HTTPS website to work with HTTP. |
QA Update ⚠Thanks @jimmymadon . ITEM 2 ✅ ITEM 4 ✅ ITEM 5 ⚠
RE: HTTP Assigning ticket to @jimmymadon to review ITEM 5. |
@tofumatt What do you think the behaviour should be here? When we click on the CTA or the Maybe later button, the notification is "dismissed" purposefully. This is fine until someone disconnects the module. Should we be removing the dismissal when we "disconnect" the module? I think we do this for some other modules. If yes, then we should create a separate issue as that will involve adding a simple action on when the module is disconnected. |
I don't think we should show the CTA again after a user has purposefully connected and disconnected the module. Presumably they did so for a reason, so reminding them to connect something they've already disconnected quite intentionally seems bad UX. I think it's fine that the banner doesn't appear again 👍🏻 |
QA ✅ from me on the QA: Eng section, so moving to Approval. |
Feature Description
A banner prompting users to enable Sign in with Google should be added to Site Kit. See the Figma design/screenshot below for the banner and its contents.
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
signInWithGoogleModule
feature flag is enabled.Implementation Brief
assets/js/components/notifications/SignInWithGoogleModuleSetupCTAWidget.js
GatheringDataNotification
component for an example of using this new Notifications infrastructureid
andNotification
Notification
component passed as the propassets/js/components/notifications/NotificationWithSVG.js
BannerNotification
,you can re-using the logic aroundWinImageSVG
assets/js/googlesitekit/notifications/components/layout/NotificationWithSmallSVG.js
for example. It should contain only the needed layout including the passed SVG,title
,description
andactions
Set up Sign in with Google
CTA callback should redirect to the module setup pageuseActivateModuleCallback( 'sign-in-with-google' )
as the callbackMaybe later
CTA should dismiss notification,ActionsCTALinkDismiss
component should be used for both CTA's, and for dismiss it is enough to providedismissLabel
prop.dismissExpires
is0
by default, which is correct value for this case, where we are dismissing it permanently.assets/js/googlesitekit/notifications/register-defaults.js
checkRequirements
:signInWithGoogleModule
feature flag is not enabled return earlyisURLUsingHTTPS
helper function, and pass it a home URL, obtained fromgetHomeURL
selector fromCORE_SITE
datastoresign-in-with-google
module is connected usingisModuleConnected
fromCORE_MODULES
datastore, and return early if it is not connected10
from the last added banner notification (not including error ones, which start from150
, the regular ones start from300
).NOTIFICATION_AREAS.BANNERS_BELOW_NAV
forareaSlug
isDismissible
property withtrue
for valueTest Coverage
QA Brief
confirm_notification
,dismiss_notification
,view_notification
andclick_learn_more_link
.Changelog entry
The text was updated successfully, but these errors were encountered: