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)
Mon, Nov 25, 11:03 AM
Unknown Object (File)
Sat, Nov 23, 12:37 AM
Unknown Object (File)
Fri, Nov 22, 9:06 PM
Unknown Object (File)
Wed, Nov 13, 3:56 AM
Unknown Object (File)
Sun, Nov 10, 7:13 PM
Unknown Object (File)
Sun, Nov 10, 4:13 PM
Unknown Object (File)
Sun, Nov 10, 3:45 PM
Unknown Object (File)
Sun, Nov 10, 10:17 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
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

Added messageHeight of edited messages

kuba added inline comments.
native/chat/utils.js
77

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