From 043f7b6216c387706059e7785152d030e4568fba Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 19 Oct 2024 19:08:51 +0530 Subject: [PATCH] feat: conditionally show interpretation buttons --- src/components/molecules/InterpretationLog.tsx | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/src/components/molecules/InterpretationLog.tsx b/src/components/molecules/InterpretationLog.tsx index 029744d4..d190af35 100644 --- a/src/components/molecules/InterpretationLog.tsx +++ b/src/components/molecules/InterpretationLog.tsx @@ -184,12 +184,18 @@ export const InterpretationLog: React.FC = ({ isOpen, se )) ) : ( - <> - - It looks like you have not selected anything for extraction yet. Once you do, the robot will show a preview of your selections here. - - - + hasScrapeListAction || hasScrapeSchemaAction || hasScreenshotAction ? ( + <> + + You've successfully trained the robot to perform actions. Click on the Get Output Data Preview to show a preview of data extraction. + + + + ) : ( + + "It looks like you have not selected anything for extraction yet. Once you do, the robot will show a preview of your selections here." + + ) )}