Page MenuHomePhabricator

[native] Move edit message listeners set up in ChatInputBar to function component
ClosedPublic

Authored by angelika on Nov 22 2024, 4:40 AM.
Tags
None
Referenced Files
F3567034: D14014.id.diff
Fri, Dec 27, 8:30 PM
F3566847: D14014.id46119.diff
Fri, Dec 27, 7:59 PM
F3565837: D14014.id45954.diff
Fri, Dec 27, 5:52 PM
F3565248: D14014.diff
Fri, Dec 27, 4:38 PM
F3564919: D14014.diff
Fri, Dec 27, 3:11 PM
Unknown Object (File)
Fri, Dec 20, 10:41 PM
Unknown Object (File)
Fri, Dec 20, 8:06 PM
Unknown Object (File)
Wed, Dec 18, 8:25 PM
Subscribers

Details

Summary
Test Plan

Tested this diff stack by playing around with ChatInputBar on both iOS simulator and Android device:

  • focus the text input and verify the keyboard is up and the camera buttons are animated correctly
  • try to send the message, verify the send button is animated correctly
  • verify the text input can be unfocused and keyboard is hidden
  • verify the draft works: write text, navigate from the chat, navigate into the chat again, verify the text is kept and the $
  • verify the edit mode works by editing a message
  • try to close the chat while editing a message - the alert should be shown
  • try to join a thread
  • try to select typed text

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

ashoat requested changes to this revision.Nov 24 2024, 6:32 PM
ashoat added inline comments.
native/chat/chat-input-bar.react.js
1391–1393 ↗(On Diff #45954)

I think it's messy to define this in the same useEffect as the other stuff. Why not implement a separate useEffect?

This revision now requires changes to proceed.Nov 24 2024, 6:32 PM
native/chat/chat-input-bar.react.js
364–375 ↗(On Diff #46030)

Why do these two appear to be removed in this diff?

1034 ↗(On Diff #46030)

What's the relevance of this change? It seems like you're fixing a mistake from a different diff?

ashoat requested changes to this revision.Nov 25 2024, 8:26 AM

Passing back with questions

This revision now requires changes to proceed.Nov 25 2024, 8:26 AM
ashoat requested changes to this revision.Nov 26 2024, 5:31 AM

Removing from my queue

(In the future, you can hit "Plan Changes" after a rebase update to keep a diff with requested changes on your queue instead of sending it back to your reviewers' queue)

This revision now requires changes to proceed.Nov 26 2024, 5:31 AM

Actually, the feedback has been completely addressed. My apologies!

This revision is now accepted and ready to land.Nov 26 2024, 5:33 AM