From 33b0bc4d981805ec356cc6b893bebc3354c479ff Mon Sep 17 00:00:00 2001 From: hsiegeln <37154749+hsiegeln@users.noreply.github.com> Date: Tue, 14 Apr 2026 23:56:01 +0200 Subject: [PATCH] fix: cast LogEntryResponse to LogEntry for StartupLogPanel type safety The DS LogViewer expects level as a string union, but the API response type uses plain string. Cast at the call site to fix the TS build error. Co-Authored-By: Claude Opus 4.6 (1M context) --- ui/src/components/StartupLogPanel.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ui/src/components/StartupLogPanel.tsx b/ui/src/components/StartupLogPanel.tsx index 7c976a19..150989ab 100644 --- a/ui/src/components/StartupLogPanel.tsx +++ b/ui/src/components/StartupLogPanel.tsx @@ -1,4 +1,5 @@ import { LogViewer } from '@cameleer/design-system'; +import type { LogEntry } from '@cameleer/design-system'; import { useStartupLogs } from '../api/queries/logs'; import type { Deployment } from '../api/queries/admin/apps'; import styles from './StartupLogPanel.module.css'; @@ -37,7 +38,7 @@ export function StartupLogPanel({ deployment, appSlug, envSlug }: StartupLogPane {entries.length} lines {entries.length > 0 ? ( - + ) : (
Waiting for container output...
)}