Skip to content

Commit

Permalink
feat(ai.endpoints): clean branch and rework onboarding
Browse files Browse the repository at this point in the history
Signed-off-by: Arthur Bullet <[email protected]>
  • Loading branch information
abullet33 committed Nov 13, 2024
1 parent 4accea7 commit e374ccf
Show file tree
Hide file tree
Showing 13 changed files with 138 additions and 186 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ export const features = [
'ai-endpoints',
'key-management-service',
'pci-savings-plan',
'pci-ai-endpoints',
];

export function getPciProjectMenu(
Expand Down Expand Up @@ -383,11 +384,17 @@ export function getPciProjectMenu(
title: 'AI Deploy',
href: getURL('public-cloud', `#/pci/projects/${projectId}/ai/apps`),
},
isFeaturesAvailable('ai-endpoints') && {
id: 'endpoints',
isFeaturesAvailable('pci-ai-endpoints') ? {
id: 'pci-ai-endpoints',
title: 'AI Endpoints',
badge: 'alpha',
href: getURL('public-cloud', `#/pci/projects/${projectId}/ai/endpoints`),
} : {
id: 'ai-endpoints',
title: 'AI Endpoints',
badge: 'alpha',
href: 'https://endpoints.ai.cloud.ovh.net/',
external: true,
},
],
});
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,7 @@ pciNode.children = [
idAttr: 'pci-ai-link',
universe: PUBLICCLOUD_UNIVERSE_ID,
translation: 'sidebar_pci_ai',
features: ['notebooks', 'ai-apps', 'training', 'ai-dashboard'],
features: ['notebooks', 'ai-apps', 'training', 'ai-dashboard', 'ai-endpoints', 'pci-ai-endpoints'],
forceVisibility: true,
children: [
{
Expand Down Expand Up @@ -556,11 +556,22 @@ pciNode.children = [
idAttr: 'pci-ai-endpoints-link',
universe: PUBLICCLOUD_UNIVERSE_ID,
translation: 'sidebar_pci_ai_endpoints',
count: false,
url: 'https://endpoints.ai.cloud.ovh.net/',
features: ['ai-endpoints'],
tag: NodeTag.ALPHA,
isExternal: true,
},
{
id: 'pci-ai-endpoints-app',
idAttr: 'pci-ai-endpoints-app-link',
universe: PUBLICCLOUD_UNIVERSE_ID,
translation: 'sidebar_pci_ai_endpoints',
routing: {
application: 'public-cloud',
hash: '#/pci/projects/{projectId}/ai/endpoints',
},
features: ['ai-endpoints'],
features: ['pci-ai-endpoints'],
forceVisibility: true,
tag: NodeTag.ALPHA,
},
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
{
"title": "pci-ai-endpoints",
"description": "Découvrez des services de stockage managés qui s’appuient sur le système de fichiers OpenZFS. Bénéficiez en quelques clics d’espaces de stockage centralisés pour entreposer ou sauvegarder vos données et fichiers.",
"orderButtonLabel": "Commander un pci-ai-endpoints",
"moreInfoButtonLabel": "En savoir plus sur pci-ai-endpoints",
"guideCategory": "Tutoriel",
"guide1Title": "Premiers pas avec un pci-ai-endpoints",
"guide1Description": "Découvrez comment gérer un NAS-HA depuis l'espace-client OVHcloud",
"guide2Title": "Monter votre NAS via un partage NFS",
"guide2Description": "Découvrez comment monter un NAS via un partage NFS",
"guide3Title": "Monter votre NAS sur Windows Server via CIFS",
"guide3Description": "Découvrez comment monter un NAS sur Windows Server via le protocole CIFS"
"title": "Enhance your applications with AI Endpoints",
"description": "Designed with simplicity in mind, our platform allows developers of all skill levels to enhance their applications with cutting-edge AI APIs — no AI expertise required.",
"description1": "These endpoints require",
"description2": "no AI expertise",
"description3": "or dedicated infrastructure, as the serverless platform provides",
"description4": "access to advanced AI models",
"description5": "including Large Language Models (LLMs), natural language processing, translation, speech recognition, image recognition, and more. Developers can select from a range of models, including",
"description6": "open-source options like Mistral AI, Llama and Stable Diffusion.",
"goToAiEndpoint": "AI Endpoints",
"guideCategory": "Guide",
"guide1Title": "Premiers pas avec AI Endpoint",
"guide1Description": "Découvrez comment utiliser AI Endpoints",
"guide2Title": "Boostez vos applications avec AI Endpoint",
"guide2Description": "Découvrez comment utiliser AI Endpoint dans vos applications",
"tutoCategory": "Tutorials",
"guide3Title": "Decouvrir nos tutos sur mesure",
"guide3Description": "Découvrez comment utiliser AI Endpoint avec des tutos sur mesure"
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"title": "Bienvenue uapp",
"crumb": "pci-ai-endpoints",
"crumb": "AI-Endpoints",
"tabs_2": "Tabs 2",
"onboarding": "Onboarding"
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function Breadcrumb({ customRootLabel }: BreadcrumbProps): JSX.Element {

const breadcrumbPci = usePciBreadcrumb({
projectId,
appName: 'pci-ai-endpoints',
appName: 'AI-Endpoints',
});

return <OsdsBreadcrumb items={breadcrumbPci} />;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,21 +37,6 @@ const GUIDE_LIST: { [guideName: string]: Partial<GuideLinks> } = {
WS: '/update-path',
US: '/update-path',
},
guideLink3: {
DE: '/guide-link-3-path',
ES: '/guide-link-3-path',
IE: '/en/guide-link-3-path',
IT: '/guide-link-3-path',
PL: '/guide-link-3-path',
PT: '/guide-link-3-path',
FR: '/guide-link-3-path',
GB: '/guide-link-3-path',
CA: '/update-path',
QC: '/update-path',
WE: '/update-path',
WS: '/update-path',
US: '/update-path',
},
/*
addNewGuideLink : {
DEFAULT: '/guide-link-3-path',
Expand All @@ -62,6 +47,24 @@ const GUIDE_LIST: { [guideName: string]: Partial<GuideLinks> } = {
*/
};

const TUTO_LIST: { [guideName: string]: Partial<GuideLinks> } = {
tutoLink1: {
DE: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
ES: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
IE: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
IT: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
PL: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
PT: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
FR: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
GB: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
CA: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
QC: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
WE: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
WS: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
US: 'https://blog.ovhcloud.com/tag/ai-endpoints/',
},
};

type GetGuideLinkProps = {
name?: string;
subsidiary: CountryCode | string;
Expand All @@ -73,6 +76,11 @@ function getGuideListLink({ subsidiary }: GetGuideLinkProps) {
keys.forEach((key) => {
list[key[0]] = docUrl + GUIDE_LIST[key[0]][subsidiary as CountryCode];
});

const tutos = Object.entries(TUTO_LIST);
tutos.forEach((key) => {
list[key[0]] = TUTO_LIST[key[0]][subsidiary as CountryCode];
});
return list;
}

Expand Down
2 changes: 1 addition & 1 deletion packages/manager/apps/pci-ai-endpoints/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const init = async (appName: string) => {
context,
reloadOnLocaleChange: true,
defaultNS: appName,
ns: ['listing', 'dashboard', 'onboarding'],
ns: ['onboarding'],
});

const region = context.environment.getRegion();
Expand Down
118 changes: 0 additions & 118 deletions packages/manager/apps/pci-ai-endpoints/src/pages/listing/index.tsx

This file was deleted.

Loading

0 comments on commit e374ccf

Please sign in to comment.