diff --git a/apps/backoffice/src/app/features/license-review/components/ActivityRail.tsx b/apps/backoffice/src/app/features/license-review/components/ActivityRail.tsx index cca0d8535..4d96ca2d9 100644 --- a/apps/backoffice/src/app/features/license-review/components/ActivityRail.tsx +++ b/apps/backoffice/src/app/features/license-review/components/ActivityRail.tsx @@ -71,9 +71,11 @@ export function ActivityRail({ detail }: { detail: ApplicationDetail }) { ? t(`review.events.${history.event}`, { defaultValue: history.event, }) - : `${history.fromStatus ? STATUS_LABELS[history.fromStatus] : '—'} → ${ - STATUS_LABELS[history.toStatus] - }`, + : `${ + history.fromStatus + ? t(`queue.statusValues.${history.fromStatus}`, STATUS_LABELS[history.fromStatus]) + : '—' + } → ${t(`queue.statusValues.${history.toStatus}`, STATUS_LABELS[history.toStatus])}`, detail: history.remark ?? undefined, color: STATUS_COLORS[history.toStatus], }); diff --git a/apps/backoffice/src/app/features/license-review/components/DecisionBar.tsx b/apps/backoffice/src/app/features/license-review/components/DecisionBar.tsx index 3c4deefc2..0403cfaad 100644 --- a/apps/backoffice/src/app/features/license-review/components/DecisionBar.tsx +++ b/apps/backoffice/src/app/features/license-review/components/DecisionBar.tsx @@ -80,7 +80,7 @@ export function DecisionBar({ {/* Left: where the application stands, and who has it. */} - {STATUS_LABELS[status]} + {t(`queue.statusValues.${status}`, STATUS_LABELS[status])} {assigneeName && ( diff --git a/apps/backoffice/src/app/features/license-review/components/DocumentsTab.tsx b/apps/backoffice/src/app/features/license-review/components/DocumentsTab.tsx index ea6880719..f2f757abd 100644 --- a/apps/backoffice/src/app/features/license-review/components/DocumentsTab.tsx +++ b/apps/backoffice/src/app/features/license-review/components/DocumentsTab.tsx @@ -116,6 +116,7 @@ export function DocumentsTab({ } const uploadedKeys = new Set(attachments.map((a) => a.documentKey)); + const requirementByKey = new Map(requirements.map((r) => [r.key, r])); const mandatory = requirements.filter((r) => r.mode !== 'OPTIONAL'); const missing = mandatory.filter((r) => !uploadedKeys.has(r.key)); const completeness = mandatory.length @@ -174,7 +175,7 @@ export function DocumentsTab({ with its own wrap, the name truncates cleanly instead. */} - {attachment.documentKey} + {localized(requirementByKey.get(attachment.documentKey)?.name) || attachment.documentKey} {verdict && ( setPreview(null)} position="right" size="xl" - title={preview?.documentKey} + title={ + preview + ? localized(requirementByKey.get(preview.documentKey)?.name) || preview.documentKey + : '' + } // Focus is trapped and returned so keyboard users are not dropped at // the top of the page when the drawer closes. trapFocus @@ -406,13 +411,13 @@ export function DocumentsTab({ isPdf ? (