Skip to content

Commit 33d88b4

Browse files
Rename CreateDevEnvironment to Launch
Rename directory, component, localStorage key, translation keys, and all references from the old dev-environment-specific naming to the generalized Launch naming. Co-authored-by: Cursor <cursoragent@cursor.com>
1 parent de850ef commit 33d88b4

14 files changed

Lines changed: 52 additions & 52 deletions

File tree

frontend/src/locale/en.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -471,8 +471,8 @@
471471
}
472472
},
473473
"runs": {
474-
"launch": "Launch",
475-
"dev_env": {
474+
"launch_button": "Launch",
475+
"launch": {
476476
"wizard": {
477477
"title": "Launch",
478478
"submit": "Apply",

frontend/src/pages/Runs/Details/RunDetails/ConnectToRunWithDevEnvConfiguration/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import {
1919
import { copyToClipboard } from 'libs';
2020

2121
import { useConfigProjectCliCommand } from 'pages/Project/hooks/useConfigProjectCliComand';
22-
import { getIDEDisplayName } from 'pages/Runs/CreateDevEnvironment/constants';
22+
import { getIDEDisplayName } from 'pages/Runs/Launch/constants';
2323

2424
import styles from './styles.module.scss';
2525

frontend/src/pages/Runs/CreateDevEnvironment/components/ParamsWizardStep/index.tsx renamed to frontend/src/pages/Runs/Launch/components/ParamsWizardStep/index.tsx

Lines changed: 28 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -75,10 +75,10 @@ export const ParamsWizardStep: React.FC<ParamsWizardStepProps> = ({ formMethods,
7575

7676
return (
7777
<FormInput
78-
label={t('runs.dev_env.wizard.name')}
79-
description={t('runs.dev_env.wizard.name_description')}
80-
constraintText={t('runs.dev_env.wizard.name_constraint')}
81-
placeholder={t('runs.dev_env.wizard.name_placeholder')}
78+
label={t('runs.launch.wizard.name')}
79+
description={t('runs.launch.wizard.name_description')}
80+
constraintText={t('runs.launch.wizard.name_constraint')}
81+
placeholder={t('runs.launch.wizard.name_placeholder')}
8282
control={control}
8383
name={FORM_FIELD_NAMES.name}
8484
disabled={loading}
@@ -98,8 +98,8 @@ export const ParamsWizardStep: React.FC<ParamsWizardStepProps> = ({ formMethods,
9898

9999
return (
100100
<FormSelect
101-
label={t('runs.dev_env.wizard.ide')}
102-
description={t('runs.dev_env.wizard.ide_description')}
101+
label={t('runs.launch.wizard.ide')}
102+
description={t('runs.launch.wizard.ide_description')}
103103
control={control}
104104
name={FORM_FIELD_NAMES.ide}
105105
options={IDE_OPTIONS}
@@ -120,14 +120,14 @@ export const ParamsWizardStep: React.FC<ParamsWizardStepProps> = ({ formMethods,
120120
activeTabId={dockerPythonTab}
121121
tabs={[
122122
{
123-
label: t('runs.dev_env.wizard.python'),
123+
label: t('runs.launch.wizard.python'),
124124
id: DockerPythonTabs.PYTHON,
125125
content: (
126126
<div>
127127
<FormInput
128-
label={t('runs.dev_env.wizard.python')}
129-
description={t('runs.dev_env.wizard.python_description')}
130-
placeholder={t('runs.dev_env.wizard.python_placeholder')}
128+
label={t('runs.launch.wizard.python')}
129+
description={t('runs.launch.wizard.python_description')}
130+
placeholder={t('runs.launch.wizard.python_placeholder')}
131131
control={control}
132132
name={FORM_FIELD_NAMES.python}
133133
disabled={loading}
@@ -136,15 +136,15 @@ export const ParamsWizardStep: React.FC<ParamsWizardStepProps> = ({ formMethods,
136136
),
137137
},
138138
{
139-
label: t('runs.dev_env.wizard.docker'),
139+
label: t('runs.launch.wizard.docker'),
140140
id: DockerPythonTabs.DOCKER,
141141
content: (
142142
<div>
143143
<FormInput
144-
label={t('runs.dev_env.wizard.docker_image')}
145-
description={t('runs.dev_env.wizard.docker_image_description')}
146-
constraintText={t('runs.dev_env.wizard.docker_image_constraint')}
147-
placeholder={t('runs.dev_env.wizard.docker_image_placeholder')}
144+
label={t('runs.launch.wizard.docker_image')}
145+
description={t('runs.launch.wizard.docker_image_description')}
146+
constraintText={t('runs.launch.wizard.docker_image_constraint')}
147+
placeholder={t('runs.launch.wizard.docker_image_placeholder')}
148148
control={control}
149149
name={FORM_FIELD_NAMES.image}
150150
disabled={loading}
@@ -164,10 +164,10 @@ export const ParamsWizardStep: React.FC<ParamsWizardStepProps> = ({ formMethods,
164164

165165
return (
166166
<FormInput
167-
label={t('runs.dev_env.wizard.working_dir')}
168-
description={t('runs.dev_env.wizard.working_dir_description')}
169-
constraintText={t('runs.dev_env.wizard.working_dir_constraint')}
170-
placeholder={t('runs.dev_env.wizard.working_dir_placeholder')}
167+
label={t('runs.launch.wizard.working_dir')}
168+
description={t('runs.launch.wizard.working_dir_description')}
169+
constraintText={t('runs.launch.wizard.working_dir_constraint')}
170+
placeholder={t('runs.launch.wizard.working_dir_placeholder')}
171171
control={control}
172172
name="working_dir"
173173
disabled={loading}
@@ -185,7 +185,7 @@ export const ParamsWizardStep: React.FC<ParamsWizardStepProps> = ({ formMethods,
185185
<FormToggle
186186
control={control}
187187
defaultValue={false}
188-
label={t('runs.dev_env.wizard.repo')}
188+
label={t('runs.launch.wizard.repo')}
189189
name={FORM_FIELD_NAMES.repo_enabled}
190190
disabled={loading}
191191
onChange={toggleRepo}
@@ -194,20 +194,20 @@ export const ParamsWizardStep: React.FC<ParamsWizardStepProps> = ({ formMethods,
194194
{isEnabledRepo && (
195195
<SpaceBetween direction="vertical" size="l">
196196
<FormInput
197-
label={t('runs.dev_env.wizard.repo_url')}
198-
description={t('runs.dev_env.wizard.repo_url_description')}
199-
constraintText={t('runs.dev_env.wizard.repo_url_constraint')}
200-
placeholder={t('runs.dev_env.wizard.repo_url_placeholder')}
197+
label={t('runs.launch.wizard.repo_url')}
198+
description={t('runs.launch.wizard.repo_url_description')}
199+
constraintText={t('runs.launch.wizard.repo_url_constraint')}
200+
placeholder={t('runs.launch.wizard.repo_url_placeholder')}
201201
control={control}
202202
name="repo_url"
203203
disabled={loading}
204204
/>
205205

206206
<FormInput
207-
label={t('runs.dev_env.wizard.repo_path')}
208-
description={t('runs.dev_env.wizard.repo_path_description')}
209-
constraintText={t('runs.dev_env.wizard.repo_path_constraint')}
210-
placeholder={t('runs.dev_env.wizard.repo_path_placeholder')}
207+
label={t('runs.launch.wizard.repo_path')}
208+
description={t('runs.launch.wizard.repo_path_description')}
209+
constraintText={t('runs.launch.wizard.repo_path_constraint')}
210+
placeholder={t('runs.launch.wizard.repo_path_placeholder')}
211211
control={control}
212212
name="repo_path"
213213
disabled={loading}
File renamed without changes.

frontend/src/pages/Runs/CreateDevEnvironment/helpers/getRunSpecConfigurationResources.ts renamed to frontend/src/pages/Runs/Launch/helpers/getRunSpecConfigurationResources.ts

File renamed without changes.

frontend/src/pages/Runs/CreateDevEnvironment/hooks/useGenerateYaml.ts renamed to frontend/src/pages/Runs/Launch/hooks/useGenerateYaml.ts

File renamed without changes.

frontend/src/pages/Runs/CreateDevEnvironment/hooks/useGetRunSpecFromYaml.ts renamed to frontend/src/pages/Runs/Launch/hooks/useGetRunSpecFromYaml.ts

File renamed without changes.

frontend/src/pages/Runs/CreateDevEnvironment/hooks/useValidationResolver.ts renamed to frontend/src/pages/Runs/Launch/hooks/useValidationResolver.ts

File renamed without changes.

frontend/src/pages/Runs/CreateDevEnvironment/index.tsx renamed to frontend/src/pages/Runs/Launch/index.tsx

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -52,14 +52,14 @@ const paramsStepFieldNames = Object.keys(FORM_FIELD_NAMES).filter(
5252
),
5353
) as IRunEnvironmentFormKeys[];
5454

55-
export const CreateDevEnvironment: React.FC = () => {
55+
export const Launch: React.FC = () => {
5656
const { t } = useTranslation();
5757
const [searchParams] = useSearchParams();
5858
const navigate = useNavigate();
5959
const [pushNotification] = useNotifications();
6060
const [openHelpPanel] = useHelpPanel();
6161
const [defaultProject, setDefaultProject] = useLocalStorageState<IProject['project_name'] | undefined>(
62-
'createEnvironmentDefaultProject',
62+
'launchDefaultProject',
6363
undefined,
6464
);
6565
const [activeStepIndex, setActiveStepIndex] = useState(0);
@@ -78,7 +78,7 @@ export const CreateDevEnvironment: React.FC = () => {
7878
href: ROUTES.RUNS.LIST,
7979
},
8080
{
81-
text: t('runs.dev_env.wizard.title'),
81+
text: t('runs.launch.wizard.title'),
8282
href: ROUTES.RUNS.CREATE_DEV_ENV,
8383
},
8484
]);
@@ -214,7 +214,7 @@ export const CreateDevEnvironment: React.FC = () => {
214214
.then((data) => {
215215
pushNotification({
216216
type: 'success',
217-
content: t('runs.dev_env.wizard.success_notification'),
217+
content: t('runs.launch.wizard.success_notification'),
218218
});
219219

220220
navigate(ROUTES.PROJECT.DETAILS.RUNS.DETAILS.FORMAT(data.project_name, data.id));
@@ -272,30 +272,30 @@ export const CreateDevEnvironment: React.FC = () => {
272272
optional: 'optional',
273273
}}
274274
onCancel={onCancelHandler}
275-
submitButtonText={t('runs.dev_env.wizard.submit')}
275+
submitButtonText={t('runs.launch.wizard.submit')}
276276
steps={[
277277
{
278278
title: 'Template',
279279
content: (
280280
<Container>
281281
<SpaceBetween direction="vertical" size="l">
282282
<FormSelect
283-
label={t('runs.dev_env.wizard.project')}
284-
description={t('runs.dev_env.wizard.project_description')}
283+
label={t('runs.launch.wizard.project')}
284+
description={t('runs.launch.wizard.project_description')}
285285
control={control}
286286
name={FORM_FIELD_NAMES.project}
287287
options={projectOptions}
288288
disabled={loading}
289-
empty={t('runs.dev_env.wizard.project_empty')}
290-
loadingText={t('runs.dev_env.wizard.project_loading')}
289+
empty={t('runs.launch.wizard.project_empty')}
290+
loadingText={t('runs.launch.wizard.project_loading')}
291291
statusType={isLoadingProjectOptions ? 'loading' : undefined}
292292
onChange={onChangeProject}
293293
defaultValue={defaultProject}
294294
/>
295295

296296
<FormField
297-
label={t('runs.dev_env.wizard.template')}
298-
description={t('runs.dev_env.wizard.template_description')}
297+
label={t('runs.launch.wizard.template')}
298+
description={t('runs.launch.wizard.template_description')}
299299
errorText={formState.errors.template?.message}
300300
/>
301301

@@ -315,7 +315,7 @@ export const CreateDevEnvironment: React.FC = () => {
315315
},
316316
{
317317
id: 'configurationType',
318-
header: t('runs.dev_env.wizard.template_card_type'),
318+
header: t('runs.launch.wizard.template_card_type'),
319319
content: (item) => item.configurationType ?? '-',
320320
},
321321
],
@@ -344,8 +344,8 @@ export const CreateDevEnvironment: React.FC = () => {
344344
<FormToggle
345345
control={control}
346346
defaultValue={false}
347-
toggleLabel={t('runs.dev_env.wizard.gpu')}
348-
toggleDescription={t('runs.dev_env.wizard.gpu_description')}
347+
toggleLabel={t('runs.launch.wizard.gpu')}
348+
toggleDescription={t('runs.launch.wizard.gpu_description')}
349349
errorText={
350350
formValues.gpu_enabled
351351
? formState.errors.offer?.message
@@ -369,8 +369,8 @@ export const CreateDevEnvironment: React.FC = () => {
369369
<Container>
370370
<FormCodeEditor
371371
control={control}
372-
label={t('runs.dev_env.wizard.configuration_label')}
373-
description={t('runs.dev_env.wizard.configuration_description')}
372+
label={t('runs.launch.wizard.configuration_label')}
373+
description={t('runs.launch.wizard.configuration_description')}
374374
info={
375375
<InfoLink onFollow={() => openHelpPanel(CONFIGURATION_INFO)} />
376376
}

frontend/src/pages/Runs/CreateDevEnvironment/styles.module.scss renamed to frontend/src/pages/Runs/Launch/styles.module.scss

File renamed without changes.

0 commit comments

Comments
 (0)