Remove the BIP327/SLIP39 history card (section 24.2)
This commit is contained in:
1 parent
d54da2b142
commit
68898b3f96
1 file changed
-25
@@ -127,29 +127,6 @@ function keyEntries(keyCheck) {
|
||||
return entries;
|
||||
}
|
||||
|
||||
function toolCheckTable(toolChecks) {
|
||||
if (!toolChecks.length) {
|
||||
// A key that was not available records no standards at all (section 22).
|
||||
return emptyNote("No BIP327 or SLIP39 results were recorded for this check.");
|
||||
}
|
||||
const headers = ["Product", "BIP327", "SLIP39"];
|
||||
// Older records stored a version, a date, and notes for each product.
|
||||
const hasLegacyColumns = toolChecks.some(
|
||||
(entry) => entry.version || entry.checked_at || entry.notes,
|
||||
);
|
||||
if (hasLegacyColumns) {
|
||||
headers.push("Version", "Date checked", "Notes");
|
||||
}
|
||||
const rows = toolChecks.map((entry) => {
|
||||
const row = [entry.product, entry.bip327_status, entry.slip39_status];
|
||||
if (hasLegacyColumns) {
|
||||
row.push(entry.version, entry.checked_at, entry.notes);
|
||||
}
|
||||
return row;
|
||||
});
|
||||
return dataTable(headers, rows);
|
||||
}
|
||||
|
||||
function securityTable(securityChecks) {
|
||||
if (!securityChecks.length) {
|
||||
return emptyNote("No security statuses were recorded for this check.");
|
||||
@@ -173,8 +150,6 @@ function renderDetail(record) {
|
||||
));
|
||||
}
|
||||
|
||||
fragment.append(card("BIP327 and SLIP39", toolCheckTable(record.tool_checks || [])));
|
||||
|
||||
fragment.append(card("Security status", securityTable(record.ai_security_checks || [])));
|
||||
|
||||
detailBody.replaceChildren(fragment);
|
||||
|
||||
Reference in new issue
Block a user