From 2a289da38f63eaac115151be954324577b7801de Mon Sep 17 00:00:00 2001 From: Sahiba Mittal Date: Fri, 29 May 2026 14:46:03 +0100 Subject: [PATCH 1/2] Expose 'direct' flag for project components Signed-off-by: Sahiba Mittal --- src/i18n/locales/de.json | 1 + src/i18n/locales/en.json | 1 + src/i18n/locales/es.json | 1 + src/i18n/locales/fr.json | 1 + src/i18n/locales/hi.json | 1 + src/i18n/locales/it.json | 1 + src/i18n/locales/ja.json | 1 + src/i18n/locales/pl.json | 1 + src/i18n/locales/pt-BR.json | 1 + src/i18n/locales/pt.json | 1 + src/i18n/locales/ru.json | 1 + src/i18n/locales/uk-UA.json | 1 + src/i18n/locales/zh-TW.json | 1 + src/i18n/locales/zh.json | 1 + .../portfolio/projects/ProjectComponents.vue | 21 +++++++++++++++---- 15 files changed, 31 insertions(+), 4 deletions(-) diff --git a/src/i18n/locales/de.json b/src/i18n/locales/de.json index 2ff5f252a..b6c025296 100644 --- a/src/i18n/locales/de.json +++ b/src/i18n/locales/de.json @@ -567,6 +567,7 @@ "deprecated": "Veraltet", "description": "Beschreibung", "details": "Einzelheiten", + "direct": "Direkt", "direct_only": "Nur Direkt", "direction": "Richtung", "download_bom": "BOM herunterladen", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 13f1d816e..52233f8c0 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -567,6 +567,7 @@ "deprecated": "Deprecated", "description": "Description", "details": "Details", + "direct": "Direct", "direct_only": "Direct only", "direction": "Direction", "download_bom": "Download BOM", diff --git a/src/i18n/locales/es.json b/src/i18n/locales/es.json index d67ed6fa8..e9c61db38 100644 --- a/src/i18n/locales/es.json +++ b/src/i18n/locales/es.json @@ -567,6 +567,7 @@ "deprecated": "Obsoleto", "description": "Descripción", "details": "Detalles", + "direct": "Directa", "direct_only": "Solo directo", "direction": "Dirección", "download_bom": "Descargar lista de materiales", diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index 731b1fefe..6c3d542a1 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json @@ -567,6 +567,7 @@ "deprecated": "Dépréciée", "description": "Description", "details": "Détails", + "direct": "Direct", "direct_only": "Direct uniquement", "direction": "Direction", "download_bom": "Télécharger la nomenclature", diff --git a/src/i18n/locales/hi.json b/src/i18n/locales/hi.json index 87dca83a4..a8beeb263 100644 --- a/src/i18n/locales/hi.json +++ b/src/i18n/locales/hi.json @@ -567,6 +567,7 @@ "deprecated": "पदावनत", "description": "विवरण", "details": "विवरण", + "direct": "प्रत्यक्ष", "direct_only": "केवल प्रत्यक्ष", "direction": "दिशा", "download_bom": "BOM डाउनलोड करें", diff --git a/src/i18n/locales/it.json b/src/i18n/locales/it.json index 33f2456ba..77fc2213a 100644 --- a/src/i18n/locales/it.json +++ b/src/i18n/locales/it.json @@ -567,6 +567,7 @@ "deprecated": "Deprecato", "description": "Descrizione", "details": "Dettagli", + "direct": "Diretto", "direct_only": "Solo diretto", "direction": "Direzione", "download_bom": "Scarica distinta base", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index 950712fc0..d566fb45c 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -567,6 +567,7 @@ "deprecated": "非推奨", "description": "説明", "details": "詳細", + "direct": "直接", "direct_only": "直接のみ", "direction": "方向", "download_bom": "BOMをダウンロード", diff --git a/src/i18n/locales/pl.json b/src/i18n/locales/pl.json index 39dd117cc..1b17c4822 100644 --- a/src/i18n/locales/pl.json +++ b/src/i18n/locales/pl.json @@ -567,6 +567,7 @@ "deprecated": "Przestarzałe", "description": "Opis", "details": "Detale", + "direct": "Bezpośredni", "direct_only": "Tylko bezpośrednie", "direction": "Kierunek", "download_bom": "Pobierz BOM", diff --git a/src/i18n/locales/pt-BR.json b/src/i18n/locales/pt-BR.json index 783735478..52b6b23ae 100644 --- a/src/i18n/locales/pt-BR.json +++ b/src/i18n/locales/pt-BR.json @@ -567,6 +567,7 @@ "deprecated": "Descontinuada", "description": "Descrição", "details": "Detalhes", + "direct": "Direta", "direct_only": "Somente direto", "direction": "Direção", "download_bom": "Baixe a lista técnica", diff --git a/src/i18n/locales/pt.json b/src/i18n/locales/pt.json index b457a98ac..a58cc8b01 100644 --- a/src/i18n/locales/pt.json +++ b/src/i18n/locales/pt.json @@ -567,6 +567,7 @@ "deprecated": "Descontinuada", "description": "Descrição", "details": "Detalhes", + "direct": "Direta", "direct_only": "Somente direto", "direction": "Direção", "download_bom": "Baixe a lista técnica", diff --git a/src/i18n/locales/ru.json b/src/i18n/locales/ru.json index 9488a2262..4500ef73e 100644 --- a/src/i18n/locales/ru.json +++ b/src/i18n/locales/ru.json @@ -567,6 +567,7 @@ "deprecated": "Устаревший", "description": "Описание", "details": "Детали", + "direct": "Прямой", "direct_only": "Только прямые", "direction": "Направление", "download_bom": "Скачать BOM", diff --git a/src/i18n/locales/uk-UA.json b/src/i18n/locales/uk-UA.json index 05f7db37e..1a8fba02f 100644 --- a/src/i18n/locales/uk-UA.json +++ b/src/i18n/locales/uk-UA.json @@ -567,6 +567,7 @@ "deprecated": "Застарілий", "description": "Опис", "details": "Деталі", + "direct": "Прямий", "direct_only": "Тільки прямі", "direction": "Напрямок", "download_bom": "Завантажити BOM", diff --git a/src/i18n/locales/zh-TW.json b/src/i18n/locales/zh-TW.json index 5364fec48..010e4a878 100644 --- a/src/i18n/locales/zh-TW.json +++ b/src/i18n/locales/zh-TW.json @@ -567,6 +567,7 @@ "deprecated": "已棄用", "description": "描述", "details": "詳細資訊", + "direct": "直接的", "direct_only": "僅限直接", "direction": "方向", "download_bom": "下載 BOM", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index 6042fca55..baf84e3ec 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -567,6 +567,7 @@ "deprecated": "已弃用", "description": "描述", "details": "详情", + "direct": "直接的", "direct_only": "仅直接依赖", "direction": "方向", "download_bom": "下载 BOM", diff --git a/src/views/portfolio/projects/ProjectComponents.vue b/src/views/portfolio/projects/ProjectComponents.vue index 949a07f5d..cdd0950e2 100644 --- a/src/views/portfolio/projects/ProjectComponents.vue +++ b/src/views/portfolio/projects/ProjectComponents.vue @@ -167,7 +167,8 @@ const COLUMN_DEFAULT_VISIBILITY = { group: true, classifier: false, scope: false, - is_internal: true, + internal: true, + direct: true, 'hash_verification.status': false, license: true, occurrence_count: false, @@ -409,9 +410,20 @@ export default { }, { title: this.$t('message.internal'), - field: 'is_internal', + field: 'internal', sortable: false, - visible: initialColumnVisible('is_internal'), + visible: initialColumnVisible('internal'), + align: 'center', + class: 'tight', + formatter(value) { + return value === true ? '' : ''; + }, + }, + { + title: this.$t('message.direct'), + field: 'direct', + sortable: false, + visible: initialColumnVisible('direct'), align: 'center', class: 'tight', formatter(value) { @@ -667,7 +679,8 @@ export default { 'name', 'version', 'group', - 'is_internal', + 'internal', + 'direct', 'resolved_license.license_id', 'last_inherited_risk_score', 'metrics.vulnerabilities', From 581c99c7c5e08d80058a143fea70c4ec6e9ea571 Mon Sep 17 00:00:00 2001 From: Sahiba Mittal Date: Wed, 3 Jun 2026 15:11:54 +0100 Subject: [PATCH 2/2] Rename 'direct' to 'direct_dependency' Signed-off-by: Sahiba Mittal --- src/i18n/locales/de.json | 2 +- src/i18n/locales/en.json | 2 +- src/i18n/locales/es.json | 2 +- src/i18n/locales/fr.json | 2 +- src/i18n/locales/hi.json | 2 +- src/i18n/locales/it.json | 2 +- src/i18n/locales/ja.json | 2 +- src/i18n/locales/pl.json | 2 +- src/i18n/locales/pt-BR.json | 2 +- src/i18n/locales/pt.json | 2 +- src/i18n/locales/ru.json | 2 +- src/i18n/locales/uk-UA.json | 2 +- src/i18n/locales/zh-TW.json | 2 +- src/i18n/locales/zh.json | 2 +- src/views/portfolio/projects/ProjectComponents.vue | 10 +++++----- 15 files changed, 19 insertions(+), 19 deletions(-) diff --git a/src/i18n/locales/de.json b/src/i18n/locales/de.json index b6c025296..4e0b0632d 100644 --- a/src/i18n/locales/de.json +++ b/src/i18n/locales/de.json @@ -567,7 +567,7 @@ "deprecated": "Veraltet", "description": "Beschreibung", "details": "Einzelheiten", - "direct": "Direkt", + "direct_dependency": "Direkte Abhängigkeit", "direct_only": "Nur Direkt", "direction": "Richtung", "download_bom": "BOM herunterladen", diff --git a/src/i18n/locales/en.json b/src/i18n/locales/en.json index 52233f8c0..a64233101 100644 --- a/src/i18n/locales/en.json +++ b/src/i18n/locales/en.json @@ -567,7 +567,7 @@ "deprecated": "Deprecated", "description": "Description", "details": "Details", - "direct": "Direct", + "direct_dependency": "Direct Dependency", "direct_only": "Direct only", "direction": "Direction", "download_bom": "Download BOM", diff --git a/src/i18n/locales/es.json b/src/i18n/locales/es.json index e9c61db38..db3293750 100644 --- a/src/i18n/locales/es.json +++ b/src/i18n/locales/es.json @@ -567,7 +567,7 @@ "deprecated": "Obsoleto", "description": "Descripción", "details": "Detalles", - "direct": "Directa", + "direct_dependency": "Dependencia directa", "direct_only": "Solo directo", "direction": "Dirección", "download_bom": "Descargar lista de materiales", diff --git a/src/i18n/locales/fr.json b/src/i18n/locales/fr.json index 6c3d542a1..920f5a53a 100644 --- a/src/i18n/locales/fr.json +++ b/src/i18n/locales/fr.json @@ -567,7 +567,7 @@ "deprecated": "Dépréciée", "description": "Description", "details": "Détails", - "direct": "Direct", + "direct_dependency": "Dépendance directe", "direct_only": "Direct uniquement", "direction": "Direction", "download_bom": "Télécharger la nomenclature", diff --git a/src/i18n/locales/hi.json b/src/i18n/locales/hi.json index a8beeb263..01075aee9 100644 --- a/src/i18n/locales/hi.json +++ b/src/i18n/locales/hi.json @@ -567,7 +567,7 @@ "deprecated": "पदावनत", "description": "विवरण", "details": "विवरण", - "direct": "प्रत्यक्ष", + "direct_dependency": "प्रत्यक्ष निर्भरता", "direct_only": "केवल प्रत्यक्ष", "direction": "दिशा", "download_bom": "BOM डाउनलोड करें", diff --git a/src/i18n/locales/it.json b/src/i18n/locales/it.json index 77fc2213a..0ab1162b3 100644 --- a/src/i18n/locales/it.json +++ b/src/i18n/locales/it.json @@ -567,7 +567,7 @@ "deprecated": "Deprecato", "description": "Descrizione", "details": "Dettagli", - "direct": "Diretto", + "direct_dependency": "Dipendenza diretta", "direct_only": "Solo diretto", "direction": "Direzione", "download_bom": "Scarica distinta base", diff --git a/src/i18n/locales/ja.json b/src/i18n/locales/ja.json index d566fb45c..6a6a5ce5d 100644 --- a/src/i18n/locales/ja.json +++ b/src/i18n/locales/ja.json @@ -567,7 +567,7 @@ "deprecated": "非推奨", "description": "説明", "details": "詳細", - "direct": "直接", + "direct_dependency": "直接依存関係", "direct_only": "直接のみ", "direction": "方向", "download_bom": "BOMをダウンロード", diff --git a/src/i18n/locales/pl.json b/src/i18n/locales/pl.json index 1b17c4822..baeb99b28 100644 --- a/src/i18n/locales/pl.json +++ b/src/i18n/locales/pl.json @@ -567,7 +567,7 @@ "deprecated": "Przestarzałe", "description": "Opis", "details": "Detale", - "direct": "Bezpośredni", + "direct_dependency": "Bezpośrednia zależność", "direct_only": "Tylko bezpośrednie", "direction": "Kierunek", "download_bom": "Pobierz BOM", diff --git a/src/i18n/locales/pt-BR.json b/src/i18n/locales/pt-BR.json index 52b6b23ae..45c5a3b9b 100644 --- a/src/i18n/locales/pt-BR.json +++ b/src/i18n/locales/pt-BR.json @@ -567,7 +567,7 @@ "deprecated": "Descontinuada", "description": "Descrição", "details": "Detalhes", - "direct": "Direta", + "direct_dependency": "Dependência Direta", "direct_only": "Somente direto", "direction": "Direção", "download_bom": "Baixe a lista técnica", diff --git a/src/i18n/locales/pt.json b/src/i18n/locales/pt.json index a58cc8b01..d4481dca3 100644 --- a/src/i18n/locales/pt.json +++ b/src/i18n/locales/pt.json @@ -567,7 +567,7 @@ "deprecated": "Descontinuada", "description": "Descrição", "details": "Detalhes", - "direct": "Direta", + "direct_dependency": "Dependência Direta", "direct_only": "Somente direto", "direction": "Direção", "download_bom": "Baixe a lista técnica", diff --git a/src/i18n/locales/ru.json b/src/i18n/locales/ru.json index 4500ef73e..f3e569eb9 100644 --- a/src/i18n/locales/ru.json +++ b/src/i18n/locales/ru.json @@ -567,7 +567,7 @@ "deprecated": "Устаревший", "description": "Описание", "details": "Детали", - "direct": "Прямой", + "direct_dependency": "Прямая зависимость", "direct_only": "Только прямые", "direction": "Направление", "download_bom": "Скачать BOM", diff --git a/src/i18n/locales/uk-UA.json b/src/i18n/locales/uk-UA.json index 1a8fba02f..4d0e4a22e 100644 --- a/src/i18n/locales/uk-UA.json +++ b/src/i18n/locales/uk-UA.json @@ -567,7 +567,7 @@ "deprecated": "Застарілий", "description": "Опис", "details": "Деталі", - "direct": "Прямий", + "direct_dependency": "Пряма залежність", "direct_only": "Тільки прямі", "direction": "Напрямок", "download_bom": "Завантажити BOM", diff --git a/src/i18n/locales/zh-TW.json b/src/i18n/locales/zh-TW.json index 010e4a878..5002ebf06 100644 --- a/src/i18n/locales/zh-TW.json +++ b/src/i18n/locales/zh-TW.json @@ -567,7 +567,7 @@ "deprecated": "已棄用", "description": "描述", "details": "詳細資訊", - "direct": "直接的", + "direct_dependency": "直接依賴", "direct_only": "僅限直接", "direction": "方向", "download_bom": "下載 BOM", diff --git a/src/i18n/locales/zh.json b/src/i18n/locales/zh.json index baf84e3ec..56d61d709 100644 --- a/src/i18n/locales/zh.json +++ b/src/i18n/locales/zh.json @@ -567,7 +567,7 @@ "deprecated": "已弃用", "description": "描述", "details": "详情", - "direct": "直接的", + "direct_dependency": "直接依赖", "direct_only": "仅直接依赖", "direction": "方向", "download_bom": "下载 BOM", diff --git a/src/views/portfolio/projects/ProjectComponents.vue b/src/views/portfolio/projects/ProjectComponents.vue index cdd0950e2..3fb60188f 100644 --- a/src/views/portfolio/projects/ProjectComponents.vue +++ b/src/views/portfolio/projects/ProjectComponents.vue @@ -168,7 +168,7 @@ const COLUMN_DEFAULT_VISIBILITY = { classifier: false, scope: false, internal: true, - direct: true, + direct_dependency: true, 'hash_verification.status': false, license: true, occurrence_count: false, @@ -420,10 +420,10 @@ export default { }, }, { - title: this.$t('message.direct'), - field: 'direct', + title: this.$t('message.direct_dependency'), + field: 'direct_dependency', sortable: false, - visible: initialColumnVisible('direct'), + visible: initialColumnVisible('direct_dependency'), align: 'center', class: 'tight', formatter(value) { @@ -680,7 +680,7 @@ export default { 'version', 'group', 'internal', - 'direct', + 'direct_dependency', 'resolved_license.license_id', 'last_inherited_risk_score', 'metrics.vulnerabilities',