[Bug] Loading Web IDE on deleted branch loads empty project
MR: pending
Description
When loading the Web IDE with a deleted branch, there's no warning of the fact that the branch does not exist. Instead, the Web IDE loads with no project data. See screen recording for more details:
Steps to reproduce:
- Create new branch in Rails app
- Load Web IDE in that branch
- Delete branch
- Reload Web IDE– observe that it is still loaded but is empty.
It would be a better UX if we can show an alert to indicate that the branch no longer exists and give users the option to checkout to the main branch.