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
- Setup to simulate SaaS and restart GDK
- Enable feature flags
:code_suggestions_alert
andsuper_sidebar_nav
in rails console - Navigate to
gdk.test:3000/-/profile/preferences
and make sure optionEnable Code Suggestions
is not selected - Visit any group or project pages that the current user has access to
- Check that you can see the New Navigation alert
- Dismiss the Navigation alert
- In the rails console, run:
Users::Callout.last.update(dismissed_at: 31.minutes.ago)
- 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.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #413150 (closed)
Edited by Ross Byrne