icssc / AntAlmanac

A course exploration and scheduling tool for UCI Anteaters
https://antalmanac.com
MIT License
55 stars 62 forks source link

feat: warn when saving empty schedules #991

Closed KevinWu098 closed 1 month ago

KevinWu098 commented 1 month ago

Summary

  1. When AA or AnteaterAPI is running slow, users may unintentionally save a completely empty schedule and wipe their own schedules.
  2. This PR adds a check for completely empty schedules and warns users, as this is an unexpected action for a user to take (saving empty schedules).

Test Plan

  1. Attempt to save empty schedules, a window confirmation should appear
  2. After adding courses, custom events, OR a schedule note, the window confirmation should not appear

Issues

Closes #990