Add sidebar navigation and global command search
This commit is contained in:
@@ -26,7 +26,7 @@ describe('server health presentation', () => {
|
||||
{ ...server.host!, lastHeartbeat: iso(-91_000) }]) {
|
||||
expect(serverHealth({ ...server, host, health: 'offline', container_state: 'stopped' }, now)).toEqual({
|
||||
state: 'host-offline', label: 'Host offline', reason: "Dallas 1's host agent is unavailable. The game may still be running.",
|
||||
actionLabel: 'Check host', actionHref: '/hosts/host-1', since: host.lastHeartbeat
|
||||
shortReason: 'Dallas 1 unavailable; game may still run.', actionLabel: 'Check host', actionHref: '/hosts/host-1', since: host.lastHeartbeat
|
||||
});
|
||||
}
|
||||
});
|
||||
@@ -57,7 +57,7 @@ describe('server health presentation', () => {
|
||||
it('separates a running container with failed game checks from a stopped or missing container', () => {
|
||||
expect(serverHealth({ ...server, health: 'offline', last_seen_at: iso(-300_000), last_error: 'timeout:Internal endpoint 10.0.0.1 timed out' }, now)).toEqual({
|
||||
state: 'not-responding', label: 'Not responding', reason: 'The game did not answer the latest status check.',
|
||||
actionLabel: 'Test connection', actionHref: `/servers/${server.name}?tab=diagnostics`, since: iso(-300_000)
|
||||
shortReason: 'No reply to the status check.', actionLabel: 'Test connection', actionHref: `/servers/${server.name}?tab=diagnostics`, since: iso(-300_000)
|
||||
});
|
||||
expect(serverHealth({ ...server, health: 'offline', container_state: 'missing', last_seen_at: null }, now).state).toBe('unknown');
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user