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

feat: show read receipt in message header (WPB-6284) #16851

Merged
merged 4 commits into from
Feb 26, 2024
Merged

Conversation

V-Gira
Copy link
Contributor

@V-Gira V-Gira commented Feb 16, 2024

StoryWPB-6284 [Web] Message Group Header Read indicators

Description

A non clickeable read receipt is added after the message header (username + timestamp)
It reflects the status of the last message in the group

Screenshots/Screencast (for UI changes)

1on1:
image

Group:
image

Checklist

  • PR has been self reviewed by the author;
  • Hard-to-understand areas of the code have been commented;
  • If it is a core feature, unit tests have been added;

Copy link

codecov bot commented Feb 16, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 45.97%. Comparing base (660e673) to head (32cb18a).
Report is 3 commits behind head on dev.

Additional details and impacted files
@@           Coverage Diff           @@
##              dev   #16851   +/-   ##
=======================================
  Coverage   45.97%   45.97%           
=======================================
  Files         748      748           
  Lines       24494    24496    +2     
  Branches     5592     5593    +1     
=======================================
+ Hits        11262    11263    +1     
  Misses      11807    11807           
- Partials     1425     1426    +1     

@V-Gira V-Gira marked this pull request as ready for review February 26, 2024 10:29
@V-Gira V-Gira requested review from otto-the-bot and a team as code owners February 26, 2024 10:29
Comment on lines +183 to +188
<ReadIndicator
message={lastMessageInGroup}
is1to1Conversation={conversation.is1to1()}
isLastDeliveredMessage={isLastDeliveredMessage || lastMessageInGroup.status() === StatusType.DELIVERED}
showIconOnly
/>
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead of the message directly after the header, we pass the last message in the group to the read indicator.

Copy link
Contributor

@atomrc atomrc left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

seems solid 😎

@V-Gira V-Gira merged commit 1f803f7 into dev Feb 26, 2024
11 checks passed
@V-Gira V-Gira deleted the v/header-read-receipt branch February 26, 2024 10:55
V-Gira added a commit that referenced this pull request Mar 13, 2024
V-Gira added a commit that referenced this pull request Mar 13, 2024
* Revert "feat: show read receipt in message header (WPB-6284) (#16851)"

This reverts commit 1f803f7.

* runfix: remove read receipt from message header (WPB-6980)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants