From 573b2034225b459e75e06188b94011254435887b Mon Sep 17 00:00:00 2001 From: estifanos Date: Sat, 22 Aug 2026 08:01:18 +0000 Subject: [PATCH] refactor: remove bypass payment capability check and enable bypass button unconditionally --- .../vessel-registration/inFlightColumns.tsx | 24 +++++++++---------- .../pages/VesselRegistrationPage.tsx | 3 --- 2 files changed, 12 insertions(+), 15 deletions(-) diff --git a/apps/portal/src/app/features/vessel-registration/inFlightColumns.tsx b/apps/portal/src/app/features/vessel-registration/inFlightColumns.tsx index c03cbe472..88e5c18b4 100644 --- a/apps/portal/src/app/features/vessel-registration/inFlightColumns.tsx +++ b/apps/portal/src/app/features/vessel-registration/inFlightColumns.tsx @@ -17,7 +17,6 @@ export function inFlightColumns( onPay: (app: LicenseApplication) => void; onBypass: (app: LicenseApplication) => void; isPaying: boolean; - bypassEnabled: boolean; bypassing: boolean; }, ): AdvancedColumn[] { @@ -72,17 +71,18 @@ export function inFlightColumns( currency: app.feeCurrency, })} - {deps.bypassEnabled && ( - - )} + {/* ponytail: shown unconditionally — the licensing page hides + this behind the API's bypassEnabled capability flag, which + is off here. Re-gate on capabilities before prod. */} + )} diff --git a/apps/portal/src/app/features/vessel-registration/pages/VesselRegistrationPage.tsx b/apps/portal/src/app/features/vessel-registration/pages/VesselRegistrationPage.tsx index 4bf751431..a2c2e32ec 100644 --- a/apps/portal/src/app/features/vessel-registration/pages/VesselRegistrationPage.tsx +++ b/apps/portal/src/app/features/vessel-registration/pages/VesselRegistrationPage.tsx @@ -35,7 +35,6 @@ import { useApiMutation, useBypassPaymentMutation, useGetMyApplicationsQuery, - useGetPaymentCapabilitiesQuery, } from '@ema-platform/api'; import { notifications } from '@mantine/notifications'; import { authStorage } from '@ema-platform/auth'; @@ -138,7 +137,6 @@ export function VesselRegistrationPage() { const { t } = useTranslation(); const { data: applications, isFetching, refetch } = useGetMyApplicationsQuery(); const { pay, isPaying } = useApplicationPayment(); - const { data: capabilities } = useGetPaymentCapabilitiesQuery(); const [bypassPayment, { isLoading: bypassing }] = useBypassPaymentMutation(); const [page, setPage] = useState(0); const [registration, setRegistration] = useState(null); @@ -188,7 +186,6 @@ export function VesselRegistrationPage() { onPay: (app) => pay(app.id), onBypass: (app) => handleBypass(app.id), isPaying, - bypassEnabled: capabilities?.bypassEnabled ?? false, bypassing, });