mirror of
https://github.com/yu-i-i/overleaf-cep.git
synced 2026-11-14 06:03:45 +01:00
[web] Add features.aiToggling to Subscriptions (#35494)
* [web] Add `features.aiToggling` to Subscriptions This new flag controls whether the subscription admin can toggle AI Features for their group. When the feature is unchecked, group admins only see a dialog explaining AI Features are enabled/disabled, but never the controls. GitOrigin-RevId: 94132f5569102b91113bf15075e66c02aaed277f
This commit is contained in:
@@ -63,6 +63,7 @@ export const SubscriptionSchema = new Schema(
|
||||
managedUsers: { type: Boolean, default: true },
|
||||
groupSSO: { type: Boolean, default: true },
|
||||
domainCapture: { type: Boolean, default: false },
|
||||
aiToggling: { type: Boolean, default: true },
|
||||
},
|
||||
userFeaturesDisabled: Boolean,
|
||||
addOns: Schema.Types.Mixed,
|
||||
|
||||
@@ -123,6 +123,7 @@
|
||||
"ai_can_make_mistakes": "",
|
||||
"ai_features": "",
|
||||
"ai_features_couldnt_be_toggled": "",
|
||||
"ai_features_currently_enabled": "",
|
||||
"ai_features_managed_by_overleaf_support": "",
|
||||
"ai_features_off": "",
|
||||
"ai_features_on": "",
|
||||
|
||||
@@ -77,6 +77,7 @@ export interface Meta {
|
||||
'ol-adminSubscription': AdminSubscription
|
||||
'ol-adminUserExists': boolean
|
||||
'ol-aiAssistViaWritefullSource': string
|
||||
'ol-aiToggling': boolean
|
||||
'ol-algolia': AlgoliaConfig | undefined
|
||||
'ol-allInReconfirmNotificationPeriods': UserEmailData[]
|
||||
'ol-allowedExperiments': string[]
|
||||
|
||||
@@ -153,6 +153,7 @@
|
||||
"ai_can_make_mistakes": "AI can make mistakes. Review fixes before you apply them.",
|
||||
"ai_features": "AI features",
|
||||
"ai_features_couldnt_be_toggled": "AI features couldn’t be toggled. Try again, or contact Overleaf support if the problem continues.",
|
||||
"ai_features_currently_enabled": "AI features are currently <0>enabled</0> for your group.",
|
||||
"ai_features_managed_by_overleaf_support": "AI features are managed by Overleaf support.",
|
||||
"ai_features_off": "AI features off",
|
||||
"ai_features_on": "AI features on",
|
||||
|
||||
@@ -28,5 +28,6 @@ export type Subscription = {
|
||||
| StripeAdminClientPaymentProvider
|
||||
features: {
|
||||
domainCapture?: boolean
|
||||
aiToggling?: boolean
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user