diff --git a/apps/backoffice/src/app/features/license-review/pages/LicenseQueuePage.tsx b/apps/backoffice/src/app/features/license-review/pages/LicenseQueuePage.tsx index 4a183e6d3..9e1266813 100644 --- a/apps/backoffice/src/app/features/license-review/pages/LicenseQueuePage.tsx +++ b/apps/backoffice/src/app/features/license-review/pages/LicenseQueuePage.tsx @@ -89,6 +89,18 @@ const ALL_STATUSES: LicenseStatus[] = [ "REJECTED", ]; +/** + * Seafarer registrations are person-centric — there is no `companyName`, so + * the queue's "company" column falls back to the applicant name captured in + * the registration form. + */ +function applicantOrCompanyName(app: LicenseApplication): string | undefined { + if (app.licenseType?.key !== "SEAFARER_REGISTRATION") return app.companyName ?? undefined; + const applicantName = (app.formData?.account as Record | undefined) + ?.applicantName; + return typeof applicantName === "string" && applicantName ? applicantName : undefined; +} + /** * The officer work pool. * @@ -383,10 +395,15 @@ export function LicenseQueuePage() { ), }, { - header: sortableHeader(t("queue.company", "Company"), "companyName"), + header: sortableHeader( + typeCode === "SEAFARER_REGISTRATION" + ? t("queue.applicant", "Applicant") + : t("queue.company", "Company"), + "companyName", + ), label: t("queue.company", "Company"), cell: ({ row }) => ( - {row.original.companyName ?? "—"} + {applicantOrCompanyName(row.original) ?? "—"} ), }, { @@ -477,6 +494,7 @@ export function LicenseQueuePage() { allSelected, items, claiming, + typeCode, ], ); diff --git a/apps/backoffice/src/app/i18n/locales/am.ts b/apps/backoffice/src/app/i18n/locales/am.ts index d25a4f80d..a32d69560 100644 --- a/apps/backoffice/src/app/i18n/locales/am.ts +++ b/apps/backoffice/src/app/i18n/locales/am.ts @@ -790,6 +790,7 @@ export const am: Translations = { compact: 'ጥብቅ', number: 'ማመልከቻ ቁ.', company: 'ኩባንያ', + applicant: 'አመልካች', tin: 'ቲን', submitted: 'የቀረበበት', sla: 'ዕድሜ / የጊዜ ገደብ', diff --git a/apps/backoffice/src/app/i18n/locales/en.ts b/apps/backoffice/src/app/i18n/locales/en.ts index 9f80021e9..61abf15ee 100644 --- a/apps/backoffice/src/app/i18n/locales/en.ts +++ b/apps/backoffice/src/app/i18n/locales/en.ts @@ -791,6 +791,7 @@ export const en = { compact: 'Compact', number: 'App #', company: 'Company', + applicant: 'Applicant', tin: 'TIN', submitted: 'Submitted', sla: 'Age / SLA',