Add host temperature telemetry and history

This commit is contained in:
2026-10-13 23:39:04 -04:00
parent 09396ab584
commit 171f657876
28 changed files with 1466 additions and 32 deletions
+5
View File
@@ -43,6 +43,7 @@ const host = (changes: Partial<CapacityHost> = {}): CapacityHost => ({
...changes
});
const history: CapacityHistory = {
temperatures: [],
range: '24h',
startAt: 1000,
endAt: 5000,
@@ -112,6 +113,10 @@ it('keeps current estimates and host comparison before history with scoped histo
expect(body).not.toContain('Manage hosts');
expect(body).toContain('Updates every 30 seconds');
expect(body).not.toContain('>Refresh<');
expect(body.indexOf('id="temperature-history-title"')).toBeGreaterThan(
body.indexOf('id="capacity-history-title"')
);
expect(body.match(/aria-label="History range"/g)).toHaveLength(2);
});
it('keeps fleet-wide queue scope explicit and preserves unavailable estimates', () => {