feat: update vessel registration features and remove OwnershipTransferPage

This commit is contained in:
estifanos
2026-08-11 07:30:09 +00:00
parent 19afcc3403
commit 948b68c7c0
5 changed files with 5 additions and 26 deletions

View File

@@ -49,6 +49,7 @@ const ALWAYS_ALLOWED = [
const MODE_FREE_TYPE_KEYS = [
'SEAFARER_REGISTRATION',
'VESSEL_REGISTRATION',
'VESSEL_OWNERSHIP_TRANSFER',
'CERTIFICATE_OF_COMPETENCY',
'CERTIFICATE_OF_PROFICIENCY',
'PRE_WAIVER',

View File

@@ -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 OwnershipTransferPage() {
return (
<Container size="lg" py="xl">
<FeatureUnavailable
title="Ownership transfer"
description="Vessel ownership transfer is not connected to the backend yet."
/>
</Container>
);
}
export default OwnershipTransferPage;

View File

@@ -414,8 +414,8 @@ export function VesselRegistrationPage() {
<Group gap="xs">
<IconAnchor size={18} color="var(--mantine-color-blue-5)" />
<Text size="sm" c="dimmed">
Ownership transfer, amendment and duplicate-certificate services
are coming in a later release.
Amendment and duplicate-certificate services are coming in a
later release.
</Text>
</Group>
</Paper>

View File

@@ -75,7 +75,7 @@ const NAV_SECTIONS: { label?: string; items: PortalNavItem[] }[] = [
label: "nav.groupVessels",
items: [
{ to: '/vessel-registration', label: 'Vessel Registration', i18nKey: 'nav.vesselRegistration', icon: IconShip },
{ to: '/vessel-registration/transfer', label: 'Ownership Transfer', i18nKey: 'nav.ownershipTransfer', icon: IconArrowsExchange, soon: true },
{ to: '/vessel-registration/transfer', label: 'Ownership Transfer', i18nKey: 'nav.ownershipTransfer', icon: IconArrowsExchange },
],
},
{

View File

@@ -38,7 +38,6 @@ import { CoCApplicationPage } from "./features/certificates/pages/CoCApplication
// Phase 3 — Endorsement
import { EndorsementPage } from "./features/endorsement/pages/EndorsementPage";
import { VesselRegistrationPage } from "./features/vessel-registration/pages/VesselRegistrationPage";
import { OwnershipTransferPage } from "./features/vessel-registration/pages/OwnershipTransferPage";
import { MyApplicationsPage } from "./features/licensing/pages/MyApplicationsPage";
import { PaymentCheckPage } from "./features/payments/pages/PaymentCheckPage";
import { PaymentSuccessPage } from "./features/payments/pages/PaymentSuccessPage";
@@ -179,7 +178,7 @@ export const router = createBrowserRouter([
},
{
path: "/vessel-registration/transfer",
element: <OwnershipTransferPage />,
element: <Navigate to="/licensing/VESSEL_OWNERSHIP_TRANSFER/apply" replace />,
},
// Legacy per-licence-type URLs. Each once had its own hand-written page
// that posted to a `/logistics-licenses/*` endpoint the API never had,