From 54a850b0f3f7fa7e0decb749a7740cc8310bb265 Mon Sep 17 00:00:00 2001 From: Rohit Date: Mon, 7 Jul 2025 22:50:34 +0530 Subject: [PATCH] feat: revamp cap text output preview ui --- src/components/run/InterpretationLog.tsx | 72 ++++++++++++++---------- 1 file changed, 43 insertions(+), 29 deletions(-) diff --git a/src/components/run/InterpretationLog.tsx b/src/components/run/InterpretationLog.tsx index 0f1f1185..faf965e9 100644 --- a/src/components/run/InterpretationLog.tsx +++ b/src/components/run/InterpretationLog.tsx @@ -379,49 +379,63 @@ export const InterpretationLog: React.FC = ({ isOpen, se )} {(activeTab === availableTabs.findIndex(tab => tab.id === 'captureText') || singleContentType === 'captureText') && captureTextData.length > 0 && ( - - - - - {getCaptureTextColumns.map((column) => ( + + +
+ + - {column} + Label - ))} - - - - {captureTextData.map((row, idx) => ( - - {getCaptureTextColumns.map((column) => ( + + Value + + + + + {getCaptureTextColumns.map((column, index) => ( + + + {column} + - {row[column]} + {captureTextData[0][column]} - ))} - - ))} - -
-
+ + ))} + + + + )}