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
Unknown Object (File)
Wed, Dec 11, 12:07 AM
Unknown Object (File)
Sat, Dec 7, 8:39 PM
Unknown Object (File)
Sat, Dec 7, 8:39 PM
Unknown Object (File)
Thu, Dec 5, 8:12 AM
Unknown Object (File)
Thu, Dec 5, 8:12 AM
Unknown Object (File)
Thu, Dec 5, 8:11 AM
Unknown Object (File)
Nov 9 2024, 11:46 PM
Unknown Object (File)
Nov 8 2024, 5:05 PM
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
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 ↗(On Diff #24798)

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).