Adds "name" field to provide machine readable status
What does this MR do and why?
Adds "name" field to provide machine readable status
This change adds a new "name" field to the detaield status and deprecates other fields such as label to separate the business logic from the presentation.
Changelog: other
Why this change?
While working on #423029 (closed) I found we don't have a "machine" name for our detailed status, so we cobble up together solutions like:
- using the icon as an identifier for badge styles
- or, using the
group
as an identifier for icon styles
Both could be consolidated by using a unique name + localized label. Based on this change, we could refactor usages for ci_badge_link
and ci_icon
to use a single primitive for status.
Screenshots or screen recordings
See the fields that changed in detailedStatus
:
How to set up and validate locally
NA
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.
Related to #423029 (closed)