Skip to content

Commit d808204

Browse files
committed
[UI] Project wizard dstackai/dstack-cloud#323
1 parent b6aa7e8 commit d808204

10 files changed

Lines changed: 444 additions & 10 deletions

File tree

frontend/package-lock.json

Lines changed: 12 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,14 +103,15 @@
103103
"@cloudscape-design/global-styles": "^1.0.33",
104104
"@hookform/resolvers": "^2.9.10",
105105
"@reduxjs/toolkit": "^1.9.1",
106+
"@types/yup": "^0.29.14",
106107
"ace-builds": "^1.36.3",
107108
"classnames": "^2.5.1",
108109
"css-minimizer-webpack-plugin": "^4.2.2",
109110
"date-fns": "^2.29.3",
110111
"i18next": "^24.0.2",
111112
"lodash": "^4.17.21",
112113
"openai": "^4.33.1",
113-
"prismjs": "^1.29.0",
114+
"prismjs": "^1.30.0",
114115
"rc-tooltip": "^5.2.2",
115116
"react": "^18.3.1",
116117
"react-avatar": "^5.0.3",

frontend/src/components/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ export { default as PropertyFilter } from '@cloudscape-design/components/propert
5656
export type { PropertyFilterProps } from '@cloudscape-design/components/property-filter';
5757
export type { LineChartProps } from '@cloudscape-design/components/line-chart/interfaces';
5858
export type { ModalProps } from '@cloudscape-design/components/modal';
59+
export { default as Wizard } from '@cloudscape-design/components/wizard';
5960

6061
// custom components
6162
export { NavigateLink } from './NavigateLink';

frontend/src/locale/en.json

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
"delete": "Delete",
1111
"remove": "Remove",
1212
"apply": "Apply",
13+
"next": "Next",
14+
"previous": "Previous",
1315
"settings": "Settings",
1416
"match_count_with_value_one": "{{count}} match",
1517
"match_count_with_value_other": "{{count}} matches",
@@ -187,11 +189,26 @@
187189
"backend": "Backend",
188190
"settings": "Settings"
189191
},
192+
"wizard": {
193+
"submit": "Create project"
194+
},
190195
"edit": {
191196
"general": "General",
192197
"project_name": "Project name",
193198
"owner": "Owner",
194199
"project_name_description": "Only latin characters, dashes, underscores, and digits",
200+
"project_type": "Project type",
201+
"project_type_description": "You can choose one of project types",
202+
"backends": "Backends",
203+
"backends_description": "You can choose one or more of backend types",
204+
"default_fleet": "Create default fleet",
205+
"default_fleet_description": "You can create default fleet for project",
206+
"fleet_name": "Fleet name",
207+
"fleet_name_description": "Only latin characters, dashes, underscores, and digits",
208+
"fleet_min_instances": "Min number of instances",
209+
"fleet_min_instances_description": "Only digits",
210+
"fleet_max_instances": "Max number of instances",
211+
"fleet_max_instances_description": "Only digits",
195212
"is_public": "Make project public",
196213
"is_public_description": "Public projects can be accessed by any user without being a member",
197214
"backend": "Backend",
Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
import { FormMultiselectOptions } from 'components';
2+
3+
export const backendOptions: FormMultiselectOptions = [
4+
{ label: 'aws', value: 'aws' },
5+
{ label: 'azure', value: 'azure' },
6+
{ label: 'cudo', value: 'cudo' },
7+
{ label: 'datacrunch', value: 'datacrunch' },
8+
{ label: 'dstack', value: 'dstack' },
9+
{ label: 'gcp', value: 'gcp' },
10+
{ label: 'kubernetes', value: 'kubernetes' },
11+
{ label: 'lambda', value: 'lambda' },
12+
{ label: 'local', value: 'local' },
13+
{ label: 'nebius', value: 'nebius' },
14+
{ label: 'remote', value: 'remote' },
15+
{ label: 'oci', value: 'oci' },
16+
{ label: 'runpod', value: 'runpod' },
17+
{ label: 'tensordock', value: 'tensordock' },
18+
{ label: 'vastai', value: 'vastai' },
19+
{ label: 'cloudrift', value: 'cloudrift' },
20+
{ label: 'hotaisle', value: 'hotaisle' },
21+
{ label: 'vultr', value: 'vultr' },
22+
];

0 commit comments

Comments
 (0)