@@ -128,16 +176,15 @@ export function LogViewer({
)}
{!logsLoading && displayLogs.length > 0 && (
-
- {displayLogs.map((log) => {
- const config = actionConfig[log.action];
- const ActionIcon = config.icon;
- const isExpanded = expandedLog === log.id;
- return (
-
+
+ {displayLogs.map((log) => {
+ const config = actionConfig[log.action];
+ const ActionIcon = config.icon;
+ return (
-
-
-
+
-
- {isExpanded && (
-
-
-
-
-
- Input
-
- }
- aria-label="Copy input"
- />
-
-
- {log.input_snippet ?? log.input ?? "—"}
-
-
-
-
- Output
-
-
- {log.output_snippet ?? log.output ?? "—"}
-
-
- {(log.reason ?? log.score != null) && (
-
-
- Reason
-
-
- {log.reason ?? (log.score != null ? `Score: ${log.score}` : "—")}
-
-
- )}
-
-
- )}
-
- );
- })}
-
+ );
+ })}
+
)}
+
+