Pipelines view should handle empty state and buttons properly
Problem
Pipeline page has incorrect handling of empty state, Run Pipeline button and Get started with pipelines button.
Proposal
Implement all the different views as explained below.
Design/Consensus
User has permissions on current project to initiate CI
- User has CI set up and a list of pipelines
[Tabs] | [Run pipeline] [CI lint]
[pipeline list]
- User has CI set up but something went wrong
[Tabs] | [Run pipeline] [CI lint]
[https://gitlab.com/gitlab-org/gitlab-svgs/blob/master/illustrations/pipelines_failed.svg]
There was an error with fetching the pipelines. Try again in a few moments or contact your support team.
- User has CI set up and clicked a tab with no pipelines (for example the "pending" tab)
[Tabs] | [Run pipeline] [CI lint]
[https://gitlab.com/gitlab-org/gitlab-svgs/blob/master/illustrations/pipelines_pending.svg]
There are currently no [pending/running/etc.] pipelines.
- User has no CI set up (either internal or mirrored/imported gitlab_ci)
[https://gitlab.com/gitlab-org/gitlab-svgs/blob/master/illustrations/pipelines_empty.svg]
*Build with confidence*
Continuous Integration can help catch bugs by running your tests automatically, while Continuous Deployment can help you deliver code to your production environment quicker.
[Get started with pipelines]
- User has mirrored/imported gitlab_ci CI or imported a project with CI set up and no pipelines
[Tabs] | [Run pipeline] [CI lint]
[https://gitlab.com/gitlab-org/gitlab-svgs/blob/master/illustrations/pipelines_pending.svg]
There are currently no pipelines to show.
User does not have permissions on current project to initiate CI
- CI set up and a list of pipelines
[Tabs]
[pipeline list]
- CI set up but something went wrong
[Tabs]
[https://gitlab.com/gitlab-org/gitlab-svgs/blob/master/illustrations/pipelines_failed.svg]
There was an error with fetching the pipelines. Try again in a few moments.
- CI set up and clicked a tab with no pipelines (for example the "pending" tab)
[Tabs]
[https://gitlab.com/gitlab-org/gitlab-svgs/blob/master/illustrations/pipelines_pending.svg]
There are currently no [pending/running/etc.] pipelines.
- No CI set up (either internal or mirrored/imported gitlab_ci)
[https://gitlab.com/gitlab-org/gitlab-svgs/blob/master/illustrations/pipelines_empty.svg]
This project is not currently set up to run pipelines.
- mirrored/imported gitlab_ci CI or imported a project with CI set up and no pipelines
[Tabs]
[https://gitlab.com/gitlab-org/gitlab-svgs/blob/master/illustrations/pipelines_pending.svg]
There are currently no pipelines to show.
*SVGs can be found in gitlab-svgs
project (spec URL listed for each state).
Edited by Filipa Lacerda