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): gap fixes G2-G7 — validating spinner, ExpirationBadge in files, polling spinner, i18n confirm, error keys, retention bullet

diegosouzapwbc0301503c39
diff --git a/src/app/(dashboard)/dashboard/batch/BatchDetailModal.tsx b/src/app/(dashboard)/dashboard/batch/BatchDetailModal.tsx
index c7874b9d15..fb1b5c0ed3 100644
--- a/src/app/(dashboard)/dashboard/batch/BatchDetailModal.tsx
+++ b/src/app/(dashboard)/dashboard/batch/BatchDetailModal.tsx
@@ -456,7 +456,7 @@ export default function BatchDetailModal({ batch, files, onClose, onActionDone }
{canCancel && (
<button
onClick={async () => {
- if (window.confirm("Cancel this batch? In-progress requests will stop.")) {
+ if (window.confirm(t("batchDetailCancelConfirm"))) {
await cancel(batch.id);
onClose();
}
diff --git a/src/app/(dashboard)/dashboard/batch/BatchListTab.tsx b/src/app/(dashboard)/dashboard/batch/BatchListTab.tsx
index 808814a529..e3e2862e03 100644
--- a/src/app/(dashboard)/dashboard/batch/BatchListTab.tsx
+++ b/src/app/(dashboard)/dashboard/batch/BatchListTab.tsx
@@ -164,7 +164,7 @@ function BatchRowActions({
{canCancel && (
<button
onClick={async () => {
- if (window.confirm(t("batchActionCancel") + "?")) {
+ if (window.confirm(t("batchDetailCancelConfirm"))) {
await actions.cancel(batch.id);
}
}}
@@ -450,9 +450,14 @@ export default function BatchListTab({
<td className="px-4 py-3 text-[var(--color-text-muted)] text-xs">
{batch.model ?? "—"}
</td>
- {/* Progress — ProgressBarBicolor from F3 */}
+ {/* Progress — ProgressBarBicolor from F3; spinner when validating (G2) */}
<td className="px-4 py-3 min-w-[140px]">
- {total > 0 ? (
+ {batch.status === "validating" ? (
+ <div className="flex items-center gap-2 text-xs text-yellow-400">
+ <span className="material-symbols-outlined text-[14px] animate-spin">hourglass_top</span>
+ Validating…
+ </div>
+ ) : total > 0 ? (
<ProgressBarBicolor
total={total}
completed={done}
diff --git a/src/app/(dashboard)/dashboard/batch/FilesListTab.tsx b/src/app/(dashboard)/dashboard/batch/FilesListTab.tsx
index e1ed795a27..f61d4767c1 100644
--- a/src/app/(dashboard)/dashboard/batch/FilesListTab.tsx
+++ b/src/app/(dashboard)/dashboard/batch/FilesListTab.tsx
@@ -3,6 +3,7 @@
import { useState } from "react";
import { useTranslations } from "next-intl";
import FileDetailModal from "./FileDetailModal";
+import ExpirationBadge from "./components/ExpirationBadge";
function relativeTime(ts: number): string {
// ts is in seconds (Unix timestamp)
@@ -17,19 +18,6 @@ function relativeTime(ts: number): string {
return `${diffDays}d ago`;
}
-function relativeExpiration(ts: number | null): string {
- if (!ts) return "Never";
- const diffMs = ts * 1000 - Date.now();
- if (diffMs <= 0) return "Expired";
- const diffSec = Math.round(diffMs / 1000);
- if (diffSec < 60) return `${diffSec}s`;
- const diffMin = Math.round(diffSec / 60);
- if (diffMin < 60) return `${diffMin}m`;
- const diffHr = Math.round(diffMin / 60);
- if (diffHr < 24) return `${diffHr}h`;
- const diffDays = Math.round(diffHr / 24);
- return `${diffDays}d`;
-}
interface FileRecord {
id: string;
@@ -292,7 +280,11 @@ export default function FilesListTab({
{fileCreatedAt ? relativeTime(fileCreatedAt) : "—"}
</td>
<td className="px-4 py-3 text-xs text-[var(--color-text-muted)] whitespace-nowrap">
- {fileExpiresAt ? relativeExpiration(fileExpiresAt) : "Never"}
+ {fileExpiresAt ? (
+ <ExpirationBadge expiresAt={fileExpiresAt} variant="compact" />
+ ) : (
+ <span className="text-xs text-[var(--color-text-muted)]">Never</span>
+ )}
</td>
{/* Actions column */}
<td
diff --git a/src/app/(dashboard)/dashboard/batch/components/BatchConceptCard.tsx b/src/app/(dashboard)/dashboard/batch/components/BatchConceptCard.tsx
index bf33f4ac8b..bdde6f0c89 100644
--- a/src/app/(dashboard)/dashboard/batch/components/BatchConceptCard.tsx
+++ b/src/app/(dashboard)/dashboard/batch/components/BatchConceptCard.tsx
@@ -91,8 +91,7 @@ export default function BatchConceptCard({ className = "" }: Props) {
<span className="material-symbols-outlined text-[16px] text-yellow-400 mt-0.5 shrink-0">
timer
</span>
- {/* 4th bullet: 24h window + 29d retention general note (no dedicated key per §3.5) */}
- <span>{t("batchConceptAsync24h")}</span>
+ <span>{t("batchConceptRetentionNote")}</span>
</li>
</ul>
)}
diff --git a/src/app/(dashboard)/dashboard/batch/components/useBatchActions.ts b/src/app/(dashboard)/dashboard/batch/components/useBatchActions.ts
index 050761568d..907c78aec3 100644
--- a/src/app/(dashboard)/dashboard/batch/components/useBatchActions.ts
+++ b/src/app/(dashboard)/dashboard/batch/components/useBatchActions.ts
@@ -54,14 +54,14 @@ export function useBatchActions(opts: {
if (!res.ok) {
// Log technical context; surface sanitized i18n key to user (D14)
console.error("[useBatchActions] cancel", batchId, "status", res.status);
- setError(opts.t("batchActionCancel"));
+ setError(opts.t("batchActionCancelError"));
return;
}
opts.onRefresh?.();
} catch (e) {
// Never expose e.message/stack in UI — diagnostics only (D14)
console.error("[useBatchActions] cancel threw", e);
- setError(opts.t("batchActionCancel"));
+ setError(opts.t("batchActionCancelError"));
} finally {
setCancelling(false);
}
@@ -101,7 +101,7 @@ export function useBatchActions(opts: {
"error",
errorRes.status,
);
- setError(opts.t("batchActionRetry"));
+ setError(opts.t("batchActionRetryError"));
return null;
}
@@ -114,7 +114,7 @@ export function useBatchActions(opts: {
if (plan.retriableLines === 0) {
// i18n key surfaced to user; technical context stays in console
console.error("[useBatchActions] retry: no retriable lines found for", batch.id);
- setError(opts.t("batchActionRetry"));
+ setError(opts.t("batchActionRetryError"));
return null;
}
@@ -130,7 +130,7 @@ export function useBatchActions(opts: {
const fileRes = await fetch("/api/v1/files", { method: "POST", body: formData });
if (!fileRes.ok) {
console.error("[useBatchActions] retry file upload failed", fileRes.status);
- setError(opts.t("batchActionRetry"));
+ setError(opts.t("batchActionRetryError"));
return null;
}
@@ -149,7 +149,7 @@ export function useBatchActions(opts: {
if (!batchRes.ok) {
console.error("[useBatchActions] retry batch create failed", batchRes.status);
- setError(opts.t("batchActionRetry"));
+ setError(opts.t("batchActionRetryError"));
return null;
}
@@ -159,7 +159,7 @@ export function useBatchActions(opts: {
} catch (e) {
// Never surface e.message/stack to UI (D14)
console.error("[useBatchActions] retry threw", e);
- setError(opts.t("batchActionRetry"));
+ setError(opts.t("batchActionRetryError"));
return null;
} finally {
setRetrying(false);
diff --git a/src/app/(dashboard)/dashboard/batch/page.tsx b/src/app/(dashboard)/dashboard/batch/page.tsx
index 7e9c811bb2..0e94e47cdf 100644
--- a/src/app/(dashboard)/dashboard/batch/page.tsx
+++ b/src/app/(dashboard)/dashboard/batch/page.tsx
@@ -243,10 +243,10 @@ export default function BatchPage() {
{/* Toolbar: auto-refresh indicator + Refresh + New batch */}
<div className="flex items-center justify-between gap-4 flex-wrap">
- <div className="flex items-center gap-2 text-xs text-[var(--color-text-muted)]">
- <span className="material-symbols-outlined text-[14px]">refresh</span>
+ <span className="text-xs text-[var(--color-text-muted)] flex items-center gap-1">
+ <span className={`material-symbols-outlined text-[14px] ${loading ? "animate-spin" : "animate-pulse"}`}>sync</span>
{t("batchListAutoRefresh")}
- </div>
+ </span>
<div className="flex gap-2">
<button
onClick={() => fetchData(false)}
diff --git a/src/i18n/messages/ar.json b/src/i18n/messages/ar.json
index 40b70d7df0..85b60b26b6 100644
--- a/src/i18n/messages/ar.json
+++ b/src/i18n/messages/ar.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "الصفحة الرئيسية",
diff --git a/src/i18n/messages/az.json b/src/i18n/messages/az.json
index c3ffa74c86..4fdc62c884 100644
--- a/src/i18n/messages/az.json
+++ b/src/i18n/messages/az.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Home",
diff --git a/src/i18n/messages/bg.json b/src/i18n/messages/bg.json
index 4db33131d5..a8b52585bd 100644
--- a/src/i18n/messages/bg.json
+++ b/src/i18n/messages/bg.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Начало",
diff --git a/src/i18n/messages/bn.json b/src/i18n/messages/bn.json
index 07913d26ed..91e2d1a6a1 100644
--- a/src/i18n/messages/bn.json
+++ b/src/i18n/messages/bn.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Home",
diff --git a/src/i18n/messages/cs.json b/src/i18n/messages/cs.json
index e08798b544..a8ae7e1b17 100644
--- a/src/i18n/messages/cs.json
+++ b/src/i18n/messages/cs.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Domov",
diff --git a/src/i18n/messages/da.json b/src/i18n/messages/da.json
index 54f04e752c..2cc3150b0c 100644
--- a/src/i18n/messages/da.json
+++ b/src/i18n/messages/da.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Hjem",
diff --git a/src/i18n/messages/de.json b/src/i18n/messages/de.json
index 2bc0f8b7d1..5ca9366192 100644
--- a/src/i18n/messages/de.json
+++ b/src/i18n/messages/de.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Zuhause",
diff --git a/src/i18n/messages/en.json b/src/i18n/messages/en.json
index 78cc9ba327..da23a4608a 100644
--- a/src/i18n/messages/en.json
+++ b/src/i18n/messages/en.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Home",
diff --git a/src/i18n/messages/es.json b/src/i18n/messages/es.json
index a184305f1a..9dd01284a3 100644
--- a/src/i18n/messages/es.json
+++ b/src/i18n/messages/es.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Inicio",
diff --git a/src/i18n/messages/fa.json b/src/i18n/messages/fa.json
index e0af6ad81f..26c53a3d5c 100644
--- a/src/i18n/messages/fa.json
+++ b/src/i18n/messages/fa.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Home",
diff --git a/src/i18n/messages/fi.json b/src/i18n/messages/fi.json
index 0d6e6af3bf..8abf7d2061 100644
--- a/src/i18n/messages/fi.json
+++ b/src/i18n/messages/fi.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Kotiin",
diff --git a/src/i18n/messages/fr.json b/src/i18n/messages/fr.json
index d5c988294c..122259bb50 100644
--- a/src/i18n/messages/fr.json
+++ b/src/i18n/messages/fr.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Accueil",
diff --git a/src/i18n/messages/gu.json b/src/i18n/messages/gu.json
index 320f1a4140..374138219e 100644
--- a/src/i18n/messages/gu.json
+++ b/src/i18n/messages/gu.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Home",
diff --git a/src/i18n/messages/he.json b/src/i18n/messages/he.json
index 3cb734be15..3fe766c2bd 100644
--- a/src/i18n/messages/he.json
+++ b/src/i18n/messages/he.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "בית",
diff --git a/src/i18n/messages/hi.json b/src/i18n/messages/hi.json
index a12cb0bb42..fd3166cfb8 100644
--- a/src/i18n/messages/hi.json
+++ b/src/i18n/messages/hi.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "घर",
diff --git a/src/i18n/messages/hu.json b/src/i18n/messages/hu.json
index 0fa36ea576..387bd5425d 100644
--- a/src/i18n/messages/hu.json
+++ b/src/i18n/messages/hu.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Otthon",
diff --git a/src/i18n/messages/id.json b/src/i18n/messages/id.json
index 1917b75c68..6950fdf444 100644
--- a/src/i18n/messages/id.json
+++ b/src/i18n/messages/id.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Rumah",
diff --git a/src/i18n/messages/in.json b/src/i18n/messages/in.json
index b528d83367..4d8dd41e98 100644
--- a/src/i18n/messages/in.json
+++ b/src/i18n/messages/in.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Home",
diff --git a/src/i18n/messages/it.json b/src/i18n/messages/it.json
index 6147973532..e3353faed5 100644
--- a/src/i18n/messages/it.json
+++ b/src/i18n/messages/it.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Casa",
diff --git a/src/i18n/messages/ja.json b/src/i18n/messages/ja.json
index 80cd2a127f..28b23d9901 100644
--- a/src/i18n/messages/ja.json
+++ b/src/i18n/messages/ja.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "ホーム",
diff --git a/src/i18n/messages/ko.json b/src/i18n/messages/ko.json
index 0cf1667d75..b8c96cf635 100644
--- a/src/i18n/messages/ko.json
+++ b/src/i18n/messages/ko.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "홈",
diff --git a/src/i18n/messages/mr.json b/src/i18n/messages/mr.json
index f2b31c931f..8e9a8c2be7 100644
--- a/src/i18n/messages/mr.json
+++ b/src/i18n/messages/mr.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Home",
diff --git a/src/i18n/messages/ms.json b/src/i18n/messages/ms.json
index 870b827965..04d107612c 100644
--- a/src/i18n/messages/ms.json
+++ b/src/i18n/messages/ms.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Rumah",
diff --git a/src/i18n/messages/nl.json b/src/i18n/messages/nl.json
index 477402fa64..490c16b0e6 100644
--- a/src/i18n/messages/nl.json
+++ b/src/i18n/messages/nl.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Thuis",
diff --git a/src/i18n/messages/no.json b/src/i18n/messages/no.json
index a1444d5911..a585f1fb74 100644
--- a/src/i18n/messages/no.json
+++ b/src/i18n/messages/no.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Hjem",
diff --git a/src/i18n/messages/phi.json b/src/i18n/messages/phi.json
index 9b490bf6dc..996f64c4c9 100644
--- a/src/i18n/messages/phi.json
+++ b/src/i18n/messages/phi.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Bahay",
diff --git a/src/i18n/messages/pl.json b/src/i18n/messages/pl.json
index 11c552b9ff..13ab141dd8 100644
--- a/src/i18n/messages/pl.json
+++ b/src/i18n/messages/pl.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Dom",
diff --git a/src/i18n/messages/pt-BR.json b/src/i18n/messages/pt-BR.json
index 8f7bbeb9e1..1914b8ffca 100644
--- a/src/i18n/messages/pt-BR.json
+++ b/src/i18n/messages/pt-BR.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancelar batch",
"batchDetailActionRetry": "Refazer falhas",
"batchDetailCancelling": "Cancelando…",
- "batchDetailRetrying": "Preparando retry…"
+ "batchDetailRetrying": "Preparando retry…",
+ "batchDetailCancelConfirm": "Cancelar este batch? Requisições em andamento serão interrompidas.",
+ "batchActionCancelError": "Falha ao cancelar o batch. Tente novamente.",
+ "batchActionRetryError": "Falha ao refazer requisições com falha. Tente novamente.",
+ "batchConceptRetentionNote": "Arquivos de resultado e erro ficam retidos por 30 dias (Anthropic: 29 dias)"
},
"sidebar": {
"home": "Início",
diff --git a/src/i18n/messages/pt.json b/src/i18n/messages/pt.json
index ce2924e369..df35ef99d1 100644
--- a/src/i18n/messages/pt.json
+++ b/src/i18n/messages/pt.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Página inicial",
diff --git a/src/i18n/messages/ro.json b/src/i18n/messages/ro.json
index 85547e75e9..be6c95cee5 100644
--- a/src/i18n/messages/ro.json
+++ b/src/i18n/messages/ro.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Acasă",
diff --git a/src/i18n/messages/ru.json b/src/i18n/messages/ru.json
index 3e9fb35201..fa8360a374 100644
--- a/src/i18n/messages/ru.json
+++ b/src/i18n/messages/ru.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Главная",
diff --git a/src/i18n/messages/sk.json b/src/i18n/messages/sk.json
index d0cba03030..bc6547aa2a 100644
--- a/src/i18n/messages/sk.json
+++ b/src/i18n/messages/sk.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Domov",
diff --git a/src/i18n/messages/sv.json b/src/i18n/messages/sv.json
index cae9322b3a..5dfa3d8a65 100644
--- a/src/i18n/messages/sv.json
+++ b/src/i18n/messages/sv.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Hem",
diff --git a/src/i18n/messages/sw.json b/src/i18n/messages/sw.json
index 1a3e715a4b..a784430ce5 100644
--- a/src/i18n/messages/sw.json
+++ b/src/i18n/messages/sw.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Home",
diff --git a/src/i18n/messages/ta.json b/src/i18n/messages/ta.json
index 3d91545472..d1efade01b 100644
--- a/src/i18n/messages/ta.json
+++ b/src/i18n/messages/ta.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Home",
diff --git a/src/i18n/messages/te.json b/src/i18n/messages/te.json
index ccc0a30a49..c87be38e95 100644
--- a/src/i18n/messages/te.json
+++ b/src/i18n/messages/te.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Home",
diff --git a/src/i18n/messages/th.json b/src/i18n/messages/th.json
index 6e8924f2e3..0a890eb2d8 100644
--- a/src/i18n/messages/th.json
+++ b/src/i18n/messages/th.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "บ้าน",
diff --git a/src/i18n/messages/tr.json b/src/i18n/messages/tr.json
index 0da8a08cbc..7e35705262 100644
--- a/src/i18n/messages/tr.json
+++ b/src/i18n/messages/tr.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Ana Sayfa",
diff --git a/src/i18n/messages/uk-UA.json b/src/i18n/messages/uk-UA.json
index 4897d3ba6e..ab9ad490fd 100644
--- a/src/i18n/messages/uk-UA.json
+++ b/src/i18n/messages/uk-UA.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "додому",
diff --git a/src/i18n/messages/ur.json b/src/i18n/messages/ur.json
index 179ccd5b2b..817015db44 100644
--- a/src/i18n/messages/ur.json
+++ b/src/i18n/messages/ur.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Home",
diff --git a/src/i18n/messages/vi.json b/src/i18n/messages/vi.json
index 000ef6102b..a88beb6673 100644
--- a/src/i18n/messages/vi.json
+++ b/src/i18n/messages/vi.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "Trang chủ",
diff --git a/src/i18n/messages/zh-CN.json b/src/i18n/messages/zh-CN.json
index ce5044309b..be823b4365 100644
--- a/src/i18n/messages/zh-CN.json
+++ b/src/i18n/messages/zh-CN.json
@@ -778,7 +778,11 @@
"batchDetailActionCancel": "Cancel batch",
"batchDetailActionRetry": "Retry failed requests",
"batchDetailCancelling": "Cancelling…",
- "batchDetailRetrying": "Preparing retry…"
+ "batchDetailRetrying": "Preparing retry…",
+ "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)"
},
"sidebar": {
"home": "首页",
diff --git a/tests/unit/dashboard/batch/components/useBatchActions.test.tsx b/tests/unit/dashboard/batch/components/useBatchActions.test.tsx
index f86283c4d5..58c04c59cb 100644
--- a/tests/unit/dashboard/batch/components/useBatchActions.test.tsx
+++ b/tests/unit/dashboard/batch/components/useBatchActions.test.tsx
@@ -127,7 +127,7 @@ describe("useBatchActions — cancel", () => {
await hook.get()!.cancel("batch-abc");
});
- expect(hook.get()!.error).toBe("batchActionCancel");
+ expect(hook.get()!.error).toBe("batchActionCancelError");
expect(hook.get()!.cancelling).toBe(false);
// Sanitization: error must not leak paths or stack traces
const errStr = hook.get()!.error ?? "";
@@ -147,7 +147,7 @@ describe("useBatchActions — cancel", () => {
await hook.get()!.cancel("batch-xyz");
});
- expect(hook.get()!.error).toBe("batchActionCancel");
+ expect(hook.get()!.error).toBe("batchActionCancelError");
expect(hook.get()!.cancelling).toBe(false);
// The raw error message must NOT appear in error state
const errStr = hook.get()!.error ?? "";
@@ -209,7 +209,7 @@ describe("useBatchActions — retry", () => {
});
expect(result).toBeNull();
- expect(hook.get()!.error).toBe("batchActionRetry");
+ expect(hook.get()!.error).toBe("batchActionRetryError");
expect(hook.get()!.retrying).toBe(false);
});
@@ -287,7 +287,7 @@ describe("useBatchActions — retry", () => {
});
expect(result).toBeNull();
- expect(hook.get()!.error).toBe("batchActionRetry");
+ expect(hook.get()!.error).toBe("batchActionRetryError");
const errStr = hook.get()!.error ?? "";
expect(errStr).not.toMatch(/\/home\//);
expect(errStr).not.toMatch(/at \//);
@@ -313,7 +313,7 @@ describe("useBatchActions — retry", () => {
});
expect(result).toBeNull();
- expect(hook.get()!.error).toBe("batchActionRetry");
+ expect(hook.get()!.error).toBe("batchActionRetryError");
const errStr = hook.get()!.error ?? "";
expect(errStr).not.toContain("/home/");
expect(errStr).not.toContain("route.ts");
@@ -385,7 +385,7 @@ describe("useBatchActions — sanitization invariant", () => {
const errStr = hook.get()!.error ?? "";
// Must be an i18n key, never a raw error message
- expect(errStr).toBe("batchActionCancel");
+ expect(errStr).toBe("batchActionCancelError");
expect(errStr).not.toContain("/home/");
expect(errStr).not.toContain("/dev/proxys");
expect(errStr).not.toContain("route.ts");
diff --git a/tests/unit/dashboard/batch/sanitization.test.tsx b/tests/unit/dashboard/batch/sanitization.test.tsx
index 7b759c5e4c..9f4e0d6160 100644
--- a/tests/unit/dashboard/batch/sanitization.test.tsx
+++ b/tests/unit/dashboard/batch/sanitization.test.tsx
@@ -369,7 +369,7 @@ describe("useBatchActions — error sanitization", () => {
const err = hook.get().error ?? "";
assertSanitized(err, "useBatchActions cancel error");
- expect(err).toBe("batchActionCancel");
+ expect(err).toBe("batchActionCancelError");
});
it("S7: retry with error containing stack trace → error is i18n key only", async () => {
@@ -401,7 +401,7 @@ describe("useBatchActions — error sanitization", () => {
const err = hook.get().error ?? "";
assertSanitized(err, "useBatchActions retry error");
- expect(err).toBe("batchActionRetry");
+ expect(err).toBe("batchActionRetryError");
});
it("S8: cancel with HTTP 500 → error is i18n key, not status code or body", async () => {
@@ -416,7 +416,7 @@ describe("useBatchActions — error sanitization", () => {
const err = hook.get().error ?? "";
assertSanitized(err, "useBatchActions cancel 500 error");
- expect(err).toBe("batchActionCancel");
+ expect(err).toBe("batchActionCancelError");
// Must not expose HTTP status or internal message
expect(err).not.toContain("500");
expect(err).not.toContain("DB error");