cards removed

This commit is contained in:
2026-09-03 15:45:15 +05:30
parent 5345809951
commit bbe313ba48
9 changed files with 128 additions and 448 deletions

View File

@@ -66,12 +66,6 @@ export function totalsOf(rows: readonly BranchRow[]): ConsoleTotals {
export type HealthTone = 'healthy' | 'attention' | 'critical';
export interface HealthRollup {
healthy: number;
attention: number;
offline: number;
}
/**
* How one branch is doing, in three words rather than six states.
*
@@ -88,17 +82,6 @@ export function branchTone(health: BranchSyncSummary): HealthTone {
return 'healthy';
}
export function rollupHealth(rows: readonly BranchRow[]): HealthRollup {
const rollup: HealthRollup = { healthy: 0, attention: 0, offline: 0 };
for (const row of rows) {
const tone = branchTone(row.health);
if (tone === 'critical') rollup.offline += 1;
else if (tone === 'attention') rollup.attention += 1;
else rollup.healthy += 1;
}
return rollup;
}
/* ── Attention ────────────────────────────────────────────────────────────── */
export interface ConsoleAlert {