Skip to content

Only show code suggestions alert after new nav alert is dismissed

What does this MR do and why?

Implements #413150 (closed)

Only show code suggestions alert after new navigation alert has been dismissed.

It also adds a delay of 30 minutes before showing the code suggestions alert.

Screenshots or screen recordings

No Visible Changes

How to set up and validate locally

  1. Setup to simulate SaaS and restart GDK
  2. Enable feature flags :code_suggestions_alert and super_sidebar_nav in rails console
  3. Navigate to gdk.test:3000/-/profile/preferences and make sure option Enable Code Suggestions is not selected
  4. Visit any group or project pages that the current user has access to
  5. Check that you can see the New Navigation alert
  6. Dismiss the Navigation alert
  7. In the rails console, run: Users::Callout.last.update(dismissed_at: 31.minutes.ago)
  8. Refresh the page and the Code Suggestions alert should be visible

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Related to #413150 (closed)

Edited by Ross Byrne

Merge request reports