Polish: simplify formatTimestamp and tone down export button

Replace try/catch with isNaN guard in the HTML exporter's
formatTimestamp, matching the same cleanup applied client-side.

Downgrade the export button from btn-primary to btn-secondary so it
doesn't compete visually with the main content area. The primary blue
gradient was overly prominent for a utility action.

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-01-30 09:26:35 -05:00
parent c0e4158b77
commit bba678568a
2 changed files with 8 additions and 11 deletions

View File

@@ -65,7 +65,7 @@ export function ExportButton({
btn btn-sm flex-shrink-0 gap-1.5 transition-all duration-200
${state === "success" ? "text-white shadow-glow-success" : ""}
${state === "error" ? "text-white" : ""}
${state === "idle" || state === "exporting" ? "btn-primary" : ""}
${state === "idle" || state === "exporting" ? "btn-secondary" : ""}
`}
style={
state === "success"