From 80ad7e125e2013db32753429e72c17bea8256a0b Mon Sep 17 00:00:00 2001 From: Rajandeep Date: Fri, 22 Nov 2024 11:06:08 -0800 Subject: [PATCH 01/12] Hiding BN and Connect from nav items temporarily --- web/site/app/utils/createContentNav.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/web/site/app/utils/createContentNav.ts b/web/site/app/utils/createContentNav.ts index c2fef91b..ff195fc3 100644 --- a/web/site/app/utils/createContentNav.ts +++ b/web/site/app/utils/createContentNav.ts @@ -7,11 +7,15 @@ export function createContentNav (navItems: NavItem[] | undefined) { const localePath = useLocalePath() return navItems.flatMap((nav: NavItem) => { - return nav.children?.map((firstChild) => { + return nav.children?.filter((firstChild) => { + return !['connect', 'bn'].includes(firstChild.title.toLowerCase()) // filter bn , connect temp + }).map((firstChild) => { return { // create parent array for each UAccordian label: handleContentDirectoryLabel(firstChild.title), // return full string instead of 'bn', 'rs', etc defaultOpen: true, // accordians all open by default - children: firstChild.children?.map((secondChild) => { // create children array for each UVerticalNavigation + children: firstChild.children?.filter((secondChild) => { + return !['connect', 'bn'].includes(secondChild.title.toLowerCase()) // Exclude 'connect' or 'bn' at second level + }).map((secondChild) => { // create children array for each UVerticalNavigation return { label: secondChild.title, to: localePath(secondChild._path) // localize path From 79ed79bca44a7c2b4175fce45262848589bf477b Mon Sep 17 00:00:00 2001 From: Rajandeep Date: Fri, 22 Nov 2024 11:24:48 -0800 Subject: [PATCH 02/12] filter api access request --- web/site/app/utils/createContentNav.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/site/app/utils/createContentNav.ts b/web/site/app/utils/createContentNav.ts index ff195fc3..90ca324b 100644 --- a/web/site/app/utils/createContentNav.ts +++ b/web/site/app/utils/createContentNav.ts @@ -10,11 +10,12 @@ export function createContentNav (navItems: NavItem[] | undefined) { return nav.children?.filter((firstChild) => { return !['connect', 'bn'].includes(firstChild.title.toLowerCase()) // filter bn , connect temp }).map((firstChild) => { + const isGetStarted = firstChild.title.toLowerCase() === 'get started' || firstChild.title.toLowerCase() === 'get-started' return { // create parent array for each UAccordian label: handleContentDirectoryLabel(firstChild.title), // return full string instead of 'bn', 'rs', etc defaultOpen: true, // accordians all open by default children: firstChild.children?.filter((secondChild) => { - return !['connect', 'bn'].includes(secondChild.title.toLowerCase()) // Exclude 'connect' or 'bn' at second level + return !['connect', 'bn'].includes(secondChild.title.toLowerCase()) && (!isGetStarted || secondChild.title !== 'API Access Request') // Exclude 'connect' or 'bn' at second level }).map((secondChild) => { // create children array for each UVerticalNavigation return { label: secondChild.title, From a1a186fbbe20d156d63f9d44d27f117e8dffd271 Mon Sep 17 00:00:00 2001 From: Rajandeep Date: Fri, 22 Nov 2024 15:11:29 -0800 Subject: [PATCH 03/12] Updating content --- .../products/1.get-started/4.analytics-report.md | 4 ++-- .../products/1.get-started/5.message-logging.md | 12 ++++++------ 2 files changed, 8 insertions(+), 8 deletions(-) diff --git a/web/site/content/en-CA/products/1.get-started/4.analytics-report.md b/web/site/content/en-CA/products/1.get-started/4.analytics-report.md index 1ebc3951..6a7d8773 100644 --- a/web/site/content/en-CA/products/1.get-started/4.analytics-report.md +++ b/web/site/content/en-CA/products/1.get-started/4.analytics-report.md @@ -224,11 +224,11 @@ be updated over time. 08/11/2020 00:00,08/12/2020 00:00,/ppr/api/v1/drafts,POST,6.0 08/11/2020 00:00,08/12/2020 00:00,/ppr/api/v1/searches,POST,6.0 08/11/2020 00:00,08/12/2020 00:00,/ppr/api/v1/financing-statements/023001B/amendments,POST,5.0 - + diff --git a/web/site/content/en-CA/products/1.get-started/5.message-logging.md b/web/site/content/en-CA/products/1.get-started/5.message-logging.md index 93f28cc1..a69e9c42 100644 --- a/web/site/content/en-CA/products/1.get-started/5.message-logging.md +++ b/web/site/content/en-CA/products/1.get-started/5.message-logging.md @@ -7,17 +7,17 @@ description: 'BC OnLine Account API Gateway message logging information.' --- -BC OnLine Account API Gateway message logging is configured by account ID and -Gateway API. The combination of Gateway environment, account ID, and API name +ServiceBC Connect API Gateway message logging is configured by account ID and +the API. The combination of the API Gateway environment, account ID, and API name is used to create a unique log name. -The API Gateway uses Google Cloud Platform (GCP) logging. With GCP logging, +The Service BC Connect API Platform uses Google Cloud Platform (GCP) logging. With GCP logging, messages can be written (archived) to either CloudStorage Buckets or BigQuery Tables. For each account log name, a Bucket or Table is created to contain the account log messages. BC Registries owns and maintains the account log storage Buckets and Tables. To -enable the viewing of Gateway message logs, the account must have a GCP account +enable the viewing of API message logs, the account must have a GCP account and provide BC Registries with a GCP project ID. As part of the account message logging setup, BC Registries will grant the account project ID permission to view the message log Bucket or Table. @@ -57,11 +57,11 @@ log archive: written to either a CloudStorage Bucket or a BigQuery Table. "receiveTimestamp": "2020-08-13T17:15:27.092912415Z" } ``` - + From db07af623e0f31ea51b5a9558c053e163edb7bcc Mon Sep 17 00:00:00 2001 From: Rajandeep Date: Mon, 25 Nov 2024 09:32:57 -0800 Subject: [PATCH 04/12] hiding products on all products page bn and connect temp --- web/site/app/pages/products/index.vue | 8 +++++--- web/site/app/tests/unit/utils/createContentNav.test.ts | 4 ++-- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/web/site/app/pages/products/index.vue b/web/site/app/pages/products/index.vue index 499cd083..4089bc2d 100644 --- a/web/site/app/pages/products/index.vue +++ b/web/site/app/pages/products/index.vue @@ -15,8 +15,10 @@ const { data: products } = await useAsyncData( { watch: [locale] } -) - +)//hiding cards till Feb 2025 +const completedProducts = computed(() => { + return products.value.filter(product => product.name !== 'Business Number' && product.name !== 'Product Name Here') +}) // console.log(products.value)