From d63202261a5f903c146cc1cfb7af7fdbe05b157f Mon Sep 17 00:00:00 2001 From: Thigazhezhilan J Date: Wed, 1 Apr 2026 22:53:47 +0530 Subject: [PATCH] Remove confusing strategy summary timestamp --- src/components/StrategyTimeline.tsx | 15 +-------------- 1 file changed, 1 insertion(+), 14 deletions(-) diff --git a/src/components/StrategyTimeline.tsx b/src/components/StrategyTimeline.tsx index d0d01ddf..36af76e4 100644 --- a/src/components/StrategyTimeline.tsx +++ b/src/components/StrategyTimeline.tsx @@ -64,17 +64,6 @@ function formatTimestamp(value?: string | null) { return parsed.toLocaleString(); } -function formatCompactTimestamp(value?: string | null) { - const parsed = parseTimestamp(value); - if (!parsed) return null; - return parsed.toLocaleString([], { - month: "short", - day: "numeric", - hour: "numeric", - minute: "2-digit", - }); -} - function getTimestampMs(value?: string | null) { return parseTimestamp(value)?.getTime() ?? 0; } @@ -175,7 +164,6 @@ function CompactStrategySummary() { const tone = summary?.tone ?? "neutral"; const message = summary?.message || "No active strategy."; - const updatedAt = formatCompactTimestamp(summary?.ts); const className = tone === "error" ? "border-red-500/40 bg-red-500/10 text-red-300" @@ -187,9 +175,8 @@ function CompactStrategySummary() { return (
-
+
{message} - {updatedAt ? Updated {updatedAt} : null}
);