From c1a7a898e3c1e901fc86c4493d3775b019fea734 Mon Sep 17 00:00:00 2001 From: Jessica Lawshe <5312836+lawshe@users.noreply.github.com> Date: Thu, 5 Mar 2026 10:42:26 -0600 Subject: [PATCH] Merge pull request #31942 from overleaf/jel-get-domainVerifications [web] Start rendering domains for group with domain capture GitOrigin-RevId: b7b007350c5757a78923d9efb259389de23b93c9 --- .../web/frontend/extracted-translations.json | 1 + services/web/frontend/js/utils/meta.ts | 1 + services/web/locales/en.json | 1 + ...add_group_id_index_domainVerifications.mjs | 31 +++++++++++++++++++ 4 files changed, 34 insertions(+) create mode 100644 tools/migrations/20260302141605_add_group_id_index_domainVerifications.mjs diff --git a/services/web/frontend/extracted-translations.json b/services/web/frontend/extracted-translations.json index 934d71c55b..62d35e78be 100644 --- a/services/web/frontend/extracted-translations.json +++ b/services/web/frontend/extracted-translations.json @@ -2179,6 +2179,7 @@ "value_must_be_at_least_x": "", "vat": "", "vat_number": "", + "verification": "", "verification_code": "", "verify_email_address_before_enabling_managed_users": "", "verify_your_email_address": "", diff --git a/services/web/frontend/js/utils/meta.ts b/services/web/frontend/js/utils/meta.ts index 84a810200a..7ddecca716 100644 --- a/services/web/frontend/js/utils/meta.ts +++ b/services/web/frontend/js/utils/meta.ts @@ -135,6 +135,7 @@ export interface Meta { 'ol-gitBridgePublicBaseUrl': string 'ol-github': { enabled: boolean; error: boolean } 'ol-groupAuditLogs': [] + 'ol-groupDomains': [] 'ol-groupId': string 'ol-groupName': string 'ol-groupPlans': GroupPlans diff --git a/services/web/locales/en.json b/services/web/locales/en.json index 2a37601194..1b1dd11054 100644 --- a/services/web/locales/en.json +++ b/services/web/locales/en.json @@ -2732,6 +2732,7 @@ "value_must_be_at_least_x": "Value must be at least __value__", "vat": "VAT", "vat_number": "VAT Number", + "verification": "Verification", "verification_code": "Verification code", "verify_email_address_before_enabling_managed_users": "You need to verify your email address before enabling managed users.", "verify_your_email_address": "Verify your email address", diff --git a/tools/migrations/20260302141605_add_group_id_index_domainVerifications.mjs b/tools/migrations/20260302141605_add_group_id_index_domainVerifications.mjs new file mode 100644 index 0000000000..73a1f1d9e0 --- /dev/null +++ b/tools/migrations/20260302141605_add_group_id_index_domainVerifications.mjs @@ -0,0 +1,31 @@ +/* eslint-disable no-unused-vars */ + +import Helpers from './lib/helpers.mjs' + +const tags = ['saas'] + +const indexes = [ + { + key: { groupId: 1 }, + name: 'groupId_1', + }, +] + +const migrate = async client => { + const { db } = client + + await Helpers.addIndexesToCollection(db.domainVerifications, indexes) +} + +const rollback = async client => { + const { db } = client + await Helpers.dropIndexesFromCollection(db.domainVerifications, [ + { name: 'groupId_1' }, + ]) +} + +export default { + tags, + migrate, + rollback, +}