hack4impact-mcgill / MADA-v2

5 stars 2 forks source link

Kihyeok/my tasks page #145

Closed KihyeokK closed 1 year ago

KihyeokK commented 1 year ago

Summary

This PR fixes/adds the following:

  1. Display different availabilities header when a user updates availabilities for the current week. The user can still edit their availabilities for the current week. Sunday to Saturday is considered to be in the same week. Screenshot 2023-07-07 at 10 49 51 PM Maybe users should be able to update the upcoming week's availabilities in advance? So that directors can assign tasks in advance
  2. Set "Upcoming" as the default option for filtering deliveries, as requested by MADA.
  3. When a user logs in, closes the tab, opens another tab, and tries to access other pages, an error occurs. This PR fixes this behaviour.

    Test Plan:

  4. Once you update the availabilities, you should be able to see the new availabilities-check-in header. You should also be redirected to my deliveries page when you click "save" when updating availabilities.
  5. Try to log in, close the tab, open another tab, and try to access other pages, and see if an error occurs.

Related Issues

Which issues does this PR resolve/work on? Closes #