ucsb-cs156 / proj-happycows

https://ucsb-cs156.github.io/proj-happycows/
1 stars 0 forks source link

BUG: Commons with future start date should not be able to be joined #88

Closed sangitakunapuli closed 5 months ago

sangitakunapuli commented 11 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