From b9c4d6dfd17d80aedc1d62c721a89309b93dfc97 Mon Sep 17 00:00:00 2001 From: A-Ashiq Date: Thu, 3 Oct 2024 10:43:20 +0100 Subject: [PATCH 01/44] Bring `AWSRUM` client back --- src/app/layout.tsx | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/app/layout.tsx b/src/app/layout.tsx index 3b765ff2..34ed3914 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -17,6 +17,7 @@ import { GoogleTagManager } from './components/ui/ukhsa/Scripts/GoogleTagManager import { GovUK } from './components/ui/ukhsa/Scripts/GovUK/GovUK' import { UKHSA_GDPR_COOKIE_NAME } from './constants/cookies.constants' import { Providers } from './providers' +import {AWSRum} from "@/app/components/ui/ukhsa/Scripts/AWSRum/AWSRum"; // Force all pages to be dynamic (ssr) export const dynamic = 'force-dynamic' @@ -31,6 +32,10 @@ export default async function RootLayout({ children }: { children: React.ReactNo + {t('skipLink')} From 624ade324fffad22ffed4f03137283133e132fb7 Mon Sep 17 00:00:00 2001 From: Rhys Date: Wed, 16 Oct 2024 09:28:29 +0100 Subject: [PATCH 02/44] feedback form feature flag --- .../(pages)/feature-flags/page.tsx | 43 ++++++++++++++++++- src/app/(pages)/switchboard/shared/schema.ts | 1 + src/app/(pages)/switchboard/shared/state.ts | 1 + src/app/constants/flags.constants.ts | 1 + 4 files changed, 45 insertions(+), 1 deletion(-) diff --git a/src/app/(pages)/switchboard/(pages)/feature-flags/page.tsx b/src/app/(pages)/switchboard/(pages)/feature-flags/page.tsx index 837fbf55..24ea5c69 100644 --- a/src/app/(pages)/switchboard/(pages)/feature-flags/page.tsx +++ b/src/app/(pages)/switchboard/(pages)/feature-flags/page.tsx @@ -10,7 +10,11 @@ export default function SwitchBoard() { const cookieStore = cookies() const { - flags: { 'landing-page-hero': landingPageHero, 'interactive-charts': interactiveCharts }, + flags: { + 'landing-page-hero': landingPageHero, + 'interactive-charts': interactiveCharts, + 'feedback-form': feedbackForm, + }, } = getSwitchBoardState(cookieStore.get(UKHSA_SWITCHBOARD_COOKIE_NAME)?.value) return ( @@ -24,6 +28,7 @@ export default function SwitchBoard() { { 'landing-page-hero': form.get('flags.landingPageHero') as string, 'interactive-charts': form.get('flags.interactiveCharts') as string, + 'feedback-form': form.get('flags.feedbackForm') as string, } ) }} @@ -104,6 +109,42 @@ export default function SwitchBoard() { + +
+ +
+ + +
+ +
+ + +
+