diff --git a/src/components/Manifest/Details/__snapshots__/index.test.jsx.snap b/src/components/Manifest/Details/__snapshots__/index.test.jsx.snap
index 9c0fd0d..fd848cb 100644
--- a/src/components/Manifest/Details/__snapshots__/index.test.jsx.snap
+++ b/src/components/Manifest/Details/__snapshots__/index.test.jsx.snap
@@ -116,7 +116,7 @@ Object {
ECUs:
-
- ICC, SW Version: 1000, HW Version: none, Mode: D
+ ICC, SW Version: 1000, HW Version: None, Mode: D
-
@@ -171,7 +171,7 @@ Object {
ECUs:
-
- ICC, SW Version: 1000, HW Version: none, Mode: D
+ ICC, SW Version: 1000, HW Version: None, Mode: D
-
diff --git a/src/components/Manifest/Details/index.jsx b/src/components/Manifest/Details/index.jsx
index a2b18e8..25ca0f6 100644
--- a/src/components/Manifest/Details/index.jsx
+++ b/src/components/Manifest/Details/index.jsx
@@ -23,9 +23,8 @@ const ECUFileList = (files) => {
{files.map((file) => (
-
{getFilename(file.url)}
- {`, File ID: ${file.file_id}, Type: ${file.type}, Download Size: ${
- file.file_size
- }, CRC32: ${file.checksum ?? "00000000"}
+ {`, File ID: ${file.file_id}, Type: ${file.type}, Download Size: ${file.file_size
+ }, CRC32: ${file.checksum ?? "00000000"}
${getMemoryRegion("Write", file.write_region)}
${getMemoryRegion("Erase", file.erase_region)}`}
@@ -35,20 +34,28 @@ const ECUFileList = (files) => {
};
const ECUList = (ecus) => {
- if (!ecus || ecus.length === 0) return "None";
+ const none = "None";
+ if (!ecus || ecus.length === 0) return none;
+
return (
- {ecus.map((ecu) => (
- -
- {`${ecu.name}, SW Version: ${ecu.version ?? "None"}, HW Version: ${
- ecu.hw_version ?? "none"
- }, Mode: ${ecu.mode ?? "D"}${
- ecu.self_download ? ", Self Download" : ""
- }`}
-
- {ECUFileList(ecu.files)}
-
- ))}
+ {ecus.map((ecu) => {
+ const name = ecu.name;
+ const version = ecu.version ?? none;
+ const hardwareVersions = ecu.hw_versions?.join(", ") ?? ecu.hw_version ?? none;
+ let mode = ecu.mode ?? "D";
+ if (ecu.self_download) {
+ mode += ", Self Download"
+ }
+
+ return (
+ -
+ {`${name}, SW Version: ${version}, HW Version: ${hardwareVersions}, Mode: ${mode}`}
+
+ {ECUFileList(ecu.files)}
+
+ )
+ })}
);
};
@@ -104,9 +111,8 @@ const ManifestDetails = ({ opened }) => {
Hide Details
- - {`${manifest.name} ${manifest.version} [${
- manifest.type || "standard"
- }]`}
+ - {`${manifest.name} ${manifest.version} [${manifest.type || "standard"
+ }]`}
- {`${manifest.description} ${manifest.release_notes}`}
- ECUs: {ECUList(manifest.ecu_updates)}