Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ import { expect } from 'npm:@playwright/test';
import { BrowserType, Page } from 'npm:playwright';
import { preset, ScreenshotContext } from '../e2e-globals.ts';
import {
disableFeatureFlag,
enableFeatureFlag,
freshlyConnectProject,
getNewBrowserForSideWork,
installMouseFollower,
Expand Down Expand Up @@ -40,9 +38,6 @@ export async function onboardingFlow(
if (preset.showArrow) await installMouseFollower(page);
const user = new UserEmulator(page);

await enableFeatureFlag(page, 'Show in-app onboarding form instead of external link');
await disableFeatureFlag(page, 'Show developer tools');

// Ensure project exists and is connected for this user
await freshlyConnectProject(page, SIGNUP_PROJECT_SHORT_NAME);

Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -203,7 +203,7 @@ class StaticFeatureFlagStore implements IFeatureFlagStore {
}
}

class ServerOnlyFeatureFlag implements FeatureFlag {
class StaticFeatureFlag implements FeatureFlag {
constructor(
readonly key: string,
readonly description: string,
Expand Down Expand Up @@ -249,21 +249,24 @@ export class FeatureFlagService {
this.featureFlagStore
);

readonly showNmtDrafting: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly showNmtDrafting: FeatureFlag = new StaticFeatureFlag(
'SHOW_NMT_DRAFTING',
'Show NMT drafting',
2,
this.featureFlagStore
);

readonly allowForwardTranslationNmtDrafting: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly allowForwardTranslationNmtDrafting: FeatureFlag = new StaticFeatureFlag(
'ALLOW_FORWARD_TRANSLATION_NMT_DRAFTING',
'Allow Forward Translation NMT drafting',
3,
this.featureFlagStore
);

readonly scriptureAudio: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly scriptureAudio: FeatureFlag = new StaticFeatureFlag(
'SCRIPTURE_AUDIO',
'Scripture audio',
4,
Expand Down Expand Up @@ -291,78 +294,89 @@ export class FeatureFlagService {
this.featureFlagStore
);

readonly machineInProcess: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly machineInProcess: FeatureFlag = new StaticFeatureFlag(
'MachineInProcess',
'Use In-Process Machine for Suggestions',
8,
this.featureFlagStore
);

readonly serval: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly serval: FeatureFlag = new StaticFeatureFlag(
'Serval',
'Use Serval for Suggestions',
9,
this.featureFlagStore
);

readonly useEchoForPreTranslation: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly useEchoForPreTranslation: FeatureFlag = new StaticFeatureFlag(
'UseEchoForPreTranslation',
'Allow Echo for Pre-Translation Drafting',
10,
this.featureFlagStore
);

readonly allowFastTraining: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly allowFastTraining: FeatureFlag = new StaticFeatureFlag(
'ALLOW_FAST_TRAINING',
'Allow Fast Pre-Translation Training',
11,
this.featureFlagStore
);

readonly uploadParatextZipForPreTranslation: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly uploadParatextZipForPreTranslation: FeatureFlag = new StaticFeatureFlag(
'UploadParatextZipForPreTranslation',
'Upload Paratext Zip Files for Pre-Translation Drafting',
12,
this.featureFlagStore
);

readonly allowAdditionalTrainingSource: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly allowAdditionalTrainingSource: FeatureFlag = new StaticFeatureFlag(
'AllowAdditionalTrainingSource',
'Allow mixing in an additional training source',
13,
this.featureFlagStore
);

readonly updatedLearningRateForServal: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly updatedLearningRateForServal: FeatureFlag = new StaticFeatureFlag(
'UpdatedLearningRateForServal',
'Updated Learning Rate For Serval',
14,
this.featureFlagStore
);

readonly darkMode: FeatureFlag = new ServerOnlyFeatureFlag('DarkMode', 'Dark mode', 15, this.featureFlagStore);
readonly darkMode: FeatureFlag = new StaticFeatureFlag('DarkMode', 'Dark mode', 15, this.featureFlagStore);

readonly enableLynxInsights: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly enableLynxInsights: FeatureFlag = new StaticFeatureFlag(
'EnableLynxInsights',
'Enable Lynx insights',
16,
this.featureFlagStore
);

readonly newDraftHistory: FeatureFlag = new ServerOnlyFeatureFlag(
/** @deprecated This feature flag is no longer used */
readonly newDraftHistory: FeatureFlag = new StaticFeatureFlag(
'NewDraftHistory',
'Preview new draft history interface',
17,
this.featureFlagStore
);

readonly usfmFormat: FeatureFlag = new ServerOnlyFeatureFlag('UsfmFormat', 'USFM Format', 18, this.featureFlagStore);
/** @deprecated This feature flag is no longer used */
readonly usfmFormat: FeatureFlag = new StaticFeatureFlag('UsfmFormat', 'USFM Format', 18, this.featureFlagStore);

readonly inAppOnboardingForm: ObservableFeatureFlag = new FeatureFlagFromStorage(
/** @deprecated This feature flag is no longer used */
readonly inAppOnboardingForm: FeatureFlag = new StaticFeatureFlag(
'InAppOnboardingForm',
'Show in-app onboarding form instead of external link',
19,
new StaticFeatureFlagStore(true)
this.featureFlagStore
);

get featureFlags(): FeatureFlag[] {
Expand All @@ -372,7 +386,7 @@ export class FeatureFlagService {
get versionSuffix(): string {
// Get the feature flags, sorted alphabetically
const featureFlags: FeatureFlag[] = Object.values(this).filter(
value => value instanceof FeatureFlagFromStorage || value instanceof ServerOnlyFeatureFlag
value => value instanceof FeatureFlagFromStorage || value instanceof StaticFeatureFlag
);
featureFlags.sort((a, b) => a.position - b.position);
const versionNumber = this.getFeatureFlagVersion(featureFlags);
Expand Down
Loading