Never stop coding. Free MIT AI gateway: one endpoint, 375 providers (150+ free), 1,400+ models Kimi, Claude, GPT, Gemini, GLM, DeepSeek, MiniMax. Works with Claude Code, Codex, Cursor, OpenCode, Cline & Copilot. Quota-aware auto-fallback, RTK+Caveman compression saves 15-95% tokens, MCP/A2A, Desktop/PWA. Built by 900+ contributors
TypeScript a2aai-agentsai-gatewayanthropicclaudeclaude-codeclinecodexcopilotcursordeepseekfree-aigeminikimillm-gatewaymcpopenaiopenai-proxyqwentoken-saver
fix(batch): wireframe polishing — Used by roles, -50% inline, (partial) suffix
diegosouzapw0f1bbc58a4f3
diff --git a/src/app/(dashboard)/dashboard/batch/BatchListTab.tsx b/src/app/(dashboard)/dashboard/batch/BatchListTab.tsxindex f2906ca8f9..7479a85c59 100644--- a/src/app/(dashboard)/dashboard/batch/BatchListTab.tsx+++ b/src/app/(dashboard)/dashboard/batch/BatchListTab.tsx@@ -453,7 +453,7 @@ export default function BatchListTab({<td className="px-4 py-3 text-[var(--color-text-muted)] text-xs">{batch.model ?? "—"}</td>- {/* Progress — ProgressBarBicolor from F3; spinner when validating (G2) */}+ {/* Progress — ProgressBarBicolor from F3; spinner when validating (G2); (partial) suffix when expired with failures (G-AUD3) */}<td className="px-4 py-3 min-w-[140px]">{batch.status === "validating" ? (<div className="flex items-center gap-2 text-xs text-yellow-400">@@ -461,19 +461,31 @@ export default function BatchListTab({Validating…</div>) : total > 0 ? (- <ProgressBarBicolor- total={total}- completed={done}- failed={failed}- showLabels- />+ <div className="flex flex-col gap-0.5">+ <ProgressBarBicolor+ total={total}+ completed={done}+ failed={failed}+ showLabels+ />+ {effectiveStatus(batch) === "expired_with_failures" && (+ <span className="text-[10px] text-orange-400 italic">+ {t("batchListProgressPartial")}+ </span>+ )}+ </div>) : (<span className="text-xs text-[var(--color-text-muted)]">—</span>)}</td>- {/* Cost column — heuristic estimate (D8) */}- <td className="px-4 py-3 text-xs text-[var(--color-text-muted)] whitespace-nowrap">- {estimatedCost}+ {/* Cost column — heuristic estimate (D8) with -50% badge per wireframe §3 (G-AUD2) */}+ <td className="px-4 py-3 text-xs whitespace-nowrap">+ <span className="text-[var(--color-text-muted)]">{estimatedCost}</span>+ {estimatedCost !== "—" && (+ <span className="ml-1 text-[10px] text-emerald-500/90 bg-emerald-500/10 rounded px-1 py-0.5 align-middle">+ -50%+ </span>+ )}</td><td className="px-4 py-3 text-xs text-[var(--color-text-muted)] whitespace-nowrap">{relativeTime(batch.createdAt)}diff --git a/src/app/(dashboard)/dashboard/batch/FilesListTab.tsx b/src/app/(dashboard)/dashboard/batch/FilesListTab.tsxindex f61d4767c1..f47f52db5a 100644--- a/src/app/(dashboard)/dashboard/batch/FilesListTab.tsx+++ b/src/app/(dashboard)/dashboard/batch/FilesListTab.tsx@@ -249,31 +249,44 @@ export default function FilesListTab({<td className="px-4 py-3 text-xs text-[var(--color-text-muted)] whitespace-nowrap">{formatBytes(file.bytes)}</td>- {/* "Used by" column (D12) */}+ {/* "Used by" column (D12) — shows batch id + role (input/output/error) per plan §4 */}<td className="px-4 py-3 text-xs">{related.length === 0 ? (<span className="text-[var(--color-text-muted)]">{t("filesListUsedByNone")}</span>) : (- <div- className="flex flex-col gap-0.5"- title={related.map((b) => b.id).join(", ")}- >- {related.slice(0, 2).map((b) => (- <span- key={b.id}- className="font-mono text-[10px] text-[var(--color-text-main)]"+ (() => {+ const roleFor = (b: BatchRecord): string =>+ b.inputFileId === file.id+ ? t("filesListUsedByRoleInput")+ : b.outputFileId === file.id+ ? t("filesListUsedByRoleOutput")+ : t("filesListUsedByRoleError");+ return (+ <div+ className="flex flex-col gap-0.5"+ title={related.map((b) => `${b.id} (${roleFor(b)})`).join(", ")}>- {b.id.slice(0, 16)}…- </span>- ))}- {related.length > 2 && (- <span className="text-[10px] text-[var(--color-text-muted)]">- +{related.length - 2}- </span>- )}- </div>+ {related.slice(0, 2).map((b) => (+ <span+ key={b.id}+ className="font-mono text-[10px] text-[var(--color-text-main)]"+ >+ {b.id.slice(0, 12)}…{" "}+ <span className="text-[var(--color-text-muted)]">+ ({roleFor(b)})+ </span>+ </span>+ ))}+ {related.length > 2 && (+ <span className="text-[10px] text-[var(--color-text-muted)]">+ +{related.length - 2}+ </span>+ )}+ </div>+ );+ })())}</td><td className="px-4 py-3 text-xs text-[var(--color-text-muted)] whitespace-nowrap">diff --git a/src/app/(dashboard)/dashboard/batch/components/ExpirationBadge.tsx b/src/app/(dashboard)/dashboard/batch/components/ExpirationBadge.tsxindex 0fe1b55396..bf415283e9 100644--- a/src/app/(dashboard)/dashboard/batch/components/ExpirationBadge.tsx+++ b/src/app/(dashboard)/dashboard/batch/components/ExpirationBadge.tsx@@ -34,6 +34,10 @@ export default function ExpirationBadge({ expiresAt, variant = "default" }: Prop</span>);}+ // D11 tiers: <1h critical (red) · <6h warning (yellow) · else normal (green).+ // Plan specifies "<24h normal" — in practice batches always expire ≤24h (OpenAI window),+ // so "else" maps to that case. If a provider (e.g. Gemini 48h) yields remaining >24h,+ // we still render normal — graceful, no separate tier needed.let tone = "bg-emerald-500/15 text-emerald-400 border-emerald-500/25";let label = t("expirationBadgeNormal");if (remaining < 3600) {diff --git a/src/i18n/messages/ar.json b/src/i18n/messages/ar.jsonindex c088884b1a..c783631369 100644--- a/src/i18n/messages/ar.json+++ b/src/i18n/messages/ar.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "الصفحة الرئيسية",diff --git a/src/i18n/messages/az.json b/src/i18n/messages/az.jsonindex 0e7a7eda54..adca859590 100644--- a/src/i18n/messages/az.json+++ b/src/i18n/messages/az.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Home",diff --git a/src/i18n/messages/bg.json b/src/i18n/messages/bg.jsonindex 60d5650f1b..aa4fd677da 100644--- a/src/i18n/messages/bg.json+++ b/src/i18n/messages/bg.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Начало",diff --git a/src/i18n/messages/bn.json b/src/i18n/messages/bn.jsonindex 82a63e3ea7..3a9a0d9720 100644--- a/src/i18n/messages/bn.json+++ b/src/i18n/messages/bn.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Home",diff --git a/src/i18n/messages/cs.json b/src/i18n/messages/cs.jsonindex 1a44bef001..700aff4d25 100644--- a/src/i18n/messages/cs.json+++ b/src/i18n/messages/cs.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Domov",diff --git a/src/i18n/messages/da.json b/src/i18n/messages/da.jsonindex c45a6a4652..95b40bcb32 100644--- a/src/i18n/messages/da.json+++ b/src/i18n/messages/da.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Hjem",diff --git a/src/i18n/messages/de.json b/src/i18n/messages/de.jsonindex 2a261ae66b..734f3de988 100644--- a/src/i18n/messages/de.json+++ b/src/i18n/messages/de.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Zuhause",diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.jsonindex 24f1296eae..5ae1e6bded 100644--- a/src/i18n/messages/en.json+++ b/src/i18n/messages/en.json@@ -773,6 +773,10 @@"filesListUploadButton": "Upload","filesListUsedByColumn": "Used by","filesListUsedByNone": "None",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)","filesListDelete": "Delete","filesListDownload": "Download","batchDetailActionCancel": "Cancel batch",diff --git a/src/i18n/messages/es.json b/src/i18n/messages/es.jsonindex dfaba6b71e..c3e2d08993 100644--- a/src/i18n/messages/es.json+++ b/src/i18n/messages/es.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Inicio",diff --git a/src/i18n/messages/fa.json b/src/i18n/messages/fa.jsonindex c5a8ca3470..6a0e5351c9 100644--- a/src/i18n/messages/fa.json+++ b/src/i18n/messages/fa.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Home",diff --git a/src/i18n/messages/fi.json b/src/i18n/messages/fi.jsonindex b7cc1a9554..e58fd5f9d6 100644--- a/src/i18n/messages/fi.json+++ b/src/i18n/messages/fi.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Kotiin",diff --git a/src/i18n/messages/fr.json b/src/i18n/messages/fr.jsonindex 5012e02d4f..e9d74cb6ac 100644--- a/src/i18n/messages/fr.json+++ b/src/i18n/messages/fr.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Accueil",diff --git a/src/i18n/messages/gu.json b/src/i18n/messages/gu.jsonindex 45e1939d71..ddff5abd11 100644--- a/src/i18n/messages/gu.json+++ b/src/i18n/messages/gu.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Home",diff --git a/src/i18n/messages/he.json b/src/i18n/messages/he.jsonindex 9bb52646fc..bb7a55dcb1 100644--- a/src/i18n/messages/he.json+++ b/src/i18n/messages/he.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "בית",diff --git a/src/i18n/messages/hi.json b/src/i18n/messages/hi.jsonindex ba1a6ab430..3ec96291c3 100644--- a/src/i18n/messages/hi.json+++ b/src/i18n/messages/hi.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "घर",diff --git a/src/i18n/messages/hu.json b/src/i18n/messages/hu.jsonindex c1d9b3fc46..be85237ed4 100644--- a/src/i18n/messages/hu.json+++ b/src/i18n/messages/hu.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Otthon",diff --git a/src/i18n/messages/id.json b/src/i18n/messages/id.jsonindex 90206d7ff4..3136251c3b 100644--- a/src/i18n/messages/id.json+++ b/src/i18n/messages/id.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Rumah",diff --git a/src/i18n/messages/in.json b/src/i18n/messages/in.jsonindex 059323cd6a..c878b2f981 100644--- a/src/i18n/messages/in.json+++ b/src/i18n/messages/in.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Home",diff --git a/src/i18n/messages/it.json b/src/i18n/messages/it.jsonindex ec8e1612fd..971d4ebf24 100644--- a/src/i18n/messages/it.json+++ b/src/i18n/messages/it.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Casa",diff --git a/src/i18n/messages/ja.json b/src/i18n/messages/ja.jsonindex 5c9ffc496f..bdbf6dd66e 100644--- a/src/i18n/messages/ja.json+++ b/src/i18n/messages/ja.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "ホーム",diff --git a/src/i18n/messages/ko.json b/src/i18n/messages/ko.jsonindex 48bbedf146..0b7153ca89 100644--- a/src/i18n/messages/ko.json+++ b/src/i18n/messages/ko.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "홈",diff --git a/src/i18n/messages/mr.json b/src/i18n/messages/mr.jsonindex e8ed9d61a5..d1288680c2 100644--- a/src/i18n/messages/mr.json+++ b/src/i18n/messages/mr.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Home",diff --git a/src/i18n/messages/ms.json b/src/i18n/messages/ms.jsonindex c708171580..b3b9153932 100644--- a/src/i18n/messages/ms.json+++ b/src/i18n/messages/ms.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Rumah",diff --git a/src/i18n/messages/nl.json b/src/i18n/messages/nl.jsonindex 5ad2d23573..1e2769f49e 100644--- a/src/i18n/messages/nl.json+++ b/src/i18n/messages/nl.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Thuis",diff --git a/src/i18n/messages/no.json b/src/i18n/messages/no.jsonindex 2cec2f5af7..dd3f16a0a0 100644--- a/src/i18n/messages/no.json+++ b/src/i18n/messages/no.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Hjem",diff --git a/src/i18n/messages/phi.json b/src/i18n/messages/phi.jsonindex 8921ad9f19..ca722513df 100644--- a/src/i18n/messages/phi.json+++ b/src/i18n/messages/phi.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Bahay",diff --git a/src/i18n/messages/pl.json b/src/i18n/messages/pl.jsonindex 51d8f04dea..76b1958fe2 100644--- a/src/i18n/messages/pl.json+++ b/src/i18n/messages/pl.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Dom",diff --git a/src/i18n/messages/pt-BR.json b/src/i18n/messages/pt-BR.jsonindex 4dd0b1e1dd..7f3417c56c 100644--- a/src/i18n/messages/pt-BR.json+++ b/src/i18n/messages/pt-BR.json@@ -773,6 +773,10 @@"filesListUploadButton": "Enviar","filesListUsedByColumn": "Usado por","filesListUsedByNone": "Nenhum",+ "filesListUsedByRoleInput": "entrada",+ "filesListUsedByRoleOutput": "saída",+ "filesListUsedByRoleError": "erro",+ "batchListProgressPartial": "(parcial)","filesListDelete": "Excluir","filesListDownload": "Baixar","batchDetailActionCancel": "Cancelar batch",diff --git a/src/i18n/messages/pt.json b/src/i18n/messages/pt.jsonindex 5d24bca486..d691a98f42 100644--- a/src/i18n/messages/pt.json+++ b/src/i18n/messages/pt.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Página inicial",diff --git a/src/i18n/messages/ro.json b/src/i18n/messages/ro.jsonindex 4dee59288a..04a5c4f876 100644--- a/src/i18n/messages/ro.json+++ b/src/i18n/messages/ro.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Acasă",diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.jsonindex db0a1c42b4..ccfc48a6f9 100644--- a/src/i18n/messages/ru.json+++ b/src/i18n/messages/ru.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Главная",diff --git a/src/i18n/messages/sk.json b/src/i18n/messages/sk.jsonindex 5433d33720..e65b868bd6 100644--- a/src/i18n/messages/sk.json+++ b/src/i18n/messages/sk.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Domov",diff --git a/src/i18n/messages/sv.json b/src/i18n/messages/sv.jsonindex 1ef5d385f4..7ecfb23276 100644--- a/src/i18n/messages/sv.json+++ b/src/i18n/messages/sv.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Hem",diff --git a/src/i18n/messages/sw.json b/src/i18n/messages/sw.jsonindex fcbb289870..e91af7ec55 100644--- a/src/i18n/messages/sw.json+++ b/src/i18n/messages/sw.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Home",diff --git a/src/i18n/messages/ta.json b/src/i18n/messages/ta.jsonindex 037dc9a55f..12d3392741 100644--- a/src/i18n/messages/ta.json+++ b/src/i18n/messages/ta.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Home",diff --git a/src/i18n/messages/te.json b/src/i18n/messages/te.jsonindex 7acdd3f002..630df51c0f 100644--- a/src/i18n/messages/te.json+++ b/src/i18n/messages/te.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Home",diff --git a/src/i18n/messages/th.json b/src/i18n/messages/th.jsonindex 8c174c4ebc..d9610121cf 100644--- a/src/i18n/messages/th.json+++ b/src/i18n/messages/th.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "บ้าน",diff --git a/src/i18n/messages/tr.json b/src/i18n/messages/tr.jsonindex bd6d1f5d32..92f9f83f5f 100644--- a/src/i18n/messages/tr.json+++ b/src/i18n/messages/tr.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Ana Sayfa",diff --git a/src/i18n/messages/uk-UA.json b/src/i18n/messages/uk-UA.jsonindex f053fb99f1..be0f1ef8ef 100644--- a/src/i18n/messages/uk-UA.json+++ b/src/i18n/messages/uk-UA.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "додому",diff --git a/src/i18n/messages/ur.json b/src/i18n/messages/ur.jsonindex 696accf947..667855586a 100644--- a/src/i18n/messages/ur.json+++ b/src/i18n/messages/ur.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Home",diff --git a/src/i18n/messages/vi.json b/src/i18n/messages/vi.jsonindex d2b8d9bc26..46503f4e3a 100644--- a/src/i18n/messages/vi.json+++ b/src/i18n/messages/vi.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "Trang chủ",diff --git a/src/i18n/messages/zh-CN.json b/src/i18n/messages/zh-CN.jsonindex 866d6dd737..f9fa3e5a54 100644--- a/src/i18n/messages/zh-CN.json+++ b/src/i18n/messages/zh-CN.json@@ -782,7 +782,11 @@"batchDetailCancelConfirm": "Cancel this batch? In-progress requests will stop.","batchActionCancelError": "Failed to cancel batch. Try again.","batchActionRetryError": "Failed to retry failed requests. Try again.",- "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)"+ "batchConceptRetentionNote": "Results and error files are retained for 30 days (Anthropic: 29 days)",+ "filesListUsedByRoleInput": "input",+ "filesListUsedByRoleOutput": "output",+ "filesListUsedByRoleError": "error",+ "batchListProgressPartial": "(partial)"},"sidebar": {"home": "首页",diff --git a/tests/unit/dashboard/batch/list-regression.test.tsx b/tests/unit/dashboard/batch/list-regression.test.tsxindex 59d4bb9668..cce3fbddff 100644--- a/tests/unit/dashboard/batch/list-regression.test.tsx+++ b/tests/unit/dashboard/batch/list-regression.test.tsx@@ -341,7 +341,7 @@ describe("FilesListTab — rendering", () => {expect(el.textContent).toContain("filesListUsedByColumn");});- it("13. files with related batches (via inputFileId) show batch ID in used-by column", () => {+ it("13. files with related batches (via inputFileId) show batch ID + role in used-by column", () => {const file = makeFile({ id: "file-used", purpose: "batch" });const batches = [{@@ -357,7 +357,14 @@ describe("FilesListTab — rendering", () => {const el = render(<FilesListTab files={[file]} loading={false} batches={batches} />);- expect(el.textContent).toContain("batch-using-file");+ // Truncated id prefix (12 chars) appears inline+ expect(el.textContent).toContain("batch-using-");+ // Role label is rendered next to the id (G-AUD1 — plan §4 "b1 (input)")+ expect(el.textContent).toContain("filesListUsedByRoleInput");+ // Tooltip carries the full id + role+ const cell = el.querySelector("[title*='batch-using-file']");+ expect(cell).not.toBeNull();+ expect(cell?.getAttribute("title")).toContain("filesListUsedByRoleInput");});it("14. loading state shows spinner", () => {