Skip to content

Add a banner asking user feedback in the Catalog UI

What does this MR do and why?

Add a banner that will point user to a feedback issue in the CI/CD catalog. We also use local storage to remember if a user has dismissed the prompt.

Screenshots or screen recordings

Before After
Screenshot_2023-05-15_at_2.53.56_PM Screenshot_2023-05-16_at_10.25.55_AM

Video

(copy has been updated) Screen_Recording_2023-05-15_at_2.53.04_PM

How to set up and validate locally

  1. Make sure you have an ultimate license for your GDK
  2. Enable the feature flag: ci_namespace_catalog_experimental
  3. Login as a user
  4. Create a few projects that you will be able to convert to Ci resources (ideally 20+).
  5. Once you have done so, get the ID of the first new project you wanted to convert. Then in Rails console, run:
projects = Project.where("id > ?", your_first_project_id)
projects.each do |project|
  project.update!(description: 'description')  
  ::Ci::Catalog::Resource.new(project_id: project.id).save   
end  
  1. Navigate to /$namespace/$project/-/ci/catalog/resources
  2. Notice that you see a banner asking for user feedback
  3. Click on the link
  4. Notice you are taken to the feeback issue
  5. Dismiss the banner
  6. Notice it has disappeared
  7. Refresh the page
  8. Notice it is still gone.

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 #408346 (closed)

Edited by Frédéric Caplette

Merge request reports