Keep disable gates around for now

This commit is contained in:
Eric Bailey
2026-01-19 15:11:19 -06:00
parent 0281a0e160
commit 0823b66f3a
4 changed files with 27 additions and 13 deletions
@@ -23,7 +23,8 @@ export const enabled = createIsEnabledCheck(props => {
isExistingUserAsOf( isExistingUserAsOf(
'2026-01-16T00:00:00.000Z', '2026-01-16T00:00:00.000Z',
props.currentProfile.createdAt, props.currentProfile.createdAt,
) ) &&
!props.gate('disable_live_now_beta')
) )
}) })
+4 -1
View File
@@ -1,3 +1,6 @@
export type Gate = export type Gate =
// Keep this alphabetic please. // Keep this alphabetic please.
'debug_show_feedcontext' | 'is_bsky_team_member' // special, do not remove | 'debug_show_feedcontext'
| 'is_bsky_team_member' // special, do not remove
| 'disable_onboarding_find_contacts'
| 'disable_live_now_beta'
+7 -1
View File
@@ -3,6 +3,7 @@ import {View} from 'react-native'
import * as bcp47Match from 'bcp-47-match' import * as bcp47Match from 'bcp-47-match'
import {useEnableKeyboardControllerScreen} from '#/lib/hooks/useEnableKeyboardController' import {useEnableKeyboardControllerScreen} from '#/lib/hooks/useEnableKeyboardController'
import {useGate} from '#/lib/statsig/statsig'
import {useLanguagePrefs} from '#/state/preferences' import {useLanguagePrefs} from '#/state/preferences'
import { import {
Layout, Layout,
@@ -30,6 +31,7 @@ import {StepSuggestedStarterpacks} from './StepSuggestedStarterpacks'
export function Onboarding() { export function Onboarding() {
const t = useTheme() const t = useTheme()
const gate = useGate()
const {contentLanguages} = useLanguagePrefs() const {contentLanguages} = useLanguagePrefs()
const probablySpeaksEnglish = useMemo(() => { const probablySpeaksEnglish = useMemo(() => {
@@ -42,7 +44,11 @@ export function Onboarding() {
const findContactsEnabled = const findContactsEnabled =
useIsFindContactsFeatureEnabledBasedOnGeolocation() useIsFindContactsFeatureEnabledBasedOnGeolocation()
const showFindContacts = ENV !== 'e2e' && IS_NATIVE && findContactsEnabled const showFindContacts =
ENV !== 'e2e' &&
IS_NATIVE &&
findContactsEnabled &&
!gate('disable_onboarding_find_contacts')
const [state, dispatch] = useReducer( const [state, dispatch] = useReducer(
reducer, reducer,
+14 -10
View File
@@ -15,6 +15,7 @@ import {
type CommonNavigatorParams, type CommonNavigatorParams,
type NavigationProp, type NavigationProp,
} from '#/lib/routes/types' } from '#/lib/routes/types'
import {useGate} from '#/lib/statsig/statsig'
import {sanitizeDisplayName} from '#/lib/strings/display-names' import {sanitizeDisplayName} from '#/lib/strings/display-names'
import {sanitizeHandle} from '#/lib/strings/handles' import {sanitizeHandle} from '#/lib/strings/handles'
import {useProfileShadow} from '#/state/cache/profile-shadow' import {useProfileShadow} from '#/state/cache/profile-shadow'
@@ -91,6 +92,7 @@ export function SettingsScreen({}: Props) {
const [showDevOptions, setShowDevOptions] = useState(false) const [showDevOptions, setShowDevOptions] = useState(false)
const findContactsEnabled = const findContactsEnabled =
useIsFindContactsFeatureEnabledBasedOnGeolocation() useIsFindContactsFeatureEnabledBasedOnGeolocation()
const gate = useGate()
return ( return (
<Layout.Screen> <Layout.Screen>
@@ -209,16 +211,18 @@ export function SettingsScreen({}: Props) {
<Trans>Content and media</Trans> <Trans>Content and media</Trans>
</SettingsList.ItemText> </SettingsList.ItemText>
</SettingsList.LinkItem> </SettingsList.LinkItem>
{IS_NATIVE && findContactsEnabled && ( {IS_NATIVE &&
<SettingsList.LinkItem findContactsEnabled &&
to="/settings/find-contacts" !gate('disable_settings_find_contacts') && (
label={_(msg`Find friends from contacts`)}> <SettingsList.LinkItem
<SettingsList.ItemIcon icon={ContactsIcon} /> to="/settings/find-contacts"
<SettingsList.ItemText> label={_(msg`Find friends from contacts`)}>
<Trans>Find friends from contacts</Trans> <SettingsList.ItemIcon icon={ContactsIcon} />
</SettingsList.ItemText> <SettingsList.ItemText>
</SettingsList.LinkItem> <Trans>Find friends from contacts</Trans>
)} </SettingsList.ItemText>
</SettingsList.LinkItem>
)}
<SettingsList.LinkItem <SettingsList.LinkItem
to="/settings/appearance" to="/settings/appearance"
label={_(msg`Appearance`)}> label={_(msg`Appearance`)}>