Skip to content

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

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.tsx
index 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.tsx
index 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.tsx
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.json
index 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.tsx
index 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", () => {