dashboard: deployed sha chip per container
ContainerView grows deployed_sha (first 12 chars of the rev that /var/lib/hyperhive/meta/flake.lock currently has locked for agent-<name>). renderContainers appends a 'deployed:<sha12>' chip next to the container name + port — title attribute explains it's the meta-lock sha. degrades gracefully when the meta repo isn't seeded yet (missing / unparsable lock = empty map = no chip). new read_meta_locked_revs helper does the JSON parsing without unwraps.
This commit is contained in:
parent
691057d2d3
commit
2f6ecc4dc0
2 changed files with 43 additions and 0 deletions
|
|
@ -279,6 +279,11 @@
|
|||
));
|
||||
}
|
||||
head.append(el('span', { class: 'meta' }, `${c.container} :${c.port}`));
|
||||
if (c.deployed_sha) {
|
||||
head.append(el('span',
|
||||
{ class: 'meta', title: 'sha currently locked in /meta/flake.lock' },
|
||||
`deployed:${c.deployed_sha}`));
|
||||
}
|
||||
li.append(head);
|
||||
|
||||
// ── line 2: action buttons ───────────────────────────────────
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue