Skip to content

Commit 075dd4f

Browse files
authored
Merge pull request #7268 from StoDevX/drew/remove-feature-flag-implementation
remove app-config and feature flag implementation
2 parents 124bb0e + 862899b commit 075dd4f

File tree

13 files changed

+3
-318
lines changed

13 files changed

+3
-318
lines changed

modules/app-config/__tests__/useCourseSearchRecentsScreen.test.tsx

Lines changed: 0 additions & 70 deletions
This file was deleted.

modules/app-config/index.ts

Lines changed: 0 additions & 40 deletions
This file was deleted.

modules/app-config/package.json

Lines changed: 0 additions & 16 deletions
This file was deleted.

modules/app-config/types.ts

Lines changed: 0 additions & 19 deletions
This file was deleted.

package-lock.json

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

source/lib/storage.ts

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -6,29 +6,13 @@ import {
66
setItem,
77
setStoragePrefix,
88
} from '@frogpond/storage'
9-
import {AppConfigEntry} from '@frogpond/app-config'
109
import type {FilterComboType} from '../views/sis/course-search/lib/format-filter-combo'
1110
import type {CourseType, TermType} from './course-search/types'
1211

1312
export {clearAsyncStorage}
1413

1514
setStoragePrefix('aao:')
1615

17-
/// MARK: Feature flags
18-
19-
const featureFlagsKey = 'app:feature-flag'
20-
export function setFeatureFlag(
21-
name: AppConfigEntry,
22-
value: boolean,
23-
): Promise<void> {
24-
const key = `${featureFlagsKey}:${name}`
25-
return setItem(key, value)
26-
}
27-
export function getFeatureFlag(name: AppConfigEntry): Promise<boolean> {
28-
const key = `${featureFlagsKey}:${name}`
29-
return getItemAsBoolean(key)
30-
}
31-
3216
/// MARK: Settings
3317

3418
const homescreenOrderKey = 'homescreen:view-order'

source/navigation/routes.tsx

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -284,11 +284,6 @@ const SettingsStackScreens = () => {
284284

285285
{/* developer */}
286286
<SettingsStack.Group>
287-
<SettingsStack.Screen
288-
component={settings.FeatureFlagView}
289-
name="FeatureFlags"
290-
options={settings.FeatureFlagNavigationOptions}
291-
/>
292287
<SettingsStack.Screen
293288
component={settings.APITestView}
294289
name="APITest"

source/navigation/types.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ export type RootViewsParamList = {
4949
More: undefined
5050
PrintJobs: undefined
5151
StudentOrgs: undefined
52-
} & Pick<MiscViewParamList, 'CourseSearchResults'>
52+
}
5353

5454
export type CafeMenuParamList = {
5555
CarletonBurtonMenu: undefined
@@ -100,7 +100,6 @@ export type SettingsStackParamList = {
100100
Credits: undefined
101101
[debug.NavigationKey]: {keyPath: string[]}
102102
Faq: undefined
103-
FeatureFlags: undefined
104103
IconSettings: undefined
105104
Legal: undefined
106105
NetworkLogger: undefined

source/views/home/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const styles = StyleSheet.create({
2525

2626
function HomePage(): JSX.Element {
2727
let navigation = useNavigation()
28-
let allViews = AllViews().filter((view) => !view.disabled ?? true)
28+
let allViews = AllViews().filter((view) => !view.disabled)
2929
let columns = partitionByIndex(allViews)
3030

3131
return (

source/views/settings/index.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,10 +7,6 @@ export {IconSettingsView} from './screens/change-icon'
77
export {CreditsView} from './screens/credits'
88
export {LegalView} from './screens/legal'
99
export {PrivacyView} from './screens/privacy'
10-
export {
11-
View as FeatureFlagView,
12-
NavigationOptions as FeatureFlagNavigationOptions,
13-
} from './screens/feature-flags'
1410

1511
// Developer settings
1612
export {DebugRootView} from './screens/debug'

source/views/settings/screens/feature-flags.tsx

Lines changed: 0 additions & 114 deletions
This file was deleted.

source/views/settings/screens/overview/developer.tsx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ export const DeveloperSection = (): React.ReactElement => {
1414
const onComponentsButton = () => navigation.navigate('ComponentLibrary')
1515
const onAPIButton = () => navigation.navigate('APITest')
1616
const onBonAppButton = () => navigation.navigate('BonAppPicker')
17-
const onFeatureFlagsButton = () => navigation.navigate('FeatureFlags')
1817
const onDebugButton = () => navigation.navigate(DebugKey, {keyPath: ['Root']})
1918
const onNetworkLoggerButton = () => navigation.navigate('NetworkLogger')
2019
const sendSentryMessage = () => {
@@ -42,7 +41,6 @@ export const DeveloperSection = (): React.ReactElement => {
4241
return (
4342
<>
4443
<Section header="DEVELOPER">
45-
<PushButtonCell onPress={onFeatureFlagsButton} title="Feature Flags" />
4644
<PushButtonCell onPress={onComponentsButton} title="Components" />
4745
<PushButtonCell onPress={onAPIButton} title="API Tester" />
4846
<PushButtonCell onPress={onBonAppButton} title="Bon Appetit Picker" />

0 commit comments

Comments
 (0)