Skip to content

Commit 7b536ab

Browse files
[UI] Project wizard #323
Cosmetics
1 parent b0ea019 commit 7b536ab

2 files changed

Lines changed: 11 additions & 10 deletions

File tree

frontend/src/locale/en.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
"remove": "Remove",
1212
"apply": "Apply",
1313
"next": "Next",
14-
"previous": "Previous",
14+
"previous": "Back",
1515
"settings": "Settings",
1616
"match_count_with_value_one": "{{count}} match",
1717
"match_count_with_value_other": "{{count}} matches",
@@ -71,7 +71,7 @@
7171
"runs": "Runs",
7272
"models": "Models",
7373
"fleets": "Fleets",
74-
"project": "Project",
74+
"project": "project",
7575
"project_other": "Projects",
7676
"general": "General",
7777
"users": "Users",
@@ -190,17 +190,18 @@
190190
"settings": "Settings"
191191
},
192192
"wizard": {
193-
"submit": "Create project"
193+
"submit": "Create"
194194
},
195195
"edit": {
196196
"general": "General",
197197
"project_name": "Project name",
198198
"owner": "Owner",
199199
"project_name_description": "Only latin characters, dashes, underscores, and digits",
200200
"project_type": "Project type",
201-
"project_type_description": "You can choose one of project types",
201+
"project_type_description": "Choose which project type you want to create",
202202
"backends": "Backends",
203-
"backends_description": "You can choose one or more of backend types",
203+
"base_backends_description": "dstack will automatically collect offers from the following providers. Deselect providers you don’t want to use.",
204+
"backends_description": "The following backends can be configured with your own cloud credentials in the project settings after the project is created.",
204205
"default_fleet": "Create default fleet",
205206
"default_fleet_description": "You can create default fleet for project",
206207
"fleet_name": "Fleet name",
@@ -223,7 +224,7 @@
223224
"update_visibility_confirm_title": "Change project visibility",
224225
"update_visibility_confirm_message": "Are you sure you want to change the project visibility? This will affect who can access this project.",
225226
"change_visibility": "Change visibility",
226-
"project_visibility": "Project visibility",
227+
"project_visibility": "Visibility",
227228
"project_visibility_description": "Control who can access this project",
228229
"make_project_public": "Make project public",
229230
"delete_project_confirm_title": "Delete project",

frontend/src/pages/Project/CreateWizard/index.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,7 @@ export const CreateProjectWizard: React.FC = () => {
203203
const projectExist = errorDetail.some(({ code }) => code === 'resource_exists');
204204

205205
if (projectExist) {
206-
setError('project_name', { type: 'custom', message: 'Project is already exist' });
206+
setError('project_name', { type: 'custom', message: 'Project with this name already exists' });
207207
}
208208

209209
return false;
@@ -314,7 +314,7 @@ export const CreateProjectWizard: React.FC = () => {
314314
submitButtonText={t('projects.wizard.submit')}
315315
steps={[
316316
{
317-
title: 'Project name and type',
317+
title: 'Name and type',
318318
content: (
319319
<Container>
320320
<SpaceBetween direction="vertical" size="l">
@@ -352,8 +352,8 @@ export const CreateProjectWizard: React.FC = () => {
352352
label={t('projects.edit.backends')}
353353
description={
354354
formValues['project_type'] === 'gpu_marketplace'
355-
? t('projects.edit.backends_description')
356-
: 'Own_cloud_backends_placeholder'
355+
? t('projects.edit.base_backends_description')
356+
: t('projects.edit.backends_description')
357357
}
358358
errorText={formState.errors.backends?.message}
359359
/>

0 commit comments

Comments
 (0)