fix(epay-ui): intern status pill 'Disponibil' (not 'Intern') — avoid duplicating the source badge

The source badge next to the status already says 'intern'; a second 'Intern'
status pill read as a duplicate. The status now states the document is
available ('Disponibil', neutral) — no validity term, no duplication.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Claude VM
2026-06-05 20:49:18 +03:00
parent ffad5bb96d
commit 9b66dd6452
@@ -80,13 +80,14 @@ function statusBadge(
type?: "epay" | "intern",
): StatusStyle {
// Intern (copycf) extracts have NO validity term — never label them "Valid"
// or "Expirat" (which imply an ePay-style 30-day validity). Show a neutral
// "Intern" pill instead.
// or "Expirat" (which imply an ePay-style 30-day validity). The source
// badge next to this already says "intern", so the STATUS just states the
// document is available (no term).
if (type === "intern" && status === "completed") {
return {
label: "Intern",
label: "Disponibil",
className:
"bg-sky-100 text-sky-700 border-sky-200 dark:bg-sky-950/40 dark:text-sky-400 dark:border-sky-800",
"bg-muted text-foreground/70 border-muted-foreground/20",
};
}