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
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
Unknown Object (File)
Tue, Nov 5, 4:48 AM
Unknown Object (File)
Tue, Nov 5, 2:43 AM
Unknown Object (File)
Tue, Nov 5, 2:42 AM
Unknown Object (File)
Mon, Oct 28, 12:59 PM
Unknown Object (File)
Sep 28 2024, 6:29 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
Lint
Lint Not Applicable
Unit
Tests Not Applicable

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