Forráskód Böngészése

Merge pull request #19036 from overleaf/jdt-labs-alpha-only

feat: only allow alpha users on labs page currently
GitOrigin-RevId: 5136d77789fa27a0bd9fe6f17c8937998bc74259
Jimmy Domagala-Tang 2 éve
szülő
commit
790f90e97d

+ 2 - 2
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'

+ 1 - 1
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

+ 1 - 0
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.",