Page MenuHomePhabricator

[native] Disable typeahead and media buttons in edit mode
ClosedPublic

Authored by kuba on Apr 14 2023, 1:34 AM.
Tags
None
Referenced Files
Unknown Object (File)
Sun, May 19, 2:20 PM
Unknown Object (File)
Thu, May 16, 6:13 AM
Unknown Object (File)
Tue, May 14, 12:53 AM
Unknown Object (File)
Mon, May 6, 12:36 PM
Unknown Object (File)
Sat, May 4, 6:13 AM
Unknown Object (File)
Mar 28 2024, 3:03 AM
Unknown Object (File)
Mar 28 2024, 3:03 AM
Unknown Object (File)
Mar 28 2024, 3:02 AM
Subscribers

Details

Summary

We don't want to display typeahead and media buttons in edit mode.

Test Plan

Run the app. Entered exit mode. Checked if the media buttons disappeared, and if typeahead tooltip wasn't showing. Exited edit mode. Checked if everything appeared again.

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

native/chat/chat-input-bar.react.js
634–636 ↗(On Diff #25159)

can you instead make the expandoButton null if this.isEditMode() or !this.state.buttonsExpanded ?
Like we do with statusBar in most places.
This will also get rid of {this.state.buttonsExpanded ? expandoButton : null} from JSX.

native/chat/chat-input-bar.react.js
634–636 ↗(On Diff #25159)

If I use display: 'none', the margin from the left side is automatically set. In that case we have exactly the same margin from the left as there would be the arrow. As we discussed yesterday in the office, I asked Ted about the paddings on Figma.

native/chat/chat-input-bar.react.js
634–636 ↗(On Diff #25159)
This revision is now accepted and ready to land.Apr 20 2023, 7:38 AM