From a66f4f2f55c053c00a8cdfa310f5f60cff4940e6 Mon Sep 17 00:00:00 2001 From: Theodore Li Date: Wed, 1 Jul 2026 14:13:56 -0700 Subject: [PATCH 1/4] fix(interfaces): pin deployed chat + resume to light mode, emcn-only components --- .../(interfaces)/chat/[identifier]/chat.tsx | 2 +- .../chat/[identifier]/loading.tsx | 2 +- .../components/error-state/error-state.tsx | 8 +- .../chat/components/header/header.tsx | 6 +- .../chat/components/input/input.tsx | 66 +- .../loading-state/loading-state.tsx | 2 +- .../message-container/message-container.tsx | 11 +- .../message/components/file-download.tsx | 29 +- .../message/components/markdown-renderer.tsx | 48 +- .../chat/components/message/message.tsx | 53 +- .../voice-interface/voice-interface.tsx | 25 +- .../[executionId]/resume-page-client.tsx | 742 +++++++----------- 12 files changed, 383 insertions(+), 611 deletions(-) diff --git a/apps/sim/app/(interfaces)/chat/[identifier]/chat.tsx b/apps/sim/app/(interfaces)/chat/[identifier]/chat.tsx index 6d4a9435a63..49f71d79272 100644 --- a/apps/sim/app/(interfaces)/chat/[identifier]/chat.tsx +++ b/apps/sim/app/(interfaces)/chat/[identifier]/chat.tsx @@ -426,7 +426,7 @@ export default function ChatClient({ identifier }: { identifier: string }) { } return ( -
+
{/* Header component */} diff --git a/apps/sim/app/(interfaces)/chat/[identifier]/loading.tsx b/apps/sim/app/(interfaces)/chat/[identifier]/loading.tsx index 9b032730a1c..8f55e4c5552 100644 --- a/apps/sim/app/(interfaces)/chat/[identifier]/loading.tsx +++ b/apps/sim/app/(interfaces)/chat/[identifier]/loading.tsx @@ -2,7 +2,7 @@ import { Skeleton } from '@sim/emcn' export default function ChatLoading() { return ( -
+
diff --git a/apps/sim/app/(interfaces)/chat/components/error-state/error-state.tsx b/apps/sim/app/(interfaces)/chat/components/error-state/error-state.tsx index 23cbd1789e9..8d14e3a1ee9 100644 --- a/apps/sim/app/(interfaces)/chat/components/error-state/error-state.tsx +++ b/apps/sim/app/(interfaces)/chat/components/error-state/error-state.tsx @@ -1,5 +1,6 @@ 'use client' +import { Button } from '@sim/emcn' import { useRouter } from 'next/navigation' interface ChatErrorStateProps { @@ -16,12 +17,13 @@ export function ChatErrorState({ error }: ChatErrorStateProps) { Chat Unavailable

{error}

- +
) diff --git a/apps/sim/app/(interfaces)/chat/components/header/header.tsx b/apps/sim/app/(interfaces)/chat/components/header/header.tsx index cbe6e74c2f3..1672abd4560 100644 --- a/apps/sim/app/(interfaces)/chat/components/header/header.tsx +++ b/apps/sim/app/(interfaces)/chat/components/header/header.tsx @@ -40,7 +40,7 @@ export function ChatHeader({ chatConfig, starCount }: ChatHeaderProps) { className='size-6 rounded-md object-cover' /> )} -

+

{chatConfig?.customizations?.headerText || chatConfig?.title || 'Chat'}

@@ -52,7 +52,7 @@ export function ChatHeader({ chatConfig, starCount }: ChatHeaderProps) { href='https://github.com/simstudioai/sim' target='_blank' rel='noopener noreferrer' - className='flex items-center gap-2 text-[var(--landing-text-muted)] text-md transition-colors hover:text-[var(--landing-text)]' + className='flex items-center gap-2 text-[var(--text-muted)] text-md transition-colors hover:text-[var(--text-primary)]' aria-label={`GitHub repository - ${starCount} stars`} >