Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature: Unread posts indicator #375

Draft
wants to merge 12 commits into
base: bugfix/communication/not-increase-unread-counter-in-chat
Choose a base branch
from

Conversation

FelberMartin
Copy link
Collaborator

@FelberMartin FelberMartin commented Feb 2, 2025

Problem Description

When navigating to a chat with unread posts, the users had no clear indicator where the new unread posts begin. This PR adds an unread indicator inspired by slack and ls1intum/Artemis#10018

Changes

  • Added unread indicator
  • Added index to paged posts to correctly display the unread indicator

Steps for testing

  • Go to any chat with unread posts
  • See that a visual indicator separates read from unread posts

Screenshots

image

Follow-up

Known bug:
When the unread counter in the ConversationOverview increases due to a websocket update (the user is currently in the communication tab and a new post in a chat that is not open is sent), then the unread indicator is not displayed. This is due to the unread counter only being updated in the ConversationOverviewViewmodel. This bug will be tackled with #394

@FelberMartin FelberMartin self-assigned this Feb 2, 2025
@FelberMartin FelberMartin marked this pull request as ready for review February 6, 2025 15:07
@FelberMartin FelberMartin added the ready for review This PR can be reviewed label Feb 6, 2025
@FelberMartin FelberMartin marked this pull request as draft February 7, 2025 10:14
@FelberMartin FelberMartin force-pushed the feature/communication/unread-posts-indicator branch from 980a509 to e990bcf Compare February 7, 2025 14:51
@FelberMartin FelberMartin changed the base branch from develop to bugfix/communication/not-increase-unread-counter-in-chat February 7, 2025 14:52
@FelberMartin FelberMartin force-pushed the feature/communication/unread-posts-indicator branch from e990bcf to 84aafb5 Compare February 7, 2025 14:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ready for review This PR can be reviewed
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant