diff --git a/apps/backoffice/src/app/features/license-review/config/license-types.ts b/apps/backoffice/src/app/features/license-review/config/license-types.ts index d72191936..fd8e62505 100644 --- a/apps/backoffice/src/app/features/license-review/config/license-types.ts +++ b/apps/backoffice/src/app/features/license-review/config/license-types.ts @@ -1,5 +1,6 @@ import { IconAnchor, + IconArrowsExchange, IconFileDescription, IconId, IconShip, @@ -89,6 +90,13 @@ const PRESENTATION: Record = { icon: IconAnchor, detailSections: DEFAULT_SECTIONS, }, + VESSEL_OWNERSHIP_TRANSFER: { + key: 'VESSEL_OWNERSHIP_TRANSFER', + icon: IconArrowsExchange, + // Transfers an existing registration between owners: no company entity, + // no capital threshold, no staff roles. + detailSections: ['overview', 'documents'], + }, }; /** Falls back to a generic presentation so an unseeded type still renders. */ diff --git a/apps/backoffice/src/app/features/vessel-registration/pages/VesselOwnershipTransferQueuePage.tsx b/apps/backoffice/src/app/features/vessel-registration/pages/VesselOwnershipTransferQueuePage.tsx deleted file mode 100644 index 3b379157c..000000000 --- a/apps/backoffice/src/app/features/vessel-registration/pages/VesselOwnershipTransferQueuePage.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Container } from '@mantine/core'; -import { FeatureUnavailable } from '@ema-platform/ui'; - -/** - * Placeholder until this feature has a backend. - * - * This page previously rendered hardcoded sample records, which were - * indistinguishable from real ones. - */ -export function VesselOwnershipTransferQueuePage() { - return ( - - - - ); -} - -export default VesselOwnershipTransferQueuePage; diff --git a/apps/backoffice/src/app/features/vessel-registration/pages/VesselOwnershipTransferReviewPage.tsx b/apps/backoffice/src/app/features/vessel-registration/pages/VesselOwnershipTransferReviewPage.tsx deleted file mode 100644 index bdd967e68..000000000 --- a/apps/backoffice/src/app/features/vessel-registration/pages/VesselOwnershipTransferReviewPage.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Container } from '@mantine/core'; -import { FeatureUnavailable } from '@ema-platform/ui'; - -/** - * Placeholder until this feature has a backend. - * - * This page previously rendered hardcoded sample records, which were - * indistinguishable from real ones. - */ -export function VesselOwnershipTransferReviewPage() { - return ( - - - - ); -} - -export default VesselOwnershipTransferReviewPage; diff --git a/apps/backoffice/src/app/i18n/locales/am.ts b/apps/backoffice/src/app/i18n/locales/am.ts index 61f016e84..b6d3536ed 100644 --- a/apps/backoffice/src/app/i18n/locales/am.ts +++ b/apps/backoffice/src/app/i18n/locales/am.ts @@ -37,6 +37,7 @@ export const am: Translations = { typeJointInvestment: "የጋራ ኢንቨስትመንት", typeMto: "የብዝሃ-ሁነታ ትራንስፖርት አንቀሳቃሽ", typeSEAFARER_REGISTRATION: "የመርከበኞች ምዝገባ", + typeVESSEL_OWNERSHIP_TRANSFER: "የመርከብ ባለቤትነት ዝውውር", primary: "ዋና", destinations: "ወደ", noResults: "ምንም አልተገኘም", diff --git a/apps/backoffice/src/app/i18n/locales/en.ts b/apps/backoffice/src/app/i18n/locales/en.ts index bb17e49c4..aeafa7c65 100644 --- a/apps/backoffice/src/app/i18n/locales/en.ts +++ b/apps/backoffice/src/app/i18n/locales/en.ts @@ -35,6 +35,7 @@ export const en = { typeJointInvestment: 'Joint Investment', typeMto: 'Multimodal Transport Operator', typeSEAFARER_REGISTRATION: 'Seafarer Registration', + typeVESSEL_OWNERSHIP_TRANSFER: 'Vessel Ownership Transfer', primary: 'Primary', destinations: 'Go to', noResults: 'Nothing found', diff --git a/apps/backoffice/src/app/layouts/nav-config.ts b/apps/backoffice/src/app/layouts/nav-config.ts index 2dc323c96..07e7c259a 100644 --- a/apps/backoffice/src/app/layouts/nav-config.ts +++ b/apps/backoffice/src/app/layouts/nav-config.ts @@ -1,5 +1,6 @@ import { IconAnchor, + IconArrowsExchange, IconBook2, IconChartBar, IconClipboardList, @@ -123,7 +124,7 @@ export const NAV_SECTIONS: NavSection[] = [ items: [ { to: '/licence-review/type/VESSEL_REGISTRATION', label: 'nav.vesselRegistrationApplicationQueue', icon: IconAnchor }, { to: '/vessel-registration-queue', label: 'nav.vesselRegistrationQueue', icon: IconAnchor }, - { to: '/vessel-ownership-transfer', label: 'nav.ownershipTransferQueue', icon: IconFileDescription, soon: true }, + { to: '/licence-review/type/VESSEL_OWNERSHIP_TRANSFER', label: 'nav.ownershipTransferQueue', icon: IconArrowsExchange }, { to: '/vessel-registration-queue/new', label: 'nav.vesselFormBuilder', icon: IconFilePlus, soon: true }, { to: '/vessel-registration-report', label: 'nav.vesselRegistrationReport', icon: IconChartBar, soon: true }, { to: '/vessel-registration-head-dashboard', label: 'nav.vesselRegistrationHeadDashboard', icon: IconGauge, soon: true }, diff --git a/apps/backoffice/src/app/router/index.tsx b/apps/backoffice/src/app/router/index.tsx index 116b6c795..9837201f5 100644 --- a/apps/backoffice/src/app/router/index.tsx +++ b/apps/backoffice/src/app/router/index.tsx @@ -34,8 +34,6 @@ import { VesselRegistrationQueuePage } from '../features/vessel-registration/pag import { VesselRegistrationReviewPage } from '../features/vessel-registration/pages/VesselRegistrationReviewPage'; import { VesselRegistrationReportPage } from '../features/vessel-registration/pages/VesselRegistrationReportPage'; import { VesselRegistrationFormBuilderPage } from '../features/vessel-registration/pages/VesselRegistrationFormBuilderPage'; -import { VesselOwnershipTransferQueuePage } from '../features/vessel-registration/pages/VesselOwnershipTransferQueuePage'; -import { VesselOwnershipTransferReviewPage } from '../features/vessel-registration/pages/VesselOwnershipTransferReviewPage'; import { VesselRegistrationHeadDashboardPage } from '../features/vessel-registration-head/pages/VesselRegistrationHeadDashboardPage'; import { LicenseQueuePage } from '../features/license-review/pages/LicenseQueuePage'; import { LicenseRegisterPage } from '../features/license-register/pages/LicenseRegisterPage'; @@ -90,8 +88,8 @@ const router = createBrowserRouter([ { path: 'vessel-registration-queue/new', element: }, // { path: 'vessel-registration-queue/:id', element: }, //{ path: 'vessel-registration-report', element: }, - { path: 'vessel-ownership-transfer', element: }, - { path: 'vessel-ownership-transfer/:id', element: }, + { path: 'vessel-ownership-transfer', element: }, + { path: 'vessel-ownership-transfer/:id', element: }, // Config-driven review workspace, shared by every licence type. { path: 'certificate-designer', element: }, { path: 'licence-review', element: },