From a26c103eb437dbb074bc48eebf0639e49c1dd471 Mon Sep 17 00:00:00 2001 From: Tomas Dvorak Date: Fri, 9 Oct 2026 00:46:32 +0200 Subject: [PATCH] fix(ui): add sleeping/waking to ServiceStatus union + sleeping badge class Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com> --- app/frontend/src/index.css | 4 ++++ app/frontend/src/lib/api-client.ts | 6 +++++- 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/app/frontend/src/index.css b/app/frontend/src/index.css index 68c365e..0e6775c 100644 --- a/app/frontend/src/index.css +++ b/app/frontend/src/index.css @@ -398,6 +398,10 @@ textarea { background: var(--text-tertiary); } +.status-sleeping { + background: var(--info, #6366f1); +} + @keyframes pulse-ring { 0% { transform: scale(1); opacity: 0.7; } 70% { transform: scale(2); opacity: 0; } diff --git a/app/frontend/src/lib/api-client.ts b/app/frontend/src/lib/api-client.ts index 14309a3..0342563 100644 --- a/app/frontend/src/lib/api-client.ts +++ b/app/frontend/src/lib/api-client.ts @@ -1,6 +1,6 @@ import type { components, paths } from '@/generated/api-types'; -export type ServiceStatus = 'running' | 'degraded' | 'stopped' | 'building' | 'failed' | 'unknown'; +export type ServiceStatus = 'running' | 'degraded' | 'stopped' | 'building' | 'failed' | 'sleeping' | 'waking' | 'unknown'; export type ProjectStats = components['schemas']['ProjectStats']; @@ -1731,6 +1731,10 @@ export function serviceStatusClass(status: ServiceStatus): string { return 'status-building'; case 'failed': return 'status-failed'; + case 'sleeping': + return 'status-sleeping'; + case 'waking': + return 'status-building'; case 'stopped': return 'status-stopped'; default: