HomePhabricator
Diffusion Comm afba840f9fb3

[native] Added edit button to the Tooltip

Description

[native] Added edit button to the Tooltip

Summary: Added Edit button to the tooltip, which selects a message for editing. It is shown only for messages in which the author is the viewer. The edit button is hidden behind the EDIT_BUTTON_DISPLAY feature flag.

Test Plan:
Checked if the edit button displays correctly in the tooltip.
Checked if the buttons are correctly handled and if there are many of them.
Checked if the state is correctly changed in dev tools.
Checked if the button is only shown for users from staff.js.

Screenshot 2023-04-07 at 16.02.41.png (472×732 px, 96 KB)

Reviewers: michal, inka, ginsu

Reviewed By: inka

Subscribers: ashoat, tomek, atul

Differential Revision: https://phab.comm.dev/D7343

Details

Provenance
kosmydel <kukubaczek@gmail.com>Authored on Apr 6 2023, 1:06 AM
Reviewer
inka
Differential Revision
D7343: [native] Added edit button to the Tooltip
Parents
rCOMM921b8bba564c: [native] Add EditState to the InputState
Branches
Unknown
Tags
Unknown