drop hive and agent response fields the frontend never reads
This commit is contained in:
parent
1875181d59
commit
a437f9ccd5
1 changed files with 347 additions and 598 deletions
|
|
@ -92,7 +92,7 @@ export function syncTransientsFromSnapshot(s) {
|
|||
// Snapshot ships `secs` (server-computed); reconstruct an
|
||||
// approximate since_unix so the live ticker keeps progressing
|
||||
// without surprising jumps when the next snapshot lands.
|
||||
byKind.set(t.kind, t.since_unix ?? nowUnix - (t.secs || 0));
|
||||
byKind.set(t.kind, nowUnix - (t.secs || 0));
|
||||
}
|
||||
}
|
||||
export function applyTransientSet(ev) {
|
||||
|
|
@ -193,9 +193,8 @@ function buildAgentMenu(c) {
|
|||
|
||||
// ─── port conflicts ──────────────────────────────────────────────────────────
|
||||
|
||||
// Re-derive port conflicts from the live containers map. Mirrors the
|
||||
// server-side `build_port_conflicts` so the banner reacts to event
|
||||
// updates instead of waiting for a /api/state refetch.
|
||||
// Derive port conflicts from the live containers map, so the banner
|
||||
// reacts to event updates without a /api/state refetch.
|
||||
function derivePortConflicts(containers) {
|
||||
const byPort = new Map();
|
||||
for (const c of containers) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue