ucsb-cs156 / proj-happycows

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

BUG: Disallow ability to navigate to unjoined commons #116

Open sangitakunapuli opened 6 months ago

sangitakunapuli commented 6 months ago

Have you updated the title?

Summary

If a user is not currently part of a commons, they can still navigate to the URL for that commons and get a undefined page:

Screenshot 2024-05-15 at 11 42 21 AM

Expected Behavior

The user should be able to see some dialogue that indicates that they have not joined this commons yet, or they should be redirected to a page that tells them they do not have access.

Current / Observed Behavior

This is the current behavior:

Screenshot 2024-05-15 at 11 44 03 AM

Steps to Reproduce

  1. Create a new commons (as an admin), but do not join the commons.
  2. Navigate to the https://happycows.dokku-XX.cs.ucsb.edu/play/{commonsId} page
  3. Observe the behavior

Browser / Platform Info

No response