After user clicks a link, we're going to call link verification endpoint. Based on the result, we will navigate user to this modal.
Depends on D7522
Paths
| Differential D7524 Authored by tomek on Apr 19 2023, 5:34 AM.
Details
Summary After user clicks a link, we're going to call link verification endpoint. Based on the result, we will navigate user to this modal. Depends on D7522 Test Plan Open a link that:
Diff Detail
Event TimelineHerald added subscribers: atul, ashoat. · View Herald TranscriptApr 19 2023, 5:34 AM2023-04-19 05:34:04 (UTC-7)
tomek edited the summary of this revision. (Show Details)Apr 19 2023, 5:39 AM2023-04-19 05:39:57 (UTC-7) Harbormaster completed remote builds in B18503: Diff 25339.Apr 19 2023, 6:03 AM2023-04-19 06:03:32 (UTC-7) Comment Actions Would it make sense to add an invariant to check that this modal is not called with `status: 'already_joined'? Currently there is nothing stopping someone from doing that, because there is no type checking. And the modal would be displayed without errors, with a message that would be incorrect and misleading. tomek added a child revision: D7525: [keyserver] Introduce invite link handler.Apr 19 2023, 9:49 AM2023-04-19 09:49:36 (UTC-7) This revision is now accepted and ready to land.Apr 21 2023, 2:25 AM2023-04-21 02:25:22 (UTC-7) Comment Actions
Yeah, adding some validation is a good idea! Comment Actions
Instead of using an invariant I decided that we can simply close the modal. This is consistent with our approach that a modal shouldn't be opened when a user is a member of the community. Harbormaster failed remote builds in B18807: Diff 25765!Apr 26 2023, 7:05 AM2023-04-26 07:05:56 (UTC-7) Harbormaster completed remote builds in B18814: Diff 25774.Apr 26 2023, 1:06 PM2023-04-26 13:06:57 (UTC-7) Closed by commit rCOMM6725c0b6164d: [native] Create invitation modal (authored by tomek). · Explain WhyApr 27 2023, 7:15 AM2023-04-27 07:15:35 (UTC-7) This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 25339 native/navigation/invite-link-modal.react.js
native/navigation/root-navigator.react.js
native/navigation/route-names.js
native/themes/colors.js
|