mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-30 03:00:41 -04:00
feat(frontend): show timestamp in output modal
This commit is contained in:
@@ -82,6 +82,7 @@ export type CustomNodeData = {
|
||||
executionResults?: {
|
||||
execId: string;
|
||||
data: NodeExecutionResult["output_data"];
|
||||
timestamp: Date | string;
|
||||
status: NodeExecutionResult["status"];
|
||||
}[];
|
||||
block_id: string;
|
||||
|
||||
@@ -10,6 +10,7 @@ interface OutputModalProps {
|
||||
executionResults: {
|
||||
execId: string;
|
||||
data: NodeExecutionResult["output_data"];
|
||||
timestamp: Date | string;
|
||||
}[];
|
||||
}
|
||||
|
||||
@@ -31,7 +32,7 @@ const OutputModalComponent: FC<OutputModalProps> = ({
|
||||
<>
|
||||
<DataTable
|
||||
key={i}
|
||||
title={data.execId}
|
||||
title={new Date(data.timestamp).toLocaleString()}
|
||||
data={data.data}
|
||||
truncateLongData={true}
|
||||
/>
|
||||
|
||||
@@ -374,6 +374,12 @@ export default function useAgentGraph(
|
||||
"[Input]": [executionData.input_data],
|
||||
...executionData.output_data,
|
||||
},
|
||||
timestamp:
|
||||
executionData.end_time ||
|
||||
executionData.start_time ||
|
||||
executionData.queue_time ||
|
||||
executionData.add_time ||
|
||||
new Date(),
|
||||
status: executionData.status,
|
||||
},
|
||||
];
|
||||
|
||||
Reference in New Issue
Block a user