Add better feedback when starting a manual deployment action
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
With the current implementation of new Environment details page, starting the manual deployment action lacks some meaningful feedback for the user.
In the previous implementation of the page the user was redirected to a job that has been started with the manual deployment action. Let's use this chance to see if there is a better way to communicate the result of the action with the user.
Proposal:
When a user takes a manual deployment action, we surface the following toast:
The link brings users to the job page.
Implementation guide
- In
app/assets/javascripts/environments/mount_show.js, load theGlToastplugin - Modify the
onClickActionmethod inapp/assets/javascripts/environments/components/environment_actions.vueto toast with the given text after the apollo mutation, getting the job url from the return result. - Modify the
onOkmethod inapp/assets/javascripts/environments/components/confirm_rollback_modal.vueto toast with the given text after the apollo mutation, getting the job url from the return result
Note that in both instances, we should check for the presence of $toast, as these components are re-used in different contexts.
It could also be that the mutations need to be modified to return the job URLs.
