feat: show re-run button on completed locales, not just errors

Previously the re-run button only appeared on ERROR status locales.
Now it also shows on COMPLETED locales so users can reprocess them
after pipeline fixes without creating a new job.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
DJP 2026-04-10 18:11:18 -04:00
parent 437b9bd793
commit b2a70a3867

View file

@ -127,7 +127,7 @@ export function LocaleInstanceCard({
</Button>
</>
)}
{li.status === "ERROR" && (
{(li.status === "ERROR" || li.status === "COMPLETED") && (
<Button
variant="ghost"
size="icon"
@ -135,7 +135,7 @@ export function LocaleInstanceCard({
title="Re-run"
onClick={handleRerun}
>
<RefreshCw className="h-4 w-4 text-amazon-error" />
<RefreshCw className={`h-4 w-4 ${li.status === "ERROR" ? "text-amazon-error" : "text-gray-400 hover:text-amazon-teal"}`} />
</Button>
)}
</div>