FE: Show failed job(s) badge in pipeline widget on project security dashboard
Overview
If job(s) failed, show failed job(s) badge on the project-level security dashboard which links to the failed jobs page of the pipeline.
- There should be some indication that it can be clicked on, including a cursor change to the "pointer hand", as well as an underline treatment of the text, e.g.:
Implementation Plan
-
frontend Create a status component which displays the box. It needs to fetch the failed jobs and last updated status. This discussion gives a bit more context for fetching the data. #241061 (comment 404931507). And this discussion about the loading states: #241061 (comment 416936967) -
frontend Update the ee/app/assets/javascripts/security_dashboard/components/first_class_project_security_dashboard.vue
file to include this component. -
Write tests -
Update documentation -
Wording and pluralization. Alert says: 1 failed security job
or, e.g.,2 failed security jobs
Edited by Becka Lippert