-
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
Scaffold the Setup Component variants #5275
Comments
@techanvil I believe this file should belong to the |
Whooops, that was a copy/paste error. I've fixed it - thanks for spotting! |
IB ✔️ |
QA Update: ❌@nfmohit I have a few observations:
This applies to both of the screens: 1)
|
Thank you for your findings, @wpdarren! For issues 1 & 2, the implemented font sizes reflect the GM2+ styles in order to keep them consistent with the other Banner Notifications. However, for the footer text, even though it is newly introduced in this task, I decided to keep it consistent with the existing paragraph font size, so that it doesn't look bigger than the description text in any other case. For issue 3, you're right. I'm currently working on #5276 and have included a fix for it there. Would that work? CC: @techanvil to validate my points, thank you! |
Hey @nfmohit, thanks for the tag.
As it happens the font sizes in Figma are 28px for the Reminder vs 20px for Setup, so I think 20px would be the right value to use in this case.
|
@nfmohit @techanvil I am happy to go with whatever is easier for you. I can include these as known issues that will be fixed in 5276. |
Thank you for the review, @techanvil! @wpdarren That would be fab! I'm already working on #5276 and I have already included the fixes there. Thank you! |
QA Update: ✅Verified:
Note: there are some differences in the FIgma designs which were highlighted in this ticket here. We decided that these will be fixed within 5276, so will check the styling when this is merged. |
Adding a note to mention that the IB and subsequent implementation was a bit wrong here and we should have been checking the result of the This has come up while QAing #5276 and a followup PR to that issue has been created to fix it: #5793 |
Feature Description
Prepare the Setup Component variants based on the presence of an existing GA4 property in the user's Analytics account ("existing GA4 property") and/or existing manually inserted tag on the page ("existing tag").
Ensure the relevant variant is displayed, showing the text as per the design. If necessary, modify the
BannerNotification
component to allow content to be displayed below the CTA - afooter
prop could be appropriate.However do not implement the dropdown or toggle controls for the "existing GA4 property" variants, they will be added separately.
Acceptance criteria
Implementation Brief
In
assets/js/components/notifications/BannerNotification/index.js
:footer
prop of typePropTypes.node
.footer
is provided, render it within a newRow
at the end of theGrid
.In
assets/js/modules/analytics-4/components/dashboard/ActivationBanner/SetupBanner.js
:MODULES_ANALYTICS_4
store'sgetMeasurementID
selector.MODULES_ANALYTICS_4
store'sgetExistingTag
selector.BannerNotification
props:title
with the specified Title text.ctaLabel
with the specified CTA button text.footer
with the specified Footer text.p
for styling.Make any styling updates needed.
BannerNotification
styles can be found inassets/sass/components/global/_googlesitekit-publisher-wins.scss
assets/sass/components/activation/_googlesitekit-ga4-activation-banner.scss
if it makes sense to do so.Test Coverage
QA Brief
ga4ActivationBanner
feature flag from the tester plugin.Set up now
in the displayed banner.Modules/Analytics4/ActivationBanner/SetupBanner
story displays correctly.Changelog entry
The text was updated successfully, but these errors were encountered: