Page MenuHomePhabricator

[web] Store edited message draft in the state
ClosedPublic

Authored by kuba on May 16 2023, 1:57 AM.
Tags
None
Referenced Files
F6316217: D7825.id.diff
Sat, Apr 26, 1:46 PM
F6290884: D7825.diff
Sat, Apr 26, 2:09 AM
F6290823: D7825.diff
Sat, Apr 26, 2:05 AM
F6290344: D7825.diff
Sat, Apr 26, 1:35 AM
Unknown Object (File)
Thu, Apr 24, 11:07 PM
Unknown Object (File)
Tue, Apr 22, 9:18 AM
Unknown Object (File)
Mon, Apr 21, 7:15 AM
Unknown Object (File)
Mon, Apr 21, 6:50 AM
Subscribers

Details

Summary

Enabled user to make changes to the text. Storing the draft in the EditState.

Test Plan

Run the app. Checked if user can edit text in the input bar. Checked if the state is updated.

Diff Detail

Repository
rCOMM Comm
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

michal added inline comments.
web/chat/chat-input-text-area.react.js
14 ↗(On Diff #26576)

I think something like onCurrentTextChange is more descriptive

web/chat/edit-message-provider.js
55–57 ↗(On Diff #26576)

Can this happen? Should this be an invariant?

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