devsoc-unsw / structs.sh

An educational data structures and algorithms platform.
https://structs.sh
MIT License
27 stars 7 forks source link

Feature timeline redo #681

Closed Dammshine closed 1 month ago

Dammshine commented 1 month ago

I have not yet finished all the tasks, but I am requesting a review at this stage because will block Hindie's progress

Tasks Completed in This PR:

  1. Refactored the socket to enforce specific types for every event received from the server or sent to the server.
  2. Removed several events that are no longer used, leaving space to add these back in for future debugging if necessary.
  3. Extracted socket logic from DevelopmentMode into its own dedicated hook.
  4. Moved 'tab' and 'setTab' from DevelopmentMode to GlobalStateStore.

Planned Tasks for the Next PR:

  1. Further refactor properties passed into useSocketCommunication to GlobalStateStore. This may conflict with Hindie’s current tasks, so we will figure out the scope.
  2. Implement the actual timeline functionality.