fix: increase Banner API timeouts to handle slow responses

This commit is contained in:
2026-01-29 19:49:57 -06:00
parent cfe098d193
commit ba2b2fc50a
3 changed files with 10 additions and 8 deletions
+1 -3
View File
@@ -7,9 +7,7 @@ export function formatRelativeDate(date: string | Date): string {
}
/** Returns a full absolute datetime string for tooltip display, e.g. "Jan 29, 2026, 3:45:12 PM". */
export function formatAbsoluteDate(date: string | Date | null | undefined): string {
if (date == null) return "—";
export function formatAbsoluteDate(date: string | Date): string {
const d = typeof date === "string" ? new Date(date) : date;
if (Number.isNaN(d.getTime())) return "—";
return format(d, "MMM d, yyyy, h:mm:ss a");
}
+6 -2
View File
@@ -284,9 +284,13 @@ function getTimingDisplay(
const tooltipLines = [
`Queued: ${formatAbsoluteDate(job.queuedAt)}`,
`Waited: ${formatDuration(Math.max(0, waitedMs))}`,
`Locked: ${formatAbsoluteDate(job.lockedAt)}`,
`${job.status === "staleLock" ? "Stale for" : "Processing"}: ${formatDuration(processingMs)}`,
];
if (job.lockedAt) {
tooltipLines.push(`Locked: ${formatAbsoluteDate(job.lockedAt)}`);
}
tooltipLines.push(
`${job.status === "staleLock" ? "Stale for" : "Processing"}: ${formatDuration(processingMs)}`,
);
return {
text: `${prefix} ${formatDuration(processingMs)}`,