From d4c4fe1e5c16d6ecaf285df9cd9c798fec6319be Mon Sep 17 00:00:00 2001 From: Anirban Kar Date: Sat, 9 Nov 2024 13:43:19 +0530 Subject: [PATCH] feat: hyperlinked on "Start application" actionto switch to preview in workbench --- app/components/chat/Artifact.tsx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/app/components/chat/Artifact.tsx b/app/components/chat/Artifact.tsx index 8306225..62020fd 100644 --- a/app/components/chat/Artifact.tsx +++ b/app/components/chat/Artifact.tsx @@ -178,9 +178,15 @@ const ActionList = memo(({ actions }: ActionListProps) => { Run command ) : type === 'start' ? ( -
+ { + e.preventDefault(); + workbenchStore.currentView.set('preview'); + }} + className="flex items-center w-full min-h-[28px]" + > Start Application -
+ ) : null} {(type === 'shell' || type === 'start') && (