question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Implement the Reminder Component design

See original GitHub issue

Feature Description

Implement the design for the Reminder Component in its three variants:


Acceptance criteria

  • The placeholder version of the Reminder Component (see #5270) should be replaced with the fully realised design, for each of its variants. For reference, see Figma.
  • For all variants display the following:
    • Secondary pane text:
      • Full cross-device and cross-platform reporting
      • Set up advanced conversion tracking, e.g. when visitors submit a form or add an item to cart
      • Get detailed insights on how users navigate your site
    • Learn more link:
  • For each variant display text as follows.
    • Initial notice:
      • Title: Set up Google Analytics 4 now to join the future of Analytics
      • Subtitle: Your current Universal Analytics will stop recording stats on July 1st, 2023
    • Last month:
      • Title: You only have X more days to setup Google Analytics 4 (where X is the number of days until July 1st 2023).
    • Post-cutoff:
      • Title: Your current Universal Analytics stopped recording stats on July 1st, 2023
      • Subtitle: Set up Google Analytics 4 now to resume recording stats
  • Ensure icons are displayed as per the design.
  • Ensure the responsive design is implemented.

Implementation Brief

In assets/js/components/notifications/BannerNotification/index.js:

  • Add an optional secondaryPane prop of type PropTypes.node.
  • If secondaryPane is provided, render the entire component within a new Grid-Row-Cell in the root <section> container. Convert the <section> to be a flex container and the Grids inside to have flex: 1 1 0px; to make them of equal width. Change flex-direction to column for mobile as per the Figma mock.

In assets/js/modules/analytics-4/components/dashboard/ActivationBanner/ReminderBanner.js:

  • Create and style the “Secondary Pane” component as per the AC/Figma mock (with both the Secondary Pane text and Learn More link). Pass this component to the new secondaryPane prop in BannerNotification. Note: We cannot use the default “Learn More” link props of BannerNotification because this will create a link within the main banner and not in the secondary pane.
  • Compute the date and switch the title and description (if there is a subtitle) props passed to the BannerNotification component as per the ACs.

Make any styling updates needed.

  • BannerNotification styles can be found in assets/sass/components/global/_googlesitekit-publisher-wins.scss
  • Consider adding/using assets/sass/components/activation/_googlesitekit-ga4-activation-banner.scss for styling the Secondary Pane component.

Storybook

  • Create storybook variations for each of the three reminder components.

Test Coverage

  • Tests could be written for ReminderBanner.js to verify the correct title/description of components based on the date.

QA Brief

  • Verify the new StoryBook stories for the ReminderBanner.
  • QA this similar to #5272 by changing date and verifying the appropriate Banner title, description and description icon (little image next to the description). All colours and font-sizes have been kept in line with the new design and are standard for other Banner Notifications. However, verify the layout displays as per the figma mocks on all screen sizes.

Changelog entry

  • Add a GA4 upgrade reminder notification for users who have not connected Google Analytics 4.

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6

github_iconTop GitHub Comments

1reaction
jimmymadoncommented, Sep 12, 2022

@wpdarren This is actually a regression from another issue where some code was renamed but that change was left out from the StoryBook file.

I’ve just created a follow up PR branch for this - just a one word fix. @tofumatt - have assigned this to you as it is a very trivial merge and you CR’d this originally and many MRs are off today. 😄

0reactions
wpdarrencommented, Sep 13, 2022

QA Update: ✅

Verified:

  • The Reminder Component has a fully realised design, for each of its variants as per the AC.
  • The icons are displayed as per the design.
  • The different notifications have a responsive design implemented.
  • Confirmed that the Stories are displaying as per the Figma and ACs
Screenshots Screenshot on 2023-07-03 at 20-54-07

image

Markup on 2023-07-03 at 20-54-17
Read more comments on GitHub >

github_iconTop Results From Across the Web

Reminders for Designers (AKA Things to Always Do)
Collaborate Early (Both Inside and Outside of Product Team). Everyone wants to be part of the product building process, so include them.
Read more >
Reminder App UI Design in Adobe XD - YouTube
http://bit.ly/icandesignToday we will design a Reminder App UI Design in Adobe Xd using material design icons and components....
Read more >
A Comprehensive Guide to Notification Design - Toptal
Notifications are an indispensable part of digital products, ... Even well-known UI toolkits use different notification design frameworks and terminology.
Read more >
Building Your Startup: Preparing for Reminders - Code
This tutorial is part of the Building Your Startup With PHP series on Envato Tuts+. In this series, I'm guiding you through launching...
Read more >
Reminder app - Senior UX Product Designer
Going through UX/UI Design process (empathise, define, design, prototype, test) and product strategy of reminder app for Android and iOS.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found