If the first deploy to an environment failed, consider a "Retry deploy" button
There is a normally a Re-deploy
button to run the deploy job for an environment.
However if the very first deployment to an environment fails, the environment screen simply show 'No deployments yet'
Proposal
Consider showing a "Retry deploy" button to retry the failed deployment.
UX proposal
As a user, I want to be able to manually retry the deploy from the environments overview when the first deployment to an environment fails, so I can quickly process it again.
Acceptance criteria
- Environments page: If a deployment to an environment fails, user should see an option to manually retry it.
- Instead of No deployments yet, user should see the
The deployment did not succeed
helper text. - An option (button) to re-deploy to environment should be available.
- Clicking the option to re-deploy triggers a confirmation modal similar to:
- The modal body should read: This action re-deploys the job for commit 72022034 and returns the environment to this version. Are you sure you want to continue?
- Clicking
cancel
closes the modal, no action should be taken by the system. - Clicking
re-deploy
closes the modal. A new job is triggered. - A loading state is displayed while the system feches for the updated data.
- The
re-deploy
button should be replaced with acancel
button. see reference - The job information should be displayed on the table, as well as with the commit info.
Documentation
Yes, this change will require documentation updates.
Edited by Jackie Porter