Skip to content

Commit 4ad13d2

Browse files
committed
Added constants
1 parent 951e88b commit 4ad13d2

File tree

6 files changed

+31
-43
lines changed

6 files changed

+31
-43
lines changed

src/constants/constantCommands.ts

Lines changed: 24 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,31 @@
11
export const constantCommandsToCreateStack = {
2-
title: 'Create Stack',
2+
title: 'Stack Cheatsheet',
33
documentation: 'https://docs.zenml.io/starter-guide/stacks',
44
body: [
55
{
6-
text: 'Create a pipeline',
6+
text: 'Register a stack',
77
isCode: false,
88
},
99
{
10-
text: 'zenml pipeline run -c config.yaml run.py',
10+
text: 'zenml stack register STACK_NAME -o default -a default',
1111
isCode: true,
1212
},
1313
{
14-
text: 'yarn start',
14+
text: 'List stacks',
1515
isCode: false,
1616
},
1717
{
18-
text: 'yarn start',
18+
text: 'zenml stack list',
1919
isCode: true,
2020
},
2121
{
22-
text: 'yarn start',
23-
isCode: true,
22+
text: 'Set stack active',
23+
isCode: false,
2424
},
2525
{
26-
text: 'yarn start',
26+
text: 'zenml stack set STACK_NAME',
2727
isCode: true,
2828
},
29-
{
30-
text: 'you can set it active',
31-
isCode: false,
32-
},
3329
],
3430
};
3531

@@ -71,63 +67,55 @@ export const constantCommandsToCreateComponent = {
7167
type: 'alerter',
7268
body: [
7369
{
74-
text: 'you can set it active',
70+
text: 'Register an alerter',
7571
isCode: false,
7672
},
7773
{
78-
text: 'yarn start alerter ',
74+
text: 'zenml alerter register <ALERTER_NAME> -f <FLAVOR>',
7975
isCode: true,
8076
},
8177
{
82-
text: 'yarn start alerter',
83-
isCode: true,
78+
text: 'List alerters',
79+
isCode: false,
8480
},
8581
{
86-
text: 'yarn start alerter',
82+
text: 'zenml alerter list',
8783
isCode: true,
8884
},
8985
{
90-
text: 'yarn start alerter',
91-
isCode: true,
86+
text: 'See alerter flavors',
87+
isCode: false,
9288
},
9389
{
94-
text: 'yarn start alerter',
90+
text: 'zenml alerter flavor list',
9591
isCode: true,
9692
},
97-
{
98-
text: 'you can set it active',
99-
isCode: false,
100-
},
10193
],
10294
},
10395
defaultBody: [
10496
{
105-
text: 'you can set it default',
97+
text: 'Register a stack component',
10698
isCode: false,
10799
},
108100
{
109-
text: 'yarn start default ',
101+
text: 'zenml <STACK-COMPONENT> register <STACK_COMP_NAME> -f <FLAVOR>',
110102
isCode: true,
111103
},
112104
{
113-
text: 'yarn start default',
114-
isCode: true,
105+
text: 'List stack component',
106+
isCode: false,
115107
},
116108
{
117-
text: 'yarn start default',
109+
text: 'zenml <STACK-COMPONENT> list',
118110
isCode: true,
119111
},
120112
{
121-
text: 'yarn start default',
122-
isCode: true,
113+
text: 'See stack component flavors',
114+
isCode: false,
123115
},
124116
{
125-
text: 'yarn start default',
117+
text: 'zenml <STACK-COMPONENT> flavor list',
126118
isCode: true,
127119
},
128-
{
129-
text: 'you can set it default',
130-
isCode: false,
131-
},
132120
],
133121
};

src/services/locales/zu.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -419,7 +419,7 @@
419419
},
420420
"PipelinesHeader": {
421421
"createButton": {
422-
"text": "Create pipeline"
422+
"text": "Pipeline Cheatsheet"
423423
},
424424
"compareButton": {
425425
"text": "Compare runs"

src/ui/layouts/pipelines/Header/CreatePipelineButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ export const CreatePipelineButton: React.FC = () => {
7575
paddingHorizontal="sm"
7676
>
7777
<PrimaryButton onClick={() => setCreatePipelinePopupOpen(true)}>
78-
Create Pipeline
78+
Pipeline Cheatsheet
7979
</PrimaryButton>
8080

8181
{createPipelinePopupOpen && (

src/ui/layouts/runs/Header/CreateStackButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ export const CreateStackButton: React.FC = () => {
4343
paddingHorizontal="sm"
4444
>
4545
<PrimaryButton onClick={() => setCreateStackPopupOpen(true)}>
46-
Create Stack
46+
Stack Cheatsheet
4747
</PrimaryButton>
4848

4949
{createStackPopupOpen && (
5050
<Popup onClose={() => setCreateStackPopupOpen(false)}>
5151
<FlexBox.Row>
5252
<H3 bold color="darkGrey">
53-
Create Stack
53+
Stack Cheatsheet
5454
</H3>
5555
</FlexBox.Row>
5656

src/ui/layouts/stackComponents/Header/CreatePipelineButton.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,14 +43,14 @@ export const CreatePipelineButton: React.FC = () => {
4343
paddingHorizontal="sm"
4444
>
4545
<PrimaryButton onClick={() => setCreatePipelinePopupOpen(true)}>
46-
Create {camelCaseToParagraph(locationPath.split('/')[2])}
46+
{camelCaseToParagraph(locationPath.split('/')[2])} Cheatsheet
4747
</PrimaryButton>
4848

4949
{createPipelinePopupOpen && (
5050
<Popup onClose={() => setCreatePipelinePopupOpen(false)}>
5151
<FlexBox.Row>
5252
<H3 bold color="darkGrey">
53-
Create {camelCaseToParagraph(locationPath.split('/')[2])}
53+
{camelCaseToParagraph(locationPath.split('/')[2])} Cheatsheet
5454
</H3>
5555
</FlexBox.Row>
5656
{locationPath.split('/')[2] ===

src/ui/layouts/stacks/Header/CreateStackButton.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const CreateStackButton: React.FC = () => {
4040
paddingHorizontal="sm"
4141
>
4242
<PrimaryButton onClick={() => setCreateStackPopupOpen(true)}>
43-
Create Stack
43+
Stack Cheatsheet
4444
</PrimaryButton>
4545

4646
{createStackPopupOpen && (

0 commit comments

Comments
 (0)