Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions frontend/src/layouts/AppLayout/TutorialPanel/constants.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import { Box } from 'components';
export const tutorialPanelI18nStrings: TutorialPanelProps.I18nStrings = {
labelsTaskStatus: { pending: 'Pending', 'in-progress': 'In progress', success: 'Success' },
loadingText: 'Loading',
tutorialListTitle: 'Take a tour',
tutorialListTitle: '',
tutorialListDescription: 'Follow the tutorials below to get up to speed with dstack Sky.',
tutorialListDownloadLinkText: 'Download PDF version',
tutorialCompletedText: 'Completed',
Expand Down Expand Up @@ -50,7 +50,7 @@ export enum HotspotIds {

export const BILLING_TUTORIAL: TutorialPanelProps.Tutorial = {
completed: false,
title: 'Set up billing',
title: 'Billing',
description: (
<>
<Box variant="p" color="text-body-secondary" padding={{ top: 'n' }}>
Expand Down Expand Up @@ -80,7 +80,7 @@ export const BILLING_TUTORIAL: TutorialPanelProps.Tutorial = {

export const CONFIGURE_CLI_TUTORIAL: TutorialPanelProps.Tutorial = {
completed: false,
title: 'Set up the CLI',
title: 'CLI',
prerequisitesAlert: 'Please, create a project before set up the CLI',
description: (
<>
Expand Down Expand Up @@ -111,7 +111,7 @@ export const CONFIGURE_CLI_TUTORIAL: TutorialPanelProps.Tutorial = {

export const CREATE_FIRST_PROJECT: TutorialPanelProps.Tutorial = {
completed: false,
title: 'Create a project',
title: 'Project',
description: (
<>
<Box variant="p" color="text-body-secondary" padding={{ top: 'n' }}>
Expand All @@ -136,7 +136,7 @@ export const CREATE_FIRST_PROJECT: TutorialPanelProps.Tutorial = {

export const JOIN_DISCORD_TUTORIAL: TutorialPanelProps.Tutorial = {
completed: false,
title: 'Community',
title: 'Discord',
description: (
<>
<Box variant="p" color="text-body-secondary" padding={{ top: 'n' }}>
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/layouts/AppLayout/TutorialPanel/hooks.ts
Original file line number Diff line number Diff line change
Expand Up @@ -167,14 +167,6 @@ export const useTutorials = () => {
prerequisitesNeeded: !createProjectCompleted,
},

{
...BILLING_TUTORIAL,
id: 4,
completed: billingCompleted,
startCallback: startBillingTutorial,
finishCallback: finishBillingTutorial,
},

{
...QUICKSTART_TUTORIAL,
id: 5,
Expand All @@ -190,6 +182,14 @@ export const useTutorials = () => {
completed: discordCompleted,
startCallback: startDiscordTutorial,
},

{
...BILLING_TUTORIAL,
id: 4,
completed: billingCompleted,
startCallback: startBillingTutorial,
finishCallback: finishBillingTutorial,
},
];
}, [
billingUrl,
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/layouts/AppLayout/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,7 @@ const AppLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
},
process.env.UI_VERSION === 'sky' && {
type: 'button',
iconName: 'suggestions',
iconName: 'support',
title: t('common.tutorial_other'),
onClick: toggleTutorialPanel,
},
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
"continue": "Continue",
"select_visible_columns": "Select visible columns",
"tutorial": "Tutorials",
"tutorial_other": "Tour",
"tutorial_other": "Take a tour",
"docs": "Docs",
"discord": "Discord",
"danger_zone": "Danger Zone",
Expand Down