fix(web): stop exporting formatDuration from runs settings page

Next.js App Router rejects non-page exports from page modules; duration
formatting stays a local helper.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Randall Stillwell 2026-07-07 14:11:04 -05:00
parent a6898617b5
commit 863d2d9d44

View file

@ -66,7 +66,7 @@ function formatTimestamp(when: Date | string): string {
* for in-flight runs (no `finishedAt`). Below a minute we show seconds * for in-flight runs (no `finishedAt`). Below a minute we show seconds
* with a single decimal so quick MCP calls don't all look like "0s". * with a single decimal so quick MCP calls don't all look like "0s".
*/ */
export function formatDuration( function formatDuration(
startedAt: Date | string, startedAt: Date | string,
finishedAt: Date | string | null, finishedAt: Date | string | null,
): string { ): string {