Page MenuHomePhabricator

[web] Displaying modal of editing message GUI
ClosedPublic

Authored by kuba on May 16 2023, 5:40 AM.
Tags
None
Referenced Files
Unknown Object (File)
Wed, Dec 4, 4:05 AM
Unknown Object (File)
Wed, Dec 4, 4:05 AM
Unknown Object (File)
Wed, Dec 4, 4:05 AM
Unknown Object (File)
Tue, Dec 3, 10:52 PM
Unknown Object (File)
Tue, Dec 3, 10:52 PM
Unknown Object (File)
Tue, Dec 3, 10:52 PM
Unknown Object (File)
Mon, Dec 2, 8:43 PM
Unknown Object (File)
Tue, Nov 26, 11:16 PM
Subscribers

Details

Summary

Added displaying editing message modal in place of the original message.

Test Plan
  • Entered edit mode.
  • Checked if the background is dimmed, and the modal displayed on top of it.
  • Resized window, checked if the position was updated.
  • Exited edit mode.
  • Checked if the modal disappeared.

Screenshot:

Screenshot 2023-05-16 at 14.42.06.png (1×1 px, 106 KB)

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

web/chat/edit-message-provider.js
74 ↗(On Diff #26644)

This is obviously needed, but I don't understand why, could you explain? Isn't the width measured from a component inside of the ComposedMessage? Why is the delivery icon included in the width?

web/chat/edit-message-provider.js
12 ↗(On Diff #26644)

Is this something we can also use for rendering the delivery icon, so that we can guarantee it is referenced / used in both places, and future maintainers are aware? Otherwise this is very brittle and hard to maintain... it's likely something changes with the delivery icon, and nobody will know that this code needs to be updated

I removed completely the width property from the EditTextMessage component. It turned out it was completely unnecessary.

This revision is now accepted and ready to land.May 23 2023, 4:32 AM