Skip to content

Commit 42e39d7

Browse files
committed
Merge branch 'master' into issue_3551_terminating_job_pipeline
2 parents 58efc6e + a357347 commit 42e39d7

20 files changed

Lines changed: 881 additions & 183 deletions

File tree

frontend/src/locale/en.json

Lines changed: 23 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
"tutorial_other": "Take a tour",
5050
"docs": "Docs",
5151
"discord": "Discord",
52-
"danger_zone": "Danger Zone",
52+
"danger_zone": "Danger zone",
5353
"control_plane": "Control plane",
5454
"refresh": "Refresh",
5555
"quickstart": "Quickstart",
@@ -223,10 +223,26 @@
223223
"members_empty_message_text": "Select project's members",
224224
"update_members_success": "Members are updated",
225225
"update_visibility_success": "Project visibility updated successfully",
226-
"update_visibility_confirm_title": "Change project visibility",
226+
"update_templates_repo_success": "Templates updated successfully",
227+
"update_visibility_confirm_title": "Change visibility",
227228
"update_visibility_confirm_message": "Are you sure you want to change the project visibility? This will affect who can access this project.",
228229
"change_visibility": "Change",
229230
"project_visibility": "Visibility",
231+
"project_visibility_settings": "Visibility",
232+
"templates_repo": "Templates",
233+
"override_project_templates": "Templates",
234+
"transfer_ownership": "Ownership",
235+
"templates_repo_description": "Set a project-level templates repository URL",
236+
"templates_repo_placeholder": "https://github.com/org/templates.git",
237+
"templates_repo_not_set": "not set",
238+
"templates_repo_required": "Templates repo URL cannot be empty",
239+
"save_templates_repo": "Save",
240+
"configure_templates_repo": "Configure",
241+
"change_templates_repo_title": "Override project templates",
242+
"change_templates_repo_message": "Specify a new templates Git repo URL:",
243+
"reset_templates_repo": "Reset",
244+
"reset_templates_repo_title": "Reset templates",
245+
"reset_templates_repo_message": "Are you sure you want to reset templates for this project?",
230246
"project_visibility_description": "Control who can access this project",
231247
"make_project_public": "Make project public",
232248
"delete_project_confirm_title": "Delete project",
@@ -472,6 +488,11 @@
472488
},
473489
"runs": {
474490
"launch_button": "Launch",
491+
"no_templates_alert": {
492+
"title": "No templates configured",
493+
"description": "The selected project has no templates available for Launch.",
494+
"action": "Settings"
495+
},
475496
"launch": {
476497
"wizard": {
477498
"title": "Launch",

frontend/src/pages/Project/Details/Settings/constants.tsx

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import React from 'react';
2+
import Link from '@cloudscape-design/components/link';
23

34
export const CLI_INFO = {
45
header: <h2>CLI</h2>,
@@ -21,3 +22,23 @@ export const CLI_INFO = {
2122
</>
2223
),
2324
};
25+
26+
export const TEMPLATES_REPO_INFO = {
27+
header: <h2>Templates</h2>,
28+
body: (
29+
<>
30+
<p>
31+
Specify a project-level templates Git repository URL. Templates from this repo are shown on the Launch page in
32+
Runs, and setting it enables the Launch button when templates are available.
33+
</p>
34+
<p>If set, project templates override global templates configured on the server.</p>
35+
<p>
36+
See official examples in{' '}
37+
<Link href="https://github.com/dstackai/dstack-templates" external>
38+
dstackai/dstack-templates
39+
</Link>
40+
.
41+
</p>
42+
</>
43+
),
44+
};

0 commit comments

Comments
 (0)