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:
@@ -80,13 +80,14 @@ function statusBadge(
|
|||||||
type?: "epay" | "intern",
|
type?: "epay" | "intern",
|
||||||
): StatusStyle {
|
): StatusStyle {
|
||||||
// Intern (copycf) extracts have NO validity term — never label them "Valid"
|
// Intern (copycf) extracts have NO validity term — never label them "Valid"
|
||||||
// or "Expirat" (which imply an ePay-style 30-day validity). Show a neutral
|
// or "Expirat" (which imply an ePay-style 30-day validity). The source
|
||||||
// "Intern" pill instead.
|
// badge next to this already says "intern", so the STATUS just states the
|
||||||
|
// document is available (no term).
|
||||||
if (type === "intern" && status === "completed") {
|
if (type === "intern" && status === "completed") {
|
||||||
return {
|
return {
|
||||||
label: "Intern",
|
label: "Disponibil",
|
||||||
className:
|
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",
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user