zurichat / zc_main

A Workspace Web App powered by React and Node Js.
187 stars 866 forks source link

Fro/comment board threads #2846

Closed ibimina closed 1 year ago

ibimina commented 1 year ago

Fixes Issue/Linear Ticket

( This could be an existing issue or a linear ticket )

Fix comment threads to send and get messages Refactored pagination

My PR Closes #issue_number_here or

My PR Fixes ID-linear_ticket_number_here

Changes proposed

What were you told to do?

Comment threads section Refactored pagination and scrolling issues

What did you do?

Comment threads

  1. Remove dummy data in comment threads component
  2. Mapped out props from props received from messaging plugin
  3. Added a state that displays a message in greyish color while it's being posted to the database

Pagination

  1. Added a condition to only scroll to the bottom of the webpage when a user enters a channel, when paginating the scrollbar goes to the middle of the page.

Check List (Check all the applicable boxes)

🚨Please review the style guide for contributing and guidelines for contributing to this repository.

Screenshots/ Videos

https://user-images.githubusercontent.com/96787210/206902078-3db3566b-d281-4fc8-9554-1f565dae23d1.mp4