From 3c24c9bcc9003024012834c8d6ae4bbdab17c950 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Mon, 14 Jul 2025 09:08:44 -0500 Subject: [PATCH] Merge pull request #26473 from overleaf/jel-group-domainCapture [web] Add admin toggle for setting `domainCapture` feature for groups GitOrigin-RevId: d4dc373aa0d7863f83129126613a38d914afbd5f --- services/web/app/src/models/Subscription.js | 1 + services/web/frontend/js/utils/meta.ts | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/services/web/app/src/models/Subscription.js b/services/web/app/src/models/Subscription.js index 4a5fed6f1f..e082b26afa 100644 --- a/services/web/app/src/models/Subscription.js +++ b/services/web/app/src/models/Subscription.js @@ -42,6 +42,7 @@ const SubscriptionSchema = new Schema( features: { managedUsers: { type: Boolean, default: true }, groupSSO: { type: Boolean, default: true }, + domainCapture: { type: Boolean, default: false }, }, addOns: Schema.Types.Mixed, overleaf: { diff --git a/services/web/frontend/js/utils/meta.ts b/services/web/frontend/js/utils/meta.ts index 748ae74789..8f6f8a7ec1 100644 --- a/services/web/frontend/js/utils/meta.ts +++ b/services/web/frontend/js/utils/meta.ts @@ -44,7 +44,10 @@ import { import { SuggestedLanguage } from '../../../types/system-message' import type { TeamInvite } from '../../../types/team-invite' import { GroupPlans } from '../../../types/subscription/dashboard/group-plans' -import { GroupSSOLinkingStatus } from '../../../types/subscription/sso' +import { + GroupSSOLinkingStatus, + SSOConfig, +} from '../../../types/subscription/sso' import { PasswordStrengthOptions } from '../../../types/password-strength-options' import { Subscription as ProjectDashboardSubscription } from '../../../types/project/dashboard/subscription' import { ThirdPartyIds } from '../../../types/third-party-ids' @@ -121,6 +124,7 @@ export interface Meta { 'ol-groupPlans': GroupPlans 'ol-groupPolicy': GroupPolicy 'ol-groupSSOActive': boolean + 'ol-groupSSOConfig'?: SSOConfig 'ol-groupSSOTestResult': GroupSSOTestResult 'ol-groupSettingsAdvertisedFor': string[] 'ol-groupSettingsEnabledFor': string[]