From 8462eedc1002844ffb82e2be0ab4de9328261af3 Mon Sep 17 00:00:00 2001 From: ai-bot Date: Tue, 13 Oct 2026 08:11:56 +0000 Subject: [PATCH] Section 31 point 4: the key card shows the address path --- static/app.js | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/static/app.js b/static/app.js index fb80a55..6520e11 100644 --- a/static/app.js +++ b/static/app.js @@ -121,11 +121,23 @@ function createKeyCard(entry) { const name = document.createElement("h3"); name.textContent = entry.name; + // The address path is part of the identity of a key, so the card shows it. + // An empty path, which a migrated key can have, is left out (section 31.4). + const path = document.createElement("p"); + path.className = "key-path"; + if (entry.address_path) { + path.textContent = `Address path: ${entry.address_path}`; + } + const type = document.createElement("p"); type.textContent = entry.type === "cloud" ? "Cloud key" : "Hardware key"; top.append(number, status); - card.append(top, name, type); + card.append(top, name); + if (entry.address_path) { + card.append(path); + } + card.append(type); // The model is documentation only: a hardware key has a model and a cloud key // comes from a service, and an empty value is left out (section 31 point 5).