-
Notifications
You must be signed in to change notification settings - Fork 98
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(pci.ai.notebook): update guide, fix console error and wording (#…
…15076) * feat(pci.ai.notebook): update guide, fix console error and wording * feat(pci.ai.notebook): fix pr comments Signed-off-by: Arthur Bullet <[email protected]>
- Loading branch information
Showing
27 changed files
with
227 additions
and
152 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...books/public/translations/pci-ai-notebooks/notebooks/notebook/backups/Messages_fr_FR.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
...otebooks/public/translations/pci-ai-notebooks/notebooks/notebook/logs/Messages_fr_FR.json
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"breadcrumb": "Logs", | ||
"title": "Logs", | ||
"description": "Pour vous aider à suivre et à piloter votre notebook, vous trouverez les derniers événements (logs) ci-dessous, quasiment en direct.", | ||
"description": "Vous trouverez ici l'ensemble des logs de votre notebook afin de vous aider à suivre et monitorer son évolution.", | ||
"autoRefreshInputLabel": "Auto-Refresh" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
56 changes: 56 additions & 0 deletions
56
packages/manager/apps/pci-ai-notebooks/src/configuration/guide.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
export enum GuideSections { | ||
'cli' = 'cli', | ||
'ovhaiCli' = 'ovhai-cli', | ||
'users' = 'utilisateurs', | ||
'data' = 'donnees', | ||
'faq' = 'faq', | ||
'registres' = 'registres', | ||
'products' = 'produits-ia', | ||
'notebooks' = 'ai-notebooks', | ||
} | ||
|
||
export const allGuidesSections: GuideSections[] = [ | ||
GuideSections.cli, | ||
GuideSections.data, | ||
GuideSections.faq, | ||
GuideSections.notebooks, | ||
GuideSections.ovhaiCli, | ||
GuideSections.products, | ||
GuideSections.notebooks, | ||
]; | ||
|
||
export const GUIDES = { | ||
GLOBAL_AI: { | ||
fr_FR: 'https://docs.ovh.com/fr/publiccloud/ai/', | ||
fr_CA: 'https://docs.ovh.com/fr/publiccloud/ai/', | ||
default: 'https://docs.ovh.com/gb/en/publiccloud/ai/', | ||
}, | ||
ONBOARDING_TUTO_1: { | ||
fr_FR: | ||
'https://help.ovhcloud.com/csm/fr-public-cloud-ai-notebooks-capabilities?id=kb_article_view&sysparm_article=KB0048247', | ||
fr_CA: | ||
'https://help.ovhcloud.com/csm/fr-public-cloud-ai-notebooks-capabilities?id=kb_article_view&sysparm_article=KB0048247', | ||
default: | ||
'https://help.ovhcloud.com/csm/en-gb-public-cloud-ai-notebooks-capabilities?id=kb_article_view&sysparm_article=KB0048238', | ||
}, | ||
ONBOARDING_TUTO_2: { | ||
fr_FR: | ||
'https://help.ovhcloud.com/csm/fr-public-cloud-ai-notebooks-definition?id=kb_article_view&sysparm_article=KB0048274', | ||
fr_CA: | ||
'https://help.ovhcloud.com/csm/fr-public-cloud-ai-notebooks-definition?id=kb_article_view&sysparm_article=KB0048274', | ||
default: | ||
'https://help.ovhcloud.com/csm/en-gb-public-cloud-ai-notebooks-definition?id=kb_article_view&sysparm_article=KB0048269', | ||
}, | ||
HOW_TO_MANAGE_DATA: { | ||
fr_FR: 'https://docs.ovh.com/fr/publiccloud/ai/data/', | ||
fr_CA: 'https://docs.ovh.com/fr/publiccloud/ai/data/', | ||
default: 'https://docs.ovh.com/gb/en/publiccloud/ai/data/', | ||
}, | ||
}; | ||
|
||
export function getGuideUrl( | ||
guide: typeof GUIDES[keyof typeof GUIDES], | ||
locale: string, | ||
): string { | ||
return guide[locale as keyof typeof guide] || guide.default; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 6 additions & 6 deletions
12
packages/manager/apps/pci-ai-notebooks/src/data/api/ai/notebook/suggestions.api.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
import { apiClient } from '@ovh-ux/manager-core-api'; | ||
import { PCIAi } from '../..'; | ||
import { Suggestions } from '@/types/orderFunnel'; | ||
import { mockedSuggestion } from '@/__tests__/helpers/mocks/suggestion'; | ||
// import { apiClient } from '@ovh-ux/manager-core-api'; | ||
// import { PCIAi } from '../..'; | ||
// import { Suggestions } from '@/types/orderFunnel'; | ||
import { mockedTempSuggestionForOrderFunnel } from '@/__tests__/helpers/mocks/suggestion'; | ||
|
||
export const getSuggestions = async ({ projectId }: PCIAi) => { | ||
export const getSuggestions = async (/* { projectId }: PCIAi */) => { | ||
/* | ||
apiClient.v6 | ||
.get(`/cloud/project/${projectId}/ai/notebook/suggestions`) | ||
.then((res) => res.data as Suggestions[]); | ||
*/ | ||
return mockedSuggestion; | ||
return mockedTempSuggestionForOrderFunnel; | ||
}; |
Oops, something went wrong.