ucsb-cs156-w24 / proj-happy-cows-w24-4pm-3

https://ucsb-cs156-w24.github.io/proj-happy-cows-w24-4pm-3/
0 stars 0 forks source link

BUG: you should not be able to create a start date for a commons if the date is in the future #3

Open github-actions[bot] opened 8 months ago

github-actions[bot] commented 8 months ago

Have you updated the title?

Summary

When an Admin creates a new commons with a start date in the future (today is 11/16):

Screenshot 2023-11-16 at 2 54 49 PM

A user can enter the commons and an arbitrary date # is displayed at the top of the commons page:

Screenshot 2023-11-16 at 2 56 03 PM

Expected Behavior

If the starting date has not happened yet (set to a future date), the commons should not be able to be joined.

When a user attempts to join a commons, they should see a dialogue saying that the commons hasn't started yet and cannot be joined. They should see the starting date of the commons.

Current / Observed Behavior

The commons is joinable and displays day number at the top of the commons.

Steps to Reproduce

  1. As an admin, create a new commons in the future
  2. Join the commons
  3. Visit the commons
  4. Check the "Today is day __" dialogue at the top of the screen

Browser / Platform Info

Chrome on MacOS