mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-15 14:43:46 +01:00
Merge pull request #32244 from overleaf/ab-labs-in-feature-flags
[web] Merge Labs programme into the Feature flags system GitOrigin-RevId: db75e07bf3272becc11ef1eeda3850098b3daa9d
This commit is contained in:
committed by
Copybot
parent
6f3e0963b8
commit
671df33da3
@@ -1,15 +0,0 @@
|
||||
import getMeta from './meta'
|
||||
|
||||
// Should be `never` when no experiments are active. Otherwise it should be a
|
||||
// union of active experiment names e.g. `'experiment1' | 'experiment2'`
|
||||
|
||||
export type ActiveExperiment =
|
||||
| 'monthly-texlive'
|
||||
| 'bibtex-visual-editor'
|
||||
| 'overleaf-code'
|
||||
| 'editor-tabs'
|
||||
|
||||
export const isInExperiment = (experiment: ActiveExperiment): boolean => {
|
||||
const experiments = getMeta('ol-labsExperiments')
|
||||
return Boolean(experiments?.includes(experiment))
|
||||
}
|
||||
@@ -62,7 +62,6 @@ import { SubscriptionCreationPreview } from '../../../types/subscription/subscri
|
||||
import { DefaultNavbarMetadata } from '@/shared/components/types/default-navbar-metadata'
|
||||
import { FooterMetadata } from '@/shared/components/types/footer-metadata'
|
||||
import type { ScriptLogType } from '../../../modules/admin-panel/frontend/js/features/script-logs/script-log'
|
||||
import { ActiveExperiment } from './labs-utils'
|
||||
import { Subscription as AdminSubscription } from '../../../types/admin/subscription'
|
||||
import { AdminCapability } from '../../../types/admin-capabilities'
|
||||
import { AlgoliaConfig } from '../../../modules/algolia-search/frontend/js/types'
|
||||
@@ -192,7 +191,15 @@ export interface Meta {
|
||||
'ol-itm_referrer': string
|
||||
'ol-joinedGroupName': string
|
||||
'ol-labs': boolean
|
||||
'ol-labsExperiments': ActiveExperiment[] | undefined
|
||||
'ol-labsExperiments': Array<{
|
||||
name: string
|
||||
title: string
|
||||
description: string
|
||||
icon: string
|
||||
surveyLink: string
|
||||
isFull: boolean
|
||||
optedIn: boolean
|
||||
}>
|
||||
'ol-languages': SpellCheckLanguage[]
|
||||
'ol-learnedWords': string[]
|
||||
'ol-legacyEditorThemes': { name: string; dark: boolean }[]
|
||||
|
||||
Reference in New Issue
Block a user