Experiment Badge - Create shared component
What / Why
Follow up from comment here: !131686 (comment 1559222180)
Beta and Experiement badges have some specific requirements when represented in the GitLab UI:
- Currently, the Beta badge has been implemented as a Shared Component
- However, it does not appear the Experiment badge has been created quite yet.
I did find a usage of a proper experiment badge in the ee/ai
domain that we can possibly migrated into a shared component to then used where its needed: constants.js
and ai_genie_chat.vue
Proposal
- Create a new shared component
app/assets/javascripts/vue_shared/components/badges/experiement_badge.vue
- Matching the Pajamas designs implement the shared badge
- Utilize existing implementation (1 and 2)
- Identify existing non-compliant Experiment badges in our code base and migrate/create issue to move them to the shared badge.
Edited by Marc Saleiko