Skip to content

Migrate badge to Pajamas component

What does this MR do and why?

Migrate badges to Pajamas component on Triggers management page (project settings).

Related to #344359 (closed)

Screenshots or screen recordings

Before After
Screenshot_2022-01-27_at_15.47.16 Screenshot_2022-01-27_at_15.45.58

How to set up and validate locally

  1. Visit a project page then Settings -> CI/CD (like http://localhost:3000/flightjs/Flight/-/settings/ci_cd#js-pipeline-triggers)
  2. Check the Pipeline triggers section
  3. Add a token
  4. Make sure that the condition trigger.can_access_project? returns false (you could simply change it in the [trigger.rb])(https://gitlab.com/gitlab-org/gitlab/blob/e7b6e65aff212a749fb40232a79c4fc4089ab805/app/models/ci/trigger.rb#L37)
  5. Check the invalid badge next to it

MR acceptance checklist

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

Edited by Diana Zubova

Merge request reports

Loading