From 0e21f5499c8ad12b09ffc8c107363ada7921d5ac Mon Sep 17 00:00:00 2001 From: Jimmy Domagala-Tang Date: Fri, 21 Jun 2024 09:58:26 -0400 Subject: [PATCH] Merge pull request #19036 from overleaf/jdt-labs-alpha-only feat: only allow alpha users on labs page currently GitOrigin-RevId: 5136d77789fa27a0bd9fe6f17c8937998bc74259 --- services/web/app/src/Features/Project/ProjectController.js | 4 ++-- services/web/frontend/js/utils/meta.ts | 2 +- services/web/locales/en.json | 1 + 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/services/web/app/src/Features/Project/ProjectController.js b/services/web/app/src/Features/Project/ProjectController.js index f05acef55f..3e9448f1a4 100644 --- a/services/web/app/src/Features/Project/ProjectController.js +++ b/services/web/app/src/Features/Project/ProjectController.js @@ -544,8 +544,8 @@ const _ProjectController = { const showAiErrorAssistant = userId && - (!Features.hasFeature('saas') || - (user.features && user.features.aiErrorAssistant)) + Features.hasFeature('saas') && + (user.features?.aiErrorAssistant || user.alphaProgram) const template = detachRole === 'detached' diff --git a/services/web/frontend/js/utils/meta.ts b/services/web/frontend/js/utils/meta.ts index 630b21a39a..709e68c432 100644 --- a/services/web/frontend/js/utils/meta.ts +++ b/services/web/frontend/js/utils/meta.ts @@ -66,7 +66,7 @@ export interface Meta { 'ol-cannot-link-google-sso': boolean 'ol-cannot-link-other-third-party-sso': boolean 'ol-cannot-reactivate-subscription': boolean - + 'ol-cannot-use-ai': boolean 'ol-countryCode': PricingFormState['country'] 'ol-couponCode': PricingFormState['coupon'] 'ol-createdAt': Date diff --git a/services/web/locales/en.json b/services/web/locales/en.json index e46d8acc10..d90be11459 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -111,6 +111,7 @@ "all_projects_will_be_transferred_immediately": "All projects will be transferred to the new owner immediately.", "all_templates": "All Templates", "all_the_pros_of_our_standard_plan_plus_unlimited_collab": "All the pros of our standard plan, plus unlimited collaborators per project.", + "all_these_experiments_are_available_exclusively": "All these experiments are available exclusively to members of the Labs program. If you sign up, you can choose which experiments you want to try.", "already_have_an_account": "Already have an account?", "already_have_sl_account": "Already have an __appName__ account?", "already_subscribed_try_refreshing_the_page": "Already subscribed? Try refreshing the page.",