-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
Put subscribe dividers inside message group #36984
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
base: main
Are you sure you want to change the base?
Put subscribe dividers inside message group #36984
Conversation
64e5a10 to
d95318a
Compare
f8b4657 to
6eeb414
Compare
137cb82 to
ba74352
Compare
|
The notice text should not be the same color as message text. We can try 75% opacity, which looks to be what the date has? |
|
Let's see how that looks. We may want to do small caps after all, to avoid blending in with message text, if it's not enough to make it feel distinct. |
@alya This is with 75% opacity for subscription status |
Earlier, message groups were split for all subscription markers. What it means in practice is that even if two messages from same topic were in succession and a subscription marker was in between these two messages, they would be forced to split into two separate message groups, even in topic narrows. We change this message group splitting based on subscription markers and only split when message recipients are different. The earlier subscription markers are now moved inside the message group and render on the same line as date dividers. `want_subscription_status_divider` is always false for first message container in the group and for private messages. Fixes: zulip#36905.
ba74352 to
5e3924d
Compare
|
Anyway, it would be great if you could post a version with matching just the color of the timestamp vs. matching color and font (both light and dark theme) for discussion in #design. |

Currently two consecutive messages are split into two message groups if the user subscribed/unsubscribed between them even if the recipient is same(both message are in same topic).
We move such bookend divider which have same recipient above and below it into the message group itself and prevent it from making two separate message groups. We still show bookend in between two message groups if the message recipient is different.
We use
want_subscription_status_dividerin message containers to denote if we want subscription divider above the message. Obviously this meanswant_subscription_status_dividerof top most message in a message group isfalse.For narrow space, date content has more preference to fit its content than subscription status(subscription text ellipsis).
Fixes: #36905.
How changes were tested:
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: