Page MenuHomePhabricator

[native] Add `staffUserHasBeenLoggedInIndicator` to `LoggedInModal`
ClosedPublic

Authored by atul on Oct 31 2022, 2:52 PM.
Tags
None
Referenced Files
F3382750: D5514.id18006.diff
Thu, Nov 28, 11:50 AM
Unknown Object (File)
Mon, Nov 25, 3:50 AM
Unknown Object (File)
Mon, Nov 25, 3:50 AM
Unknown Object (File)
Mon, Nov 25, 3:50 AM
Unknown Object (File)
Mon, Nov 25, 3:50 AM
Unknown Object (File)
Mon, Nov 25, 3:50 AM
Unknown Object (File)
Tue, Nov 19, 4:13 PM
Unknown Object (File)
Tue, Nov 19, 4:13 PM
Subscribers

Details

Summary

Context: https://linear.app/comm/issue/ENG-2134/have-a-flag-that-indicates-whether-the-build-is-a-staff-release

Consumes StaffContext and displays whether a staff user has logged in only if staffCanSee is true.

(Will restyle a bit after diff that adds staffUserHasBeenLoggedIn indicator to Build Info page of Profile tab.)

Test Plan

Here's what it looks like after a staff user has logged in and subsequently logged out:

f0fe25.png (1×696 px, 616 KB)

Diff Detail

Repository
rCOMM Comm
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

remove onPress={undefined} for staffUserHasBeenLoggedInIndicator

atul requested review of this revision.Oct 31 2022, 3:07 PM

Accepting since my comments can be addressed in a later diff

native/account/logged-out-modal.react.js
472 ↗(On Diff #18007)

I'd like to turn this into an ||, but arguably it would make more sense if the context had a single parameter that handled this union. See my comments in D5513 for additional context

475 ↗(On Diff #18007)

See my comments in D5513:

  1. Can we say "ADVANCED LOGGED ENABLED" instead?
  2. Can we make this button actually show an Alert when pressed?
This revision is now accepted and ready to land.Nov 1 2022, 5:28 AM

Accepting since my comments can be addressed in a later diff

Will land as-is and address feedback in followups: https://linear.app/comm/issue/ENG-2134#comment-52a4e6fa