devsoc-unsw / devsoc-unsw/notangles

[Rewrite-Frontend]: Adding clear/undo/redo

Open
#1,166 0 comments 0 reactions 0 assignees Claimed by @gsambhy View on GitHub
👨🏻‍💻 dev 💻
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.

Image

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

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.