Keep disable gates around for now
This commit is contained in:
@@ -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')
|
||||||
)
|
)
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -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'
|
||||||
|
|||||||
@@ -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,
|
||||||
|
|||||||
@@ -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,7 +211,9 @@ 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 &&
|
||||||
|
findContactsEnabled &&
|
||||||
|
!gate('disable_settings_find_contacts') && (
|
||||||
<SettingsList.LinkItem
|
<SettingsList.LinkItem
|
||||||
to="/settings/find-contacts"
|
to="/settings/find-contacts"
|
||||||
label={_(msg`Find friends from contacts`)}>
|
label={_(msg`Find friends from contacts`)}>
|
||||||
|
|||||||
Reference in New Issue
Block a user