Remove confusing strategy summary timestamp

This commit is contained in:
Thigazhezhilan J 2026-04-01 22:53:47 +05:30
parent a22e8d7ee8
commit d63202261a

View File

@ -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 (
<div className={`rounded-lg border px-4 py-3 text-sm ${className}`}>
<div className="flex flex-col gap-1 md:flex-row md:items-center md:justify-between">
<div className="flex flex-col gap-1">
<span>{message}</span>
{updatedAt ? <span className="text-xs opacity-80">Updated {updatedAt}</span> : null}
</div>
</div>
);