devsoc-unsw / devsoc-unsw/notangles
[Rewrite-Frontend]: Adding clear/undo/redo
- Dominant language
- TypeScript
- Stars
- 79
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
In the rewrite version of Notangles, these three buttons: clear/undo/redo are currently disabled becasue the related logics have not been implemented.
For the implementation, we should store an array of actions in the frontend, and maintain this data structure when clicking undo/redo. For the clear functionality, we can call a backend API.
The main logic should be implemented in [this file](https://github.com/devsoc-unsw/notangles/blob/frontend-react-query/client/src/components/planner/timetableTabs/TimetableTabContextMenu.tsx#L92).
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in client/src/components/planner/timetableTabs/TimetableTabContextMenu.tsx around the linked section, then trace the rewrite frontend's timetable action state and the backend API used for clearing. Confirm how actions are represented and how the clear request is made. Done means clear, undo, and redo are enabled and maintain the expected action history, with clear invoking the backend API.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- react, typescript
- Domain
- frontend
- Issue type
- Feature
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Active
- Clarity
- Mostly clear
- Newbie friendliness
- 66/100