Skip to content

Add callout announcement for top nav redesign

What does this MR do?

Decision The What's New section of the navigation already mentions both the top and left navigation and will be updated shortly after the 14.0 release post goes live.

This MR resolves #323518 (closed) by adding a callout announcing the new top nav redesign. Here's the comment selecting the callout option since the broadcast message was not going to work out:

#323518 (comment 601202531)

Since this menu shows up on every page, I opted to optimize when we should check for showing the callout. The callout needs at least 1 graphql / db request to check if we've dismissed this. If possible, let's put a flag in the user's localStorage and prevent this check altogether.

Screenshots (strongly suggested)

How to test?

You should see the popover on first open. After opening the menu or clicking the popover it'll hide and not be loaded on subsequent page visits. To reset this state, you'll want to:

  1. Remove the local storage flag by running localStorage.removeItem('gitlab::nav::has_seen_top_nav') in your browser console.
  2. Remove the callout flag by running User.find(1).callouts.each { |x| x.delete } in your local rails console.

Screen_Shot_2021-06-16_at_12.33.51_PM

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #323518 (closed)

Edited by Eric Schurter

Merge request reports