Page MenuHomePhabricator

[native][web] Show an option to delete a message
ClosedPublic

Authored by tomek on Fri, Apr 4, 3:24 AM.
Tags
None
Referenced Files
F5754751: D14542.id47714.diff
Mon, Apr 14, 11:53 AM
Unknown Object (File)
Mon, Apr 14, 2:01 AM
Unknown Object (File)
Sat, Apr 12, 7:56 PM
Unknown Object (File)
Thu, Apr 10, 11:10 AM
Unknown Object (File)
Wed, Apr 9, 3:44 PM
F5353067: web-delete-icon.png
Wed, Apr 9, 9:46 AM
F5353064: web-delete-icon.png
Wed, Apr 9, 9:45 AM
Unknown Object (File)
Wed, Apr 9, 6:37 AM
Subscribers
None

Details

Summary

Add a new option to our tooltips. Its presence is based on permissions, so it's better to land this diff together with the rest of this stack.

https://linear.app/comm/issue/ENG-10344/show-an-option-in-the-ui-to-delete-a-message

Web:

web-delete-icon.png (160×624 px, 12 KB)

Native:

delete-button-native-2.png (270×448 px, 27 KB)

delete-button-native-1.png (439×451 px, 50 KB)

Depends on D14541

Test Plan

Checked on both native and web if it is possible to delete a message.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

tomek requested review of this revision.Fri, Apr 4, 3:42 AM

For web I agree the style of the icon should be more similar (outline vs fill). For native, does the action sheet only pop up if there are too many actions, and the user clicks more to see the extra actions?

For web I agree the style of the icon should be more similar (outline vs fill).

Ok, I'll search for something else

For native, does the action sheet only pop up if there are too many actions, and the user clicks more to see the extra actions?

Yes, exactly

ashoat requested changes to this revision.Fri, Apr 4, 8:54 AM

I want to review the icon before landing, but this generally looks good

lib/utils/delete-message-utils.js
107–108 ↗(On Diff #47653)

Should we use a utility that checks if the type is composable?

This revision now requires changes to proceed.Fri, Apr 4, 8:54 AM

Close the tooltip after deleting a message

tomek planned changes to this revision.Wed, Apr 9, 8:15 AM

Use the util and replace the web icon

I want to review the icon before landing, but this generally looks good

Replaced the icon with something from FontAwesome

web-delete-icon.png (160×624 px, 12 KB)

This revision is now accepted and ready to land.Wed, Apr 9, 8:02 PM

Fix deleting messages in a sidebar