Skip to content

Commit 0a71cf7

Browse files
committed
feat(vcfaas): update order and discover links for onboarding pages
ref: #MANAGER-19649 Signed-off-by: ahmed sefiani <[email protected]>
1 parent 5b6e425 commit 0a71cf7

File tree

4 files changed

+57
-24
lines changed

4 files changed

+57
-24
lines changed

packages/manager/apps/hpc-vmware-public-vcf-aas/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
},
2020
"dependencies": {
2121
"@hookform/resolvers": "5.1.1",
22-
"@ovh-ux/manager-common-translations": "^0.11.0",
22+
"@ovh-ux/manager-common-translations": "^0.23.0",
2323
"@ovh-ux/manager-config": "^8.7.1",
2424
"@ovh-ux/manager-core-api": "^0.19.2",
2525
"@ovh-ux/manager-core-utils": "^0.4.8",
@@ -66,4 +66,4 @@
6666
"EU",
6767
"US"
6868
]
69-
}
69+
}

packages/manager/apps/hpc-vmware-public-vcf-aas/src/pages/onboarding/Onboarding.page.tsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ import useGuideUtils from '@/hooks/guide/useGuideUtils';
1111
import vmwareBroadcomOVHCloud from '@/assets/VmwareBroadcomxOVHcloud.svg?url';
1212
import { TRACKING } from '@/tracking.constants';
1313
import { ORDER_VCD_REDIRECTION_URL } from '@/utils/orderVcdRedirection.constants';
14+
import { DISCOVER_VCD_REDIRECTION_URL } from '@/utils/discoverVcdRedirection.constants';
15+
1416
import { VMWARE_CLOUD_DIRECTOR_LABEL } from '@/utils/label.constants';
1517

1618
export default function Onboarding() {
@@ -92,6 +94,14 @@ export default function Onboarding() {
9294
'_blank',
9395
);
9496
}}
97+
moreInfoButtonLabel={t(`${NAMESPACES.ACTIONS}:discover`)}
98+
onMoreInfoButtonClick={() => {
99+
window.open(
100+
DISCOVER_VCD_REDIRECTION_URL[ovhSubsidiary] ||
101+
DISCOVER_VCD_REDIRECTION_URL.DEFAULT,
102+
'_blank',
103+
);
104+
}}
95105
>
96106
{tileList.map((tile) => (
97107
<Card
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
export const DISCOVER_VCD_REDIRECTION_URL: Record<string, string> = {
2+
DEFAULT: 'https://www.ovhcloud.com/en/public-vcf-aas/',
3+
FR: 'https://www.ovhcloud.com/fr/public-vcf-aas/',
4+
EN: 'https://www.ovhcloud.com/en/public-vcf-aas/',
5+
DE: 'https://www.ovhcloud.com/de/public-vcf-aas/',
6+
ES: 'https://www.ovhcloud.com/es-es/public-vcf-aas/',
7+
IE: 'https://www.ovhcloud.com/en-ie/public-vcf-aas/',
8+
IT: 'https://www.ovhcloud.com/it/public-vcf-aas/',
9+
NL: 'https://www.ovhcloud.com/nl/public-vcf-aas/',
10+
PL: 'https://www.ovhcloud.com/pl/public-vcf-aas/',
11+
PT: 'https://www.ovhcloud.com/pt/public-vcf-aas/',
12+
GB: 'https://www.ovhcloud.com/en-gb/public-vcf-aas/',
13+
CA: 'https://www.ovhcloud.com/en-ca/public-vcf-aas/',
14+
QC: 'https://www.ovhcloud.com/fr-ca/public-vcf-aas/',
15+
US:
16+
'https://us.ovhcloud.com/public-vcf-aas/?_gl=1*kt40jj*_gcl_aw*R0NMLjE3NTAwODY2NzUuRUFJYUlRb2JDaE1JbUxUQjhaejJqUU1WX2JWb0NSM0ZZRFhmRUFBWUFTQUFFZ0tTV2ZEX0J3RQ..*_gcl_au*MTk2MDY1OTc0NS4xNzQ5NjI3ODUw',
17+
MA: 'https://www.ovhcloud.com/fr-ma/public-vcf-aas/',
18+
SN: 'https://www.ovhcloud.com/fr-sn/public-vcf-aas/',
19+
TN: 'https://www.ovhcloud.com/fr-tn/public-vcf-aas/',
20+
AU: 'https://www.ovhcloud.com/en-au/public-vcf-aas/',
21+
IN: 'https://www.ovhcloud.com/en-in/public-vcf-aas/',
22+
SG: 'https://www.ovhcloud.com/en-sg/public-vcf-aas/',
23+
ASIA: 'https://www.ovhcloud.com/asia/public-vcf-aas/',
24+
};
Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,23 @@
11
export const ORDER_VCD_REDIRECTION_URL: Record<string, string> = {
2-
DEFAULT: 'https://www.ovhcloud.com/en/public-vcf-aas/',
3-
FR: 'https://www.ovhcloud.com/fr/public-vcf-aas/',
4-
DE: 'https://www.ovhcloud.com/de/public-vcf-aas/',
5-
IE: 'https://www.ovhcloud.com/en-ie/public-vcf-aas/',
6-
PL: 'https://www.ovhcloud.com/pl/public-vcf-aas/',
7-
ES: 'https://www.ovhcloud.com/es-es/public-vcf-aas/',
8-
IT: 'https://www.ovhcloud.com/it/public-vcf-aas/',
9-
PT: 'https://www.ovhcloud.com/pt/public-vcf-aas/',
10-
NL: 'https://www.ovhcloud.com/nl/public-vcf-aas/',
11-
GB: 'https://www.ovhcloud.com/en-gb/public-vcf-aas/',
12-
CA: 'https://www.ovhcloud.com/en-ca/public-vcf-aas/',
13-
QC: 'https://www.ovhcloud.com/fr-ca/public-vcf-aas/',
14-
WS: 'https://www.ovhcloud.com/es/public-vcf-aas/',
15-
MA: 'https://www.ovhcloud.com/fr-ma/public-vcf-aas/',
16-
SN: 'https://www.ovhcloud.com/fr-sn/public-vcf-aas/',
17-
TN: 'https://www.ovhcloud.com/fr-tn/public-vcf-aas/',
18-
AU: 'https://www.ovhcloud.com/en-au/public-vcf-aas/',
19-
SG: 'https://www.ovhcloud.com/en-sg/public-vcf-aas/',
20-
ASIA: 'https://www.ovhcloud.com/asia/public-vcf-aas/',
21-
IN: 'https://www.ovhcloud.com/en-in/public-vcf-aas/',
22-
WE: 'https://www.ovhcloud.com/en/public-vcf-aas/',
23-
US: 'https://us.ovhcloud.com/public-vcf-aas/',
2+
FR: 'https://www.ovhcloud.com/fr/public-vcf-aas/configurator/',
3+
EN: 'https://www.ovhcloud.com/en/public-vcf-aas/configurator/',
4+
DE: 'https://www.ovhcloud.com/de/public-vcf-aas/configurator/',
5+
ES: 'https://www.ovhcloud.com/es-es/public-vcf-aas/configurator/',
6+
IE: 'https://www.ovhcloud.com/en-ie/public-vcf-aas/configurator/',
7+
IT: 'https://www.ovhcloud.com/it/public-vcf-aas/configurator/',
8+
NL: 'https://www.ovhcloud.com/nl/public-vcf-aas/configurator/',
9+
PL: 'https://www.ovhcloud.com/pl/public-vcf-aas/configurator/',
10+
PT: 'https://www.ovhcloud.com/pt/public-vcf-aas/configurator/',
11+
GB: 'https://www.ovhcloud.com/en-gb/public-vcf-aas/configurator/',
12+
CA: 'https://www.ovhcloud.com/en-ca/public-vcf-aas/configurator/',
13+
QC: 'https://www.ovhcloud.com/fr-ca/public-vcf-aas/configurator/',
14+
MA: 'https://www.ovhcloud.com/fr-ma/public-vcf-aas/configurator/',
15+
SN: 'https://www.ovhcloud.com/fr-sn/public-vcf-aas/configurator/',
16+
TN: 'https://www.ovhcloud.com/fr-tn/public-vcf-aas/configurator/',
17+
AU: 'https://www.ovhcloud.com/en-au/public-vcf-aas/configurator/',
18+
IN: 'https://www.ovhcloud.com/en-in/public-vcf-aas/configurator/',
19+
SG: 'https://www.ovhcloud.com/en-sg/public-vcf-aas/configurator/',
20+
ASIA: 'https://www.ovhcloud.com/asia/public-vcf-aas/configurator/',
21+
US: 'https://us.ovhcloud.com/public-vcf-aas',
22+
DEFAULT: 'https://www.ovhcloud.com/en/public-vcf-aas/configurator/',
2423
};

0 commit comments

Comments
 (0)