Skip to content

Step 2 - Add alert and disable when cannot push code in IDE

Paul Slaughter requested to merge 213581-ide-alert-when-cannot-push-code into master

What does this MR do?

It's possible for user's to visit the Web IDE without being able to push code. This can create a frustrating experience when they try to commit changes and discover an error on commit (see #213581 (closed)).

This MR addresses this problem by adding an alert box and disabling the commit buttons when the user cannot push code.

Heads up! It does not add the "Fork" button since this is a bit more involved. This will be handled in a separate step.

Screenshots (strongly suggested)

On load:

User can push changes User cannot push changes
20210118_ide_user_can_push 20210118_ide_user_cannot_push

Editor:

User can push changes User cannot push changes
Screen_Shot_2021-01-15_at_4.06.22_PM Screen_Shot_2021-01-15_at_4.05.06_PM

Begin commit button:

User can push changes User cannot push changes
Screen_Shot_2021-01-15_at_4.06.30_PM Screen_Shot_2021-01-15_at_4.05.18_PM

Commit tab:

User can push changes User cannot push changes
Screen_Shot_2021-01-15_at_4.06.38_PM Screen_Shot_2021-01-15_at_4.05.28_PM

Does this MR meet the acceptance criteria?

Conformity

References

Edited by Paul Slaughter

Merge request reports