Skip to content

Upsell the GitLab Terraform features - iteration 3 frontend

What does this MR do?

As part of iteration 2 (the first iteration is here) we have changed the GitLab-managed Terraform state banner:

  • changed the banner design from introduction to promotion
  • added illustration to make it prominent that the banner is about Terraform
  • changed the logic of managing the banner from per-project to per-user basis
  • as the result, it is possible to use UserCalloutDismisser as was suggested by @ohoral.

Update We want to split the task to ship the change safely for the mixed deployment scenario.

We decided to proceed in 3 steps:

  1. Change the design using the old logic
  2. Introduce the backend change
  3. Then in 14.3 switch to the new implementation using UserCalloutDismisser - current step

Current MR:

  • changes the banner implementation to use UserCalloutDismisser

Screenshots or Screencasts (strongly suggested)

There will be no visual changes as the design should be changed in another MR.

Screenshot_2021-08-12_at_18.36.12

How to setup and validate locally (strongly suggested)

  1. Create a project that contains Terraform files (.tf files should be at least in the top 5 files types)
  2. View the banner on the top
  3. After dismissing the banner try to reload the page and go to another project that contains Terraform files. Verify that the banner is not shown anymore.

Does this MR meet the acceptance criteria?

Conformity

Availability and Testing

Related to #336252 (closed)

Edited by Anna Vovchenko

Merge request reports