ucsb-cs156-m23 / proj-happycows-m23-10am-4

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

EPIC: All Chat MVP For Front and Backend. #83

Closed iain801 closed 1 year ago

iain801 commented 1 year ago

Overview

In this PR, we combine the implementation of the minimum viable product (MVP) for the Commons Chat. This consists of a minimizable ChatPanel on the PlayPage for each commons. This panel displays the 10 most recent messages in the commons, with usernames, user ids, and timestamps. This window ensures that the chats are sorted, and autolocks the scrollbar to the most recent message (bottom). There is also a form to send a new message, with checks to prevent empty messages. The backend has all the necessary CRUD operation endpoints, including POST and a paginated GET. DELETE is implemented with a hidden flag, and there are admin-only endpoints for retrieving hidden messages. UPDATE is not necessary, as the chats should be immutable, save for the hidden flag.

Refer to #76, #77, and #79 for steps along the way

Screenshots (Optional)

image image image

Validation (Optional)

  1. Download this branch.
  2. Run the project.
  3. Go to the PlayPage for any commons.
  4. Try out some messages!

Tests

Linked Issues

Closes #47 Closes #46 Closes #71 Closes #73 Closes #74 Closes #75

iain801 commented 1 year ago

I reset all rebase commits

iain801 commented 1 year ago

Should be a good merge