From ad7822805cf6f2e7ac8acacc0d3ab4f8fcc3bcda Mon Sep 17 00:00:00 2001 From: Nicolas Pierre-charles Date: Mon, 18 Nov 2024 17:03:22 +0100 Subject: [PATCH] feat(veeam-backup): add USA onboarding ref: MANAGER-15834 Signed-off-by: Nicolas Pierre-charles --- .../src/components/Links/BillingLink.component.tsx | 1 + .../veeam-backup/src/pages/onboarding/useGuideUtils.tsx | 8 +++++++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/manager/apps/veeam-backup/src/components/Links/BillingLink.component.tsx b/packages/manager/apps/veeam-backup/src/components/Links/BillingLink.component.tsx index 3becf949022f..4d1cceabf0a6 100644 --- a/packages/manager/apps/veeam-backup/src/components/Links/BillingLink.component.tsx +++ b/packages/manager/apps/veeam-backup/src/components/Links/BillingLink.component.tsx @@ -10,6 +10,7 @@ import { useTranslation } from 'react-i18next'; const urls: Partial<{ [key in OvhSubsidiary]: string }> = { FR: 'https://www.ovhcloud.com/fr/lp/vmware-vcd-evolution/veeam/', GB: 'https://www.ovhcloud.com/en/lp/vmware-vcd-evolution/veeam/', + US: 'https://us.ovhcloud.com/lp/vmware-vcd-evolution/veeam/', DEFAULT: 'https://www.ovhcloud.com/en/lp/vmware-vcd-evolution/veeam/', }; diff --git a/packages/manager/apps/veeam-backup/src/pages/onboarding/useGuideUtils.tsx b/packages/manager/apps/veeam-backup/src/pages/onboarding/useGuideUtils.tsx index fc427f20f929..84a6870b5d99 100644 --- a/packages/manager/apps/veeam-backup/src/pages/onboarding/useGuideUtils.tsx +++ b/packages/manager/apps/veeam-backup/src/pages/onboarding/useGuideUtils.tsx @@ -4,6 +4,8 @@ import { ShellContext } from '@ovh-ux/manager-react-shell-client'; const docUrl = 'https://help.ovhcloud.com/csm/'; +const usDocUrl = 'https://support.us.ovhcloud.com/hc/en-us/articles/'; + type GuideLinks = { [key in CountryCode | 'DEFAULT']: string }; const GUIDE_LIST: { [guideName: string]: Partial } = { @@ -30,6 +32,7 @@ const GUIDE_LIST: { [guideName: string]: Partial } = { ASIA: 'asia-vmware-vcd-backup?id=kb_article_view&sysparm_article=KB0063129', WE: 'en-vmware-vcd-backup?id=kb_article_view&sysparm_article=KB0063125', WS: 'es-vmware-vcd-backup?id=kb_article_view&sysparm_article=KB0063132', + US: '33255029079059-VMware-Cloud-Director-Backup-with-Veeam-Data-Platform', }, guideLink2: { DEFAULT: @@ -74,6 +77,7 @@ const GUIDE_LIST: { [guideName: string]: Partial } = { 'asia-vmware-vcd-getting-started-dashboard-overview?id=kb_article_view&sysparm_article=KB0062569', WE: 'en-vmware-vcd-getting-started-dashboard-overview?id=kb_article_view&sysparm_article=KB0062573', + US: '28330367397139-VMware-Cloud-Director-The-Fundamentals-of-VCD', }, guideLink3: { DEFAULT: 'en-vmware-vcd-faq?id=kb_article_view&sysparm_article=KB0062598', @@ -97,6 +101,7 @@ const GUIDE_LIST: { [guideName: string]: Partial } = { SG: 'en-sg-vmware-vcd-faq?id=kb_article_view&sysparm_article=KB0062554', ASIA: 'asia-vmware-vcd-faq?id=kb_article_view&sysparm_article=KB0062558', WE: 'en-vmware-vcd-faq?id=kb_article_view&sysparm_article=KB0062598', + US: '28329887272467-VMware-Cloud-Director-FAQ', }, }; @@ -107,9 +112,10 @@ type GetGuideLinkProps = { function getGuideListLink({ subsidiary }: GetGuideLinkProps) { const list: { [guideName: string]: string } = {}; + const prefix = subsidiary === 'US' ? usDocUrl : docUrl; const keys = Object.entries(GUIDE_LIST); keys.forEach((key) => { - list[key[0]] = docUrl + GUIDE_LIST[key[0]][subsidiary || 'DEFAULT']; + list[key[0]] = prefix + GUIDE_LIST[key[0]][subsidiary || 'DEFAULT']; }); return list; }