Page MenuHomePhabricator

[native] Displaying 'Edit' labels next to edited messages
ClosedPublic

Authored by kuba on Mar 14 2023, 1:56 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Apr 6, 11:12 AM
Unknown Object (File)
Wed, Mar 27, 10:24 PM
Unknown Object (File)
Wed, Mar 27, 10:12 PM
Unknown Object (File)
Mar 7 2024, 11:39 AM
Unknown Object (File)
Mar 7 2024, 11:01 AM
Unknown Object (File)
Mar 7 2024, 10:15 AM
Unknown Object (File)
Mar 7 2024, 9:47 AM
Unknown Object (File)
Mar 7 2024, 7:25 AM
Subscribers

Details

Summary

Added displaying 'Edit' label next to edited messages.

Test Plan

message not edited and without thread/reactions,
message edited without thread/reactions,
message not edited with thread/reactions,
message edited with thread,
message edited with reactions,
message edited with thread and reactions,
many edited messages in a row,

Screenshots:

Screenshot 2023-03-22 at 21.08.44.png (850×1 px, 321 KB)

Screenshot 2023-03-22 at 21.08.57.png (374×1 px, 171 KB)

Made sure on iOS that no Message height warnings are displayed in the console.

Diff Detail

Repository
rCOMM Comm
Branch
kuba/messageediting
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Added messageHeight of edited messages

kuba added inline comments.
native/chat/utils.js
77 ↗(On Diff #24259)

If we already display threads/reactions container, the height is not changed.

What designs are you using? The designs I found (here) show the label next to the message.
I also see no comments regarding this, in what I guess is the task this diff is addressing (here)

In D7066#214557, @inka wrote:

What designs are you using? The designs I found (here) show the label next to the message.
I also see no comments regarding this, in what I guess is the task this diff is addressing (here)

The designs that I used are here: https://linear.app/comm/issue/DES-38#comment-3d7826f4. They cover also displaying both the Edited label and threads/reactions icons.
Added link to that linear task.

Thank you for adding the link to the task. The DES task you linked is for Desktop though, and this is Native. Was it decided anywhere that we should use Desktop designs for Native?

In D7066#214942, @inka wrote:

Thank you for adding the link to the task. The DES task you linked is for Desktop though, and this is Native. Was it decided anywhere that we should use Desktop designs for Native?

Thank you for checking it!
You are right. I have used designs from this issue, and matched styling with the web version.

I prepared changes to match the other designs. I asked Ted about what is the final decision.

In D7066#214942, @inka wrote:

Thank you for adding the link to the task. The DES task you linked is for Desktop though, and this is Native. Was it decided anywhere that we should use Desktop designs for Native?

Ted confirmed that we stay with the currently implemented design: https://linear.app/comm/issue/DES-39#comment-58e3dea0

Matched editedLabelHeight with new fontSize

This revision is now accepted and ready to land.Mar 30 2023, 7:09 AM