From 6442269a333a16bc7a24d9b5b7910750c228999f Mon Sep 17 00:00:00 2001 From: Sunny Aggarwal Date: Sat, 7 Nov 2026 08:46:28 +0530 Subject: [PATCH] OpenConceptLab/ocl_online#655 | Show the versioning mode in version details --- src/components/repos/versionsTab.styles.js | 4 ++++ src/i18n/locales/en/translations.json | 5 ++++- src/i18n/locales/es/translations.json | 5 ++++- src/i18n/locales/pt-BR/translations.json | 5 ++++- src/i18n/locales/zh/translations.json | 5 ++++- 5 files changed, 20 insertions(+), 4 deletions(-) diff --git a/src/components/repos/versionsTab.styles.js b/src/components/repos/versionsTab.styles.js index 48d6ea292..1df35c868 100644 --- a/src/components/repos/versionsTab.styles.js +++ b/src/components/repos/versionsTab.styles.js @@ -52,6 +52,7 @@ const VERSION_ATTRIBUTE_LABEL_KEYS = { autoexpand: 'repo.autoexpand', expansion_url: 'repo.expansion_url', revision_date: 'repo.revision_date', + versioning_mode: 'repo.versioning_mode', extras: 'custom_attributes.label', 'checksums.standard': 'checksums.standard', 'checksums.smart': 'checksums.smart', @@ -95,6 +96,7 @@ const VERSION_ATTRIBUTE_ORDER = [ 'autoexpand', 'expansion_url', 'revision_date', + 'versioning_mode', 'extras', 'checksums.standard', 'checksums.smart', @@ -126,6 +128,8 @@ export const getVersionAttributeFields = (version, t) => { // the dialog renders a value only when it is truthy, so true/false needs a string if(isBoolean(value)) info.value = value.toString(); + if(field === 'versioning_mode' && value) + info.value = t(`repo.versioning_mode_${value}`, {defaultValue: startCase(value)}); fields[field] = info; }); return fields; diff --git a/src/i18n/locales/en/translations.json b/src/i18n/locales/en/translations.json index 651147233..e6522dd36 100644 --- a/src/i18n/locales/en/translations.json +++ b/src/i18n/locales/en/translations.json @@ -890,7 +890,10 @@ "could_not_clear_processing": "Could not clear the processing state", "export_not_ready_tooltip": "Export is still being generated for this version", "expansion_processing_tooltip": "This expansion is still being built", - "suggested_sources": "Suggested Sources" + "suggested_sources": "Suggested Sources", + "versioning_mode": "Versioning Mode", + "versioning_mode_carry_forward": "Carry Forward", + "versioning_mode_isolated": "Isolated" }, "org": { "my": "My Organizations", diff --git a/src/i18n/locales/es/translations.json b/src/i18n/locales/es/translations.json index 1cfc61a4c..10e534e91 100644 --- a/src/i18n/locales/es/translations.json +++ b/src/i18n/locales/es/translations.json @@ -526,7 +526,10 @@ "edit_title": "Editar versión de {{resourceType}}: {{version}}" } }, - "repo_version": "Versión del repositorio" + "repo_version": "Versión del repositorio", + "versioning_mode": "Modo de versionado", + "versioning_mode_carry_forward": "Continuar desde HEAD", + "versioning_mode_isolated": "Aislado" }, "org": { "my": "Mis organizaciones", diff --git a/src/i18n/locales/pt-BR/translations.json b/src/i18n/locales/pt-BR/translations.json index 4bc9965f8..df287cee0 100644 --- a/src/i18n/locales/pt-BR/translations.json +++ b/src/i18n/locales/pt-BR/translations.json @@ -879,7 +879,10 @@ "could_not_clear_processing": "Não foi possível limpar o estado de processamento", "export_not_ready_tooltip": "Exportação ainda está sendo gerada para esta versão", "expansion_processing_tooltip": "Esta expansão ainda está sendo construída", - "suggested_sources": "Sources sugeridos" + "suggested_sources": "Sources sugeridos", + "versioning_mode": "Modo de versionamento", + "versioning_mode_carry_forward": "Continuar a partir do HEAD", + "versioning_mode_isolated": "Isolado" }, "org": { "my": "Minhas organizações", diff --git a/src/i18n/locales/zh/translations.json b/src/i18n/locales/zh/translations.json index 682ba6442..314b12c7a 100644 --- a/src/i18n/locales/zh/translations.json +++ b/src/i18n/locales/zh/translations.json @@ -555,7 +555,10 @@ "edit_title": "编辑{{resourceType}}版本:{{version}}" } }, - "repo_version": "仓库版本" + "repo_version": "仓库版本", + "versioning_mode": "版本模式", + "versioning_mode_carry_forward": "沿用 HEAD", + "versioning_mode_isolated": "独立" }, "org": { "my": "我的组织机构",