Cannot unfocus after deleting the class currently being focused on. This makes it difficult to go back to the 'default' page (when unfocused). From the UG, it is not stated that deleting a class would exit the user from focus mode, so should the user still be in focus mode after deleting? Else, should the view still show the 'focused' screen? Perhaps a better way to design it would be to automatically take the user back once the class being focused on has been deleted? (auto-unfocus)
[In addition, this bug is especially severe when you are deleting the last class in the app because there are no more valid classes to focus to to get back to the 'unfocused' state, you'd have to create a new class and focus on that class and unfocus jump to go back]
Steps to reproduce the bug
Enter into focus mode for a class focus c/CS1101S
Delete the class while inside focus mode for that class deletec c/CS1101S
Execute unfocus to try to get out of the focus view, error message Usage of [ unfocus ] requires you to be in focus mode to be used! is shown
Description of bug
Cannot unfocus after deleting the class currently being focused on. This makes it difficult to go back to the 'default' page (when unfocused). From the UG, it is not stated that deleting a class would exit the user from focus mode, so should the user still be in focus mode after deleting? Else, should the view still show the 'focused' screen? Perhaps a better way to design it would be to automatically take the user back once the class being focused on has been deleted? (auto-unfocus)
[In addition, this bug is especially severe when you are deleting the last class in the app because there are no more valid classes to focus to to get back to the 'unfocused' state, you'd have to create a new class and focus on that class and unfocus jump to go back]
Steps to reproduce the bug
focus c/CS1101S
deletec c/CS1101S
unfocus
to try to get out of the focus view, error messageUsage of [ unfocus ] requires you to be in focus mode to be used!
is shownScreenshot