-
-
Notifications
You must be signed in to change notification settings - Fork 9.2k
compose: Add new UI for replying to a message. #36956
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?
Conversation
cf88239 to
90314c9
Compare
90314c9 to
ded5c7a
Compare
|
It looks like @terpimost 's design had the reply line in a smaller font than regular message text. Did we discuss doing something different? They look sized the same on this PR. |
|
For some reason the @-slash icon is missing for me (just an empty, clickable space); not sure why. |
|
I'm not sure the message link in the compose box should be clickable. It's kind of confusing if you do end up clicking it. |
70f2594 to
4e0ebbe
Compare
Hmm, it shouldn't happen. Could you try again after rebasing? |
|
I have made some updates:
Does the above screenshot look good? I have not updated the screenshots yet. |
1a7c3bd to
fa61ded
Compare
fa61ded to
ad83547
Compare
ad83547 to
ed02c42
Compare
This PR adds a new way to reply to a message. It adds a new option in the message actions popover "Reply to message" which inserts new reply UI over textarea where the user is composing the message. Fixes zulip#36404.
ed02c42 to
784205d
Compare



This PR adds a new way to reply to a message. It adds a new option in the message actions popover "Reply to message" which inserts new reply UI over textarea where the user is composing the message. The reply UI includes:
The main logic to render reply UI for messages exists in
postprocess_content. If the first block of the rendered content of the message contains both a mention and link to a message, it is converted to a reply block.The text of the message link is computed by extracting text from the first non reply node of rendered HTML content.
There is a technical issue related to showing topic link in the reply UI for moved messages. If the referenced message has been moved, the topic link is determined by message ID of referenced message. But if the message is not locally fetched, topic link is determined from the link present in message content. This might result in incorrect topic link in reply UI.
Fixes: #36404
CZO: #design > message reply feature
How changes were tested:
Screenshots
Dark theme
Light theme
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: