Page MenuHomePhabricator

[native] Add alert when exiting edit mode by clicking the exit button
ClosedPublic

Authored by kuba on Apr 7 2023, 7:23 AM.
Tags
None
Referenced Files
F3185865: D7349.id24957.diff
Fri, Nov 8, 1:48 PM
F3185420: D7349.id25028.diff
Fri, Nov 8, 12:55 PM
F3185273: D7349.id25667.diff
Fri, Nov 8, 12:44 PM
F3184551: D7349.diff
Fri, Nov 8, 11:02 AM
F3183930: D7349.diff
Fri, Nov 8, 10:02 AM
F3179809: D7349.id.diff
Fri, Nov 8, 3:36 AM
Unknown Object (File)
Tue, Nov 5, 4:48 AM
Unknown Object (File)
Tue, Nov 5, 4:48 AM
Subscribers

Details

Summary

We want to make sure, that the user wanted to close the editing panel. Created a discard edited changes modal. It displays only if there are some changes in the message.

Test Plan

Run the app on iOS.

  1. Selected message to edit. Edited it. Pressed exit edit mode button. The alert appears.
  2. Checked if the alert only appears if there are some changes in the message.
  3. Checked if in both scenarios we restore the message draft after exiting edit mode.

Screenshot 2023-04-12 at 14.57.07.png (374×1 px, 227 KB)

Diff Detail

Repository
rCOMM Comm
Branch
kuba/messageediting
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kuba edited the test plan for this revision. (Show Details)
inka added inline comments.
native/chat/chat-input-bar.react.js
801

I think we omit the "the" in names

This revision is now accepted and ready to land.Apr 11 2023, 4:06 AM

Renamed isMessageEdited function

Could you also share a screenshot from Android?

Added styling to discard button

In D7349#220108, @tomek wrote:

Could you also share a screenshot from Android?

Sure. Updated the test plan. I changed also Discard edit button styling to red (on iOS).