From 9e7e0f3dbbdd8ae59b0bad2287cdfb9cfef9eef2 Mon Sep 17 00:00:00 2001 From: jhslater Date: Thu, 26 Sep 2024 07:32:42 -0400 Subject: [PATCH 01/26] ARB rules will overcome the stream3 meiio path variant, instead of relying on AEM-sensitive logic. --- graphql/mappers/my-dashboard.ts | 16 ++-------------- 1 file changed, 2 insertions(+), 14 deletions(-) diff --git a/graphql/mappers/my-dashboard.ts b/graphql/mappers/my-dashboard.ts index 592ac971f..96768562b 100644 --- a/graphql/mappers/my-dashboard.ts +++ b/graphql/mappers/my-dashboard.ts @@ -137,13 +137,7 @@ export async function getMyDashboardContent() { id: item.scId, title: item.scLinkTextEn, areaLabel: item.scLinkTextAssistiveEn, - link: buildLink( - item.schURLType, - process.env.ENVIRONMENT === 'development' && - item.scDestinationURL3En !== null - ? item.scDestinationURL3En - : item.scDestinationURLEn, - ), + link: buildLink(item.schURLType, item.scDestinationURLEn), icon: item.scIconCSS, betaPopUp: item.schBetaPopUp, } @@ -196,13 +190,7 @@ export async function getMyDashboardContent() { id: item.scId, title: item.scLinkTextFr, areaLabel: item.scLinkTextAssistiveFr, - link: buildLink( - item.schURLType, - process.env.ENVIRONMENT === 'development' && - item.scDestinationURL3Fr !== null - ? item.scDestinationURL3Fr - : item.scDestinationURLFr, - ), + link: buildLink(item.schURLType, item.scDestinationURLFr), icon: item.scIconCSS, betaPopUp: item.schBetaPopUp, } From 5367aa564a0d800c171fbecfea0ed19d3ceadd63 Mon Sep 17 00:00:00 2001 From: jhslater Date: Thu, 26 Sep 2024 09:00:15 -0400 Subject: [PATCH 02/26] cleanup schLists Array --- graphql/mappers/my-dashboard.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/graphql/mappers/my-dashboard.ts b/graphql/mappers/my-dashboard.ts index 96768562b..0d277598a 100644 --- a/graphql/mappers/my-dashboard.ts +++ b/graphql/mappers/my-dashboard.ts @@ -70,8 +70,6 @@ interface GetSchMyDashboardV2 { schURLType?: string scDestinationURLEn: string scDestinationURLFr: string - scDestinationURL3En?: string | null - scDestinationURL3Fr?: string | null scIconCSS: string schBetaPopUp: boolean }> From d61ef97376d4969455f338ffb3d429b261210cc3 Mon Sep 17 00:00:00 2001 From: Charles-Pham Date: Tue, 8 Oct 2024 15:07:50 -0600 Subject: [PATCH 03/26] Use next/script and move AA script out of Head --- components/MetaData.tsx | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/components/MetaData.tsx b/components/MetaData.tsx index 790dda73e..9e8a0c9b2 100644 --- a/components/MetaData.tsx +++ b/components/MetaData.tsx @@ -1,4 +1,5 @@ import Head from 'next/head' +import Script from 'next/script' interface Content { title: string @@ -57,16 +58,19 @@ const MetaData = ({ language, data }: MetaDataProps) => { - {/* eslint-disable */} - - {process.env.ENVIRONMENT === 'production' ? ( - - ) : ( - - )} - - {/*eslint-enable */} + + {process.env.ENVIRONMENT === 'production' ? ( +