chloeelim / ped

0 stars 0 forks source link

Cannot unfocus after executing deletion of class while in focus mode #2

Open chloeelim opened 2 years ago

chloeelim commented 2 years ago

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

  1. Enter into focus mode for a class focus c/CS1101S
  2. Delete the class while inside focus mode for that class deletec c/CS1101S
  3. 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
  4. Clicking on the 'back arrow' also does not work

Screenshot

Screenshot 2022-10-28 at 4.43.46 PM.png