From 4e61480272a270210be39413151a6f4ec71d0e99 Mon Sep 17 00:00:00 2001 From: nala Date: Tue, 10 Nov 2026 10:41:47 +0200 Subject: [PATCH] fix(portal): identify operator and institutional support contact --- config/portal.php | 2 +- resources/js/components/tempo-footer.tsx | 6 ++- resources/js/pages/portal/services.tsx | 21 ++++++-- .../portal-institutional-contact.test.mjs | 53 +++++++++++++++++++ 4 files changed, 76 insertions(+), 6 deletions(-) create mode 100644 tests/frontend/portal-institutional-contact.test.mjs diff --git a/config/portal.php b/config/portal.php index f707bec7..ddeba901 100644 --- a/config/portal.php +++ b/config/portal.php @@ -21,7 +21,7 @@ return [ // Experimental proposal only; functional approval and operational SLA remain pending. 'opportunity_modular_profiles_qa_enabled' => env('PORTAL_OPPORTUNITY_MODULAR_PROFILES_QA_ENABLED', false), 'opportunity_other_qa_subtypes' => [], - 'operator_name' => env('PORTAL_OPERATOR_NAME'), + 'operator_name' => env('PORTAL_OPERATOR_NAME') ?: 'Tempo, Lda.', // Tempo, 19/10/2026: institutional contact; commercial department remains separate. 'institutional_contact_email' => env('PORTAL_INSTITUTIONAL_CONTACT_EMAIL', 'comercial@tempo.co.mz'), 'support' => [ diff --git a/resources/js/components/tempo-footer.tsx b/resources/js/components/tempo-footer.tsx index 5fbfd045..5245c022 100644 --- a/resources/js/components/tempo-footer.tsx +++ b/resources/js/components/tempo-footer.tsx @@ -10,8 +10,9 @@ const navigation = [ export function TempoFooter() { const { t, language } = useTempoUi(); - const { portalInstitutionalContactEmail } = usePage<{ + const { portalInstitutionalContactEmail, portalOperator } = usePage<{ portalInstitutionalContactEmail?: string | null; + portalOperator?: string | null; }>().props; return (