Skip to content

Commit 6da1554

Browse files
[UI] Minor tweaks (#3508)
1 parent b7f637b commit 6da1554

File tree

4 files changed

+15
-15
lines changed

4 files changed

+15
-15
lines changed

frontend/src/layouts/AppLayout/TutorialPanel/constants.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import { Box } from 'components';
88
export const tutorialPanelI18nStrings: TutorialPanelProps.I18nStrings = {
99
labelsTaskStatus: { pending: 'Pending', 'in-progress': 'In progress', success: 'Success' },
1010
loadingText: 'Loading',
11-
tutorialListTitle: 'Take a tour',
11+
tutorialListTitle: '',
1212
tutorialListDescription: 'Follow the tutorials below to get up to speed with dstack Sky.',
1313
tutorialListDownloadLinkText: 'Download PDF version',
1414
tutorialCompletedText: 'Completed',
@@ -50,7 +50,7 @@ export enum HotspotIds {
5050

5151
export const BILLING_TUTORIAL: TutorialPanelProps.Tutorial = {
5252
completed: false,
53-
title: 'Set up billing',
53+
title: 'Billing',
5454
description: (
5555
<>
5656
<Box variant="p" color="text-body-secondary" padding={{ top: 'n' }}>
@@ -80,7 +80,7 @@ export const BILLING_TUTORIAL: TutorialPanelProps.Tutorial = {
8080

8181
export const CONFIGURE_CLI_TUTORIAL: TutorialPanelProps.Tutorial = {
8282
completed: false,
83-
title: 'Set up the CLI',
83+
title: 'CLI',
8484
prerequisitesAlert: 'Please, create a project before set up the CLI',
8585
description: (
8686
<>
@@ -111,7 +111,7 @@ export const CONFIGURE_CLI_TUTORIAL: TutorialPanelProps.Tutorial = {
111111

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

137137
export const JOIN_DISCORD_TUTORIAL: TutorialPanelProps.Tutorial = {
138138
completed: false,
139-
title: 'Community',
139+
title: 'Discord',
140140
description: (
141141
<>
142142
<Box variant="p" color="text-body-secondary" padding={{ top: 'n' }}>

frontend/src/layouts/AppLayout/TutorialPanel/hooks.ts

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -167,14 +167,6 @@ export const useTutorials = () => {
167167
prerequisitesNeeded: !createProjectCompleted,
168168
},
169169

170-
{
171-
...BILLING_TUTORIAL,
172-
id: 4,
173-
completed: billingCompleted,
174-
startCallback: startBillingTutorial,
175-
finishCallback: finishBillingTutorial,
176-
},
177-
178170
{
179171
...QUICKSTART_TUTORIAL,
180172
id: 5,
@@ -190,6 +182,14 @@ export const useTutorials = () => {
190182
completed: discordCompleted,
191183
startCallback: startDiscordTutorial,
192184
},
185+
186+
{
187+
...BILLING_TUTORIAL,
188+
id: 4,
189+
completed: billingCompleted,
190+
startCallback: startBillingTutorial,
191+
finishCallback: finishBillingTutorial,
192+
},
193193
];
194194
}, [
195195
billingUrl,

frontend/src/layouts/AppLayout/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ const AppLayout: React.FC<{ children: React.ReactNode }> = ({ children }) => {
183183
},
184184
process.env.UI_VERSION === 'sky' && {
185185
type: 'button',
186-
iconName: 'suggestions',
186+
iconName: 'support',
187187
title: t('common.tutorial_other'),
188188
onClick: toggleTutorialPanel,
189189
},

frontend/src/locale/en.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"continue": "Continue",
4747
"select_visible_columns": "Select visible columns",
4848
"tutorial": "Tutorials",
49-
"tutorial_other": "Tour",
49+
"tutorial_other": "Take a tour",
5050
"docs": "Docs",
5151
"discord": "Discord",
5252
"danger_zone": "Danger Zone",

0 commit comments

Comments
 (0)