diff --git a/CHANGELOG.rst b/CHANGELOG.rst index f239e0cd..e1ace9cd 100644 --- a/CHANGELOG.rst +++ b/CHANGELOG.rst @@ -109,6 +109,17 @@ Release notes Owner not found in the Dataspace are now automatically created. https://github.com/aboutcode-org/dejacode/issues/239 +- Updated the label of the following Product actions. + The labels were updated everywhere in the UI (page title, documentation, + import log, etc...) for consistency: + - Import data from Scan -> Import ScanCode scan results + - Load Packages from SBOMs -> Import SBOM + - Import Packages from manifests -> Import Package manifests + - Pull ScanCode.io Project data -> Import ScanCode.io project + Improve the rendering and layout of the Import related forms for consistency, + simplicity, and readability. + https://github.com/aboutcode-org/dejacode/issues/241 + ### Version 5.2.1 - Fix the models documentation navigation. diff --git a/component_catalog/templates/component_catalog/includes/scan_status.html b/component_catalog/templates/component_catalog/includes/scan_status.html index 7b534220..2bcad92e 100644 --- a/component_catalog/templates/component_catalog/includes/scan_status.html +++ b/component_catalog/templates/component_catalog/includes/scan_status.html @@ -3,6 +3,8 @@
{% elif status == 'failure' or status == "stopped" or status == "stale" %}
+ {% elif status == 'warning' %} +
{% elif status == 'running' %}
{% elif status == 'not_started' or status == 'queued' %} diff --git a/dejacode/static/css/dejacode_bootstrap.css b/dejacode/static/css/dejacode_bootstrap.css index b637c8e5..a8a97f2a 100644 --- a/dejacode/static/css/dejacode_bootstrap.css +++ b/dejacode/static/css/dejacode_bootstrap.css @@ -590,10 +590,12 @@ div.awesomplete { [data-bs-theme=dark] .awesomplete > ul { background: var(--bs-black); } - #div_id_component .awesomplete { display: inline-block !important; } +label.requiredField { + font-weight: bolder; +} /* -- Products comparison -- */ body.product-comparison tr.unchanged { diff --git a/dje/tasks.py b/dje/tasks.py index fd9a3d88..723e5dc5 100644 --- a/dje/tasks.py +++ b/dje/tasks.py @@ -197,7 +197,7 @@ def pull_project_data_from_scancodeio(scancodeproject_uuid): ) if scancode_project.type == scancode_project.ProjectType.LOAD_SBOMS: - notification_verb = "Load Packages from SBOMs" + notification_verb = "Import SBOM" else: notification_verb = "Import packages from ScanCode.io" diff --git a/dje/templates/includes/form_errors_alert.html b/dje/templates/includes/form_errors_alert.html index f9715da1..d51a80d0 100644 --- a/dje/templates/includes/form_errors_alert.html +++ b/dje/templates/includes/form_errors_alert.html @@ -1,6 +1,5 @@ {% if form.errors %} -

- Import from Scan + Import ScanCode scan results

- {% include 'includes/messages_alert.html' %} +
+
+ {% include 'includes/messages_alert.html' %} - - -
-
Option 1: From a ScanCode-toolkit scan output
-
- Upload a ScanCode-toolkit JSON output file, generated with version 31.2.3 or later, the following options are mandatory: -
- $ scancode --copyright --license --info --package --json {file_output.json} {input_directory} -
+ -
-
Option 2: From ScanCode.io pipeline results
-

- Upload a ScanCode.io JSON output file, generated with one of the following pipelines: -

-

- analyze_docker_image, - analyze_windows_docker_image, - inspect_packages, - scan_codebase, - scan_single_package -

-
+
+
Option 1: from a ScanCode-toolkit scan output
+
+ Upload a ScanCode-toolkit JSON output file, generated with version 31.2.3 or later, the following options are mandatory: +
+ $ scancode --copyright --license --info --package --json {file_output.json} {input_directory} +
- {{ form.errors }} - {% crispy form %} +
+
Option 2: from ScanCode.io pipeline results
+

+ Upload a ScanCode.io JSON output file, generated with one of the following pipelines: +

+

+ analyze_docker_image, + analyze_windows_docker_image, + inspect_packages, + scan_codebase, + scan_single_package +

+
+
+
+ {% include 'includes/form_errors_alert.html' %} + {% crispy form %} +
+
+
+
{% endblock %} {% block javascripts %} diff --git a/product_portfolio/templates/product_portfolio/import_manifests_form.html b/product_portfolio/templates/product_portfolio/import_manifests_form.html index f806f77a..59a39480 100644 --- a/product_portfolio/templates/product_portfolio/import_manifests_form.html +++ b/product_portfolio/templates/product_portfolio/import_manifests_form.html @@ -2,7 +2,7 @@ {% load i18n static crispy_forms_tags %} {% load inject_preserved_filters from dje_tags %} -{% block page_title %}{% trans "Import Packages from manifests" %}{% endblock %} +{% block page_title %}{% trans "Import Package manifests" %}{% endblock %} {% block content %}
@@ -14,54 +14,58 @@ / {{ object.get_absolute_link }}

- {% trans "Import Packages from manifests" %} + {% trans "Import Package manifests" %}

- {% include 'includes/messages_alert.html' %} +
+
+ {% include 'includes/messages_alert.html' %} -
-
- Supports resolving packages for: -
    -
  • Python: requirements.txt and setup.py manifest files.
  • -
-
- Multiple Manifests: - You can provide multiple Manifests by packaging them into a zip archive. - DejaCode will handle and process them accordingly. -
+
+
+ Supports resolving packages for: +
    +
  • Python: requirements.txt and setup.py manifest files.
  • +
+
+ Multiple manifests: + You can provide multiple manifests by packaging them into a zip archive. + DejaCode will process them accordingly. +
- + -
-
- {{ form.errors }} - {% crispy form %} +
+
+ {% include 'includes/form_errors_alert.html' %} + {% crispy form %} +
+
{% endblock %} @@ -70,7 +74,9 @@

diff --git a/product_portfolio/templates/product_portfolio/includes/pull_project_data_modal.html b/product_portfolio/templates/product_portfolio/includes/pull_project_data_modal.html index 4a2fce73..3035df7b 100644 --- a/product_portfolio/templates/product_portfolio/includes/pull_project_data_modal.html +++ b/product_portfolio/templates/product_portfolio/includes/pull_project_data_modal.html @@ -3,20 +3,23 @@

- {% include 'includes/messages_alert.html' %} +
+
+ {% include 'includes/messages_alert.html' %} -
-
- DejaCode supports the following SBOM formats: -
    -
  • CycloneDX BOM as JSON bom.json and .cdx.json
  • -
  • SPDX document as JSON .spdx.json
  • -
  • AboutCode .ABOUT files
  • -
-
- Multiple SBOMs: - You can provide multiple SBOMs by packaging them into a zip archive. - DejaCode will handle and process them accordingly. -
+
+
+ DejaCode supports the following SBOM formats: +
    +
  • CycloneDX BOM as JSON bom.json and .cdx.json
  • +
  • SPDX document as JSON .spdx.json
  • +
  • AboutCode .ABOUT files
  • +
+
+ Multiple SBOMs: + You can provide multiple SBOMs by packaging them into a zip archive. + DejaCode will process them accordingly. +
- + -
-
- {{ form.errors }} - {% crispy form %} +
+
+ {% include 'includes/form_errors_alert.html' %} + {% crispy form %} +
+
{% endblock %} @@ -72,7 +76,9 @@

diff --git a/product_portfolio/templates/product_portfolio/product_details.html b/product_portfolio/templates/product_portfolio/product_details.html index afbeb426..82b78da5 100644 --- a/product_portfolio/templates/product_portfolio/product_details.html +++ b/product_portfolio/templates/product_portfolio/product_details.html @@ -37,17 +37,17 @@