Consistently alert anyone pushing to a protected branch in the Web IDE
Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.
Problem to solve
The Web IDE allows quick edits to be made to a project but lacks some of the UI affordances that make it obvious (especially to non-developers) which branch you're working on. Often, even if you have the permission to push to a protected branch, you would rather create a new branch first.
The Web IDE warns you before pushing to a protected branch, but after you dismiss this warning we save the setting and assume you want it to behave the same way in the future.
Proposal
To avoid making too many assumptions, we should introduce an explicit Don't show this again
action in the alert that shows up when pushing to the default, protected branch from the Web IDE.
Until that is clicked, we should show the alert any time someone tries to push to the default, protected branch.
Initially, this choice will persist in local storage, so it will re-appear if:
- GitLab is used from another browser
- The browser storage is cleared
We should document this to reduce confusion if/when the alert re-appears and to inform users who want to force the setting to change.