Page MenuHomePhabricator

[native] Blocking navigation in edit mode in the TabRouter
ClosedPublic

Authored by kuba on Jun 23 2023, 2:43 AM.
Tags
None
Referenced Files
F3406630: D8304.id28650.diff
Wed, Dec 4, 2:34 AM
F3406570: D8304.id28035.diff
Wed, Dec 4, 2:22 AM
F3406567: D8304.id28137.diff
Wed, Dec 4, 2:21 AM
F3404760: D8304.diff
Tue, Dec 3, 1:04 PM
Unknown Object (File)
Mon, Nov 25, 2:49 PM
Unknown Object (File)
Sat, Nov 23, 4:16 PM
Unknown Object (File)
Sat, Nov 23, 2:04 PM
Unknown Object (File)
Sat, Nov 23, 2:04 PM
Subscribers
None

Details

Summary

When we are in edit mode and the user made changes, we prevent him in this diff from changing tabs.

Test Plan

On iOS:

  • Navigate between threads - check if everything works.
  • Navigate between tabs - check if everything works.
  • Enter edit mode and make changes to the message,
  • Change tab - should confirm with alert.
  • Do the same in the sidebar (enter edit mode and check if the alert displays).

Diff Detail

Repository
rCOMM Comm
Branch
kuba/blocking-navigation
Lint
No Lint Coverage
Unit
No Test Coverage

Event Timeline

kuba edited the summary of this revision. (Show Details)
kuba added inline comments.
native/navigation/nav-selectors.js
340–347

I split it into two functions to reuse it in the new router.

Harbormaster returned this revision to the author for changes because remote builds failed.Jun 23 2023, 3:04 AM
Harbormaster failed remote builds in B20453: Diff 28035!

Rebase & fix calling dispatch from reducer

This revision is now accepted and ready to land.Jun 27 2023, 8:05 PM