From a0ac31c6ddbfd5c2d4ec217655872c7a0e7b09bf Mon Sep 17 00:00:00 2001 From: Timothy Jaeryang Baek Date: Fri, 10 Jul 2026 16:34:50 -0500 Subject: [PATCH] refac --- terminals/frontend/src/app.css | 6 +- terminals/frontend/src/routes/+page.svelte | 221 ++++++++++----------- 2 files changed, 111 insertions(+), 116 deletions(-) diff --git a/terminals/frontend/src/app.css b/terminals/frontend/src/app.css index 861acf2..6953555 100644 --- a/terminals/frontend/src/app.css +++ b/terminals/frontend/src/app.css @@ -22,8 +22,8 @@ } :root { - --app-bg: #050505; - --app-fg: #c8c8c8; + --app-bg: #ffffff; + --app-fg: #525252; --app-fg-muted: color-mix(in oklab, var(--app-fg) 62%, var(--app-bg)); --app-fg-subtle: color-mix(in oklab, var(--app-fg) 48%, var(--app-bg)); --app-border: color-mix(in oklab, var(--app-fg) 10%, transparent); @@ -48,7 +48,7 @@ background: var(--app-bg); color: var(--app-fg); font-family: var(--font-sans); - color-scheme: dark; + color-scheme: light; } button { diff --git a/terminals/frontend/src/routes/+page.svelte b/terminals/frontend/src/routes/+page.svelte index 7594247..bb6ec5f 100644 --- a/terminals/frontend/src/routes/+page.svelte +++ b/terminals/frontend/src/routes/+page.svelte @@ -88,14 +88,10 @@ ]); const policiesWithLifecycle = await Promise.all( nextPolicies.map(async (policy) => { - try { - const lifecycle = await api<{ data?: Record }>( - `/api/v1/policies/${encodeURIComponent(policy.id)}/lifecycle` - ); - return { ...policy, lifecycle: lifecycle.data || {} }; - } catch { - return { ...policy, lifecycle: {} }; - } + const lifecycle = await api<{ data?: Record }>( + `/api/v1/policies/${encodeURIComponent(policy.id)}/lifecycle` + ); + return { ...policy, lifecycle: lifecycle.data || {} }; }) ); status = nextStatus; @@ -257,32 +253,41 @@ Terminals -
-
-