Skip to content

Commit 16ba183

Browse files
abhizipstackclaude
andcommitted
fix(run-history): human-readable Triggered column + insights header
The Triggered column was rendering the raw ISO timestamp straight from the API, which is hard to read at a glance. Now the cell shows a locale-formatted date ("Oct 14, 2026, 3:25 PM") with a muted relative time below ("2h ago" / "in 3h"); the full ISO sits in a native tooltip for machine-precise inspection. The expanded insights panel's header reuses the same formatting. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent e934d75 commit 16ba183

1 file changed

Lines changed: 19 additions & 3 deletions

File tree

frontend/src/ide/run-history/Runhistory.jsx

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -325,9 +325,25 @@ const Runhistory = () => {
325325
return new Date(a.start_time) - new Date(b.start_time);
326326
},
327327
defaultSortOrder: "descend",
328-
render: (text) => (
329-
<Typography.Text>{text || "Not started yet"}</Typography.Text>
330-
),
328+
render: (text) => {
329+
if (!text) {
330+
return (
331+
<Typography.Text type="secondary">
332+
Not started yet
333+
</Typography.Text>
334+
);
335+
}
336+
return (
337+
<Tooltip title={new Date(text).toISOString()}>
338+
<Space direction="vertical" size={0}>
339+
<Typography.Text>{formatDateTime(text)}</Typography.Text>
340+
<Typography.Text type="secondary" style={{ fontSize: 11 }}>
341+
{getRelativeTime(text)}
342+
</Typography.Text>
343+
</Space>
344+
</Tooltip>
345+
);
346+
},
331347
},
332348
{
333349
title: "Duration",

0 commit comments

Comments
 (0)