-
-
Notifications
You must be signed in to change notification settings - Fork 9.1k
read_receipts: Disable showing read receipts for Notification Bot messages. #22908
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
read_receipts: Disable showing read receipts for Notification Bot messages. #22908
Conversation
|
Instead of only applying the disable logic for the notification bot I have applied the logic for all the bots. @alya Is this fine? Also updated suggested text from,
|
a35a1f3 to
67345e2
Compare
|
Hm, could we just apply the logic to Notification Bot? Other bots don't send messages that the app automatically marks as read. |
67345e2 to
bfd9cff
Compare
Cool Done! |
bfd9cff to
0184d0c
Compare
juliaBichler01
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The changes to the code look good to me, but one question/suggestion about how the popup window looks:
Is it on purpose that there is a lot of empty space below the text? I think it would look better if this would be a bit less.
|
Thanks for the review!
We show the simar space if there are no read receipts. I also agree it'd look better if we remove extra space. @alya What do you think? |
|
The design challenge with the popover window is that we show it while the loading indicator is pinning, with a certain height, and then its height potentially changes when the data contents are added; it feels not great. So I think we have a minimum height set in the CSS for what will look good if there's at least one user shown, for example, read receipts for a private message. One possible solution would be to just not have the modal have a loading indicator -- just only open it once we've received a response from the server (if we're making one); that way, you never see the thing's size change shortly after it opens. The downside of that approach would be that you get no feedback that your click was processed properly.. |
|
We don't make any API call for notification bot messages, so for this case, we can remove the minimum height rule. |
0184d0c to
c475f40
Compare
c475f40 to
f6548c5
Compare
@alya Should I implement this? |
Yes, that sounds good to me! |
f6548c5 to
39d7ca2
Compare
39d7ca2 to
a92f001
Compare
|
@alya & @timabbott This is ready for another round of review! |
|
Hmm, I think we went too far with reducing the height required -- the modal looks cut off on the bottom. Can we try leaving as much space on the bottom as we do on the top? |
|
I didn't see any other issues in manual testing. |
a92f001 to
a6e2a22
Compare
On top we have P.S I have updated the screenshot on the top comment. |
|
Hmm, it seems like there must be additional margin coming from somewhere -- I'm still seeing more space on top than on the bottom. |
|
@timabbott do you want to take a look? |
Hmm, maybe I can add one more |
|
I think Alya had a different existing padding as what to match -- there's 16px of padding above the heading, and 10px below; so we should just do the 16px, not 10px. It lgtm changing from 10px to 16px: Merged with that tweak, thanks @Riken-Shah! |
The implementation is simple, we just check if the the message sender is a notification bot to decide if we should show the read receipts list. We also update the modal content styling to match the padding at the top of the modal. Fixes zulip#22905
a6e2a22 to
1557875
Compare
|
Merged, with a bonus commit to move the read receipts CSS next to the related modal CSS. |


The implementation is simple, we just check if the message sender is a notification bot to decide if we should show the read receipts list.
Fixes #22905
Screenshots and screen captures:

Self-review checklist
(variable names, code reuse, readability, etc.).
Communicate decisions, questions, and potential concerns.
Individual commits are ready for review (see commit discipline).
Completed manual review and testing of the following: