FE: Add pipeline widget to project security dashboard
Overview
Add pipeline widget with:
-
Last updated
copy - how long ago the most recent pipeline passed
- pipeline number which links to the pipeline page
Link to mockup: https://gitlab.com/gitlab-org/gitlab/uploads/199895015dfdd4cf842c65e08b54ea72/image.png
Implementation Plan
- Based on our conversation here, we can request this information on the fly after the page has loaded.
- You can grab latest pipeline via https://docs.gitlab.com/ee/api/pipelines.html, there's also GraphQL resource for Pipeline – https://docs.gitlab.com/ee/api/graphql/reference/#pipeline
- I guess it's good to create a new component for this. The component will request the information, display a loading icon and handle error/success states.
Edited by Lindsay Kerr