-
Notifications
You must be signed in to change notification settings - Fork 274
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 Ads PAX Setup Success Notification Banner #8661
Comments
ACs are good, moving to IB 👍🏻 |
@benbowler IB looks good overall, just a few points to revise I think.
This is being done in #8560, so it's out of scope here. The change to which notification to trigger in the URL should be done in the As an aside, the |
Thank @aaemnnosttv, I've addressed your comments. |
Thanks @benbowler – one more thing
Stories are great, but we don't need to add VRTs for all components. Unless there's something specific about the styling for this component compared to other subtle notifications, we can assume that the rest will be the same. We should have one (group?) of VRTs for subtle notifications that covers them all, since they all really leverage the same markup and styles. Ideally I think we'd have a base For now, I've just removed the bit about adding VRTs, otherwise this is G2G! IB ✅ |
@aaemnnosttv sounds good, yes it definitely makes sense to generalise the |
@aaemnnosttv @benbowler I have it on my todo list to create issues for the subtle notification component to standardise it. The reason we didn't from the outset was I wanted a few instances in real-world use to extract the component from rather than prescriptively creating the component not knowing how we'd use it 🙂 But now that we have a few examples of it I think we can generalise it. I'll create that issue(s) soon, it's just been a bit lower priority 😅 |
QA Update ✅
|
Feature Description
When a PAX setup flow for Ads has been completely successfully, the user should be redirected to the main Site Kit dashboard and a campaign setup success notification banner should be displayed. This banner should contain a CTA that takes the user to the applicable reporting widget on the dashboard, and also be dismissible.
The Figma design can be viewed here. Following is a screenshot of the success banner design:
Do not alter or remove anything below. The following sections will be managed by moderators only.
Acceptance criteria
Implementation Brief
Subtle Notification Component
Create a new component
assets/js/modules/ads/components/notifications/PAXSetupSuccessSubtleNotification.js
based on the existingassets/js/components/notifications/SetupSuccessSubtleNotification.js
component updating the copy based on the FIGMA designs.While working on this ticket, move the
assets/js/components/notifications/SetupSuccessSubtleNotification.js
component toassets/js/modules/ads/components/notifications/SetupSuccessSubtleNotification.js
as this notification is currently specific to the Ads module.PAX_SETUP_SUCCESS_NOTIFICATION
withinassets/js/modules/ads/components/notifications/PAXSetupSuccessSubtleNotification.js
with the valuepax_setup_success_notification
which will be used to reference this notification in this component and in the redirect from the PAX service function.useQueryArg
to check if thenotification
does not equalPAX_SETUP_SUCCESS_NOTIFICATION
and returnnull
in this case.assets/js/components/notifications/SetupSuccessSubtleNotification.js
, however we don't need to update the slug query arg, only remove the notification query arg when theonDismiss
function is called.Button
component, adding relevant CSS to confirm it matches the FIGMA designs, and creating an onClick function calledonShowMe
:onShowMe
function use thegetContextScrollTop
util to get the y offset of the PAX by passing the.googlesitekit-pax-embedded-app
selector in the first argument and the current breakpoint in the second argument.global.scrollTo
, withtop
set to the value returned bygetContextScrollTop
, withbehaviour
set tosmooth
.Import and render the new
PAXSetupSuccessSubtleNotification
component withinassets/js/components/notifications/SubtleNotifications.js
PAX Setup Complete Redirect
onSetupComplete
function inassets/js/modules/ads/components/setup/SetupMainPAX.js
, passing a custom redirectURL to thefinishSetup
function.getAdminURL( 'googlesitekit-dashboard', { notification: PAX_SETUP_SUCCESS_NOTIFICATION } )
.Test Coverage
PAXSetupSuccessSubtleNotification
andSetupSuccessSubtleNotification
and add them to VRTs.QA Brief
adsPax
feature flag enabledcreate an account
button, and finalize the flow in the PAX appChangelog entry
The text was updated successfully, but these errors were encountered: