diff --git a/CHANGELOG.rst b/CHANGELOG.rst index 665cf2ee..fbff5294 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -23,6 +23,12 @@ Release notes outputs. https://github.com/aboutcode-org/dejacode/issues/98 +- Add the ability to propagate vulnerability analysis data to other affected products. + A new "Propagate analysis to:" section in now displayed the "Vulnerability analysis" + modal. The list of products containing the same package as the one currently being + analysed are listed and can be selected for "analysis propagation". + https://github.com/aboutcode-org/dejacode/issues/105 + ### Version 5.2.1 - Fix the models documentation navigation. diff --git a/dejacode/static/css/dejacode_bootstrap.css b/dejacode/static/css/dejacode_bootstrap.css index ac1656a6..f559cc68 100644 --- a/dejacode/static/css/dejacode_bootstrap.css +++ b/dejacode/static/css/dejacode_bootstrap.css @@ -411,6 +411,14 @@ table.vulnerabilities-table .column-summary { #tab_vulnerabilities .column-vulnerability_analyses__responses { min-width: 120px; } +/* -- Vulnerability analysis modal -- */ +#vulnerability-analysis-modal #div_id_responses .form-check { + display: inline-block; + margin-right: 1rem; +} +#vulnerability-analysis-modal .form-label { + font-weight: 600; +} /* -- Dependency tab -- */ #tab_dependencies .column-for_package { diff --git a/dejacode/static/js/dejacode_main.js b/dejacode/static/js/dejacode_main.js index a2353397..b6df8b64 100644 --- a/dejacode/static/js/dejacode_main.js +++ b/dejacode/static/js/dejacode_main.js @@ -31,7 +31,10 @@ function setupPopovers() { function setupSelectionCheckboxes() { const selectAllCheckbox = document.getElementById("checkbox-select-all"); - const rowCheckboxes = document.querySelectorAll("table#object-list-table tbody input[type='checkbox']"); + if (!selectAllCheckbox) return; + + const parentTable = selectAllCheckbox.closest("table"); + const rowCheckboxes = parentTable.querySelectorAll("tbody input[type='checkbox']"); let lastChecked; // Store the last checked checkbox if (!rowCheckboxes) return; diff --git a/dje/templates/bootstrap_base_js.html b/dje/templates/bootstrap_base_js.html index 85f3afef..d037b84c 100644 --- a/dje/templates/bootstrap_base_js.html +++ b/dje/templates/bootstrap_base_js.html @@ -2,29 +2,4 @@ \ No newline at end of file diff --git a/product_portfolio/templates/product_portfolio/modals/vulnerability_analysis_modal.html b/product_portfolio/templates/product_portfolio/modals/vulnerability_analysis_modal.html index fae63967..1f716ec7 100644 --- a/product_portfolio/templates/product_portfolio/modals/vulnerability_analysis_modal.html +++ b/product_portfolio/templates/product_portfolio/modals/vulnerability_analysis_modal.html @@ -5,17 +5,19 @@
-