Description
As a student making my course schedule, I want to be able to undo actions I make in the calendar view (ex: adding/removing a course) so that I can quickly undo mistakes without navigating back to the registrar.
Acceptance Criteria
- Given I am on the calendar view
- When I press Ctrl/Cmd + Z (or another method as defined by Design)
- Then my most recent action is reverted to its previous state
Figma
[Archive]
Pre-submission Checklist
Feature Description
A way (like cmd+z on mac) to undo removing a course from a schedule. Currently, if you remove a course there is no easy way to get it back besides going through the course catalogue page again.
Proposed Solution
Keep track of the last course removed as a "temp" or something and, if the cmd+z equivalent is pressed, bring the course back to the calendar.
UI/UX Considerations
No UI changes required. Maybe would be good to let people know it is a new feature though when initially released.
Technical Implementation Details
Mentioned above, but I think it would be a simple and effective solution to just store the last removed course from the current session in memory and then have a useEffect hook to mount a key listener that checks for cmd+z (or the equivallent).
Description
As a student making my course schedule, I want to be able to undo actions I make in the calendar view (ex: adding/removing a course) so that I can quickly undo mistakes without navigating back to the registrar.
Acceptance Criteria
Figma
[Archive]
Pre-submission Checklist
Feature Description
A way (like cmd+z on mac) to undo removing a course from a schedule. Currently, if you remove a course there is no easy way to get it back besides going through the course catalogue page again.
Proposed Solution
Keep track of the last course removed as a "temp" or something and, if the cmd+z equivalent is pressed, bring the course back to the calendar.
UI/UX Considerations
No UI changes required. Maybe would be good to let people know it is a new feature though when initially released.
Technical Implementation Details
Mentioned above, but I think it would be a simple and effective solution to just store the last removed course from the current session in memory and then have a useEffect hook to mount a key listener that checks for cmd+z (or the equivallent).