cards removed
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user