@kerfjs/ui 5.0.0-beta.126 → 5.0.0-beta.127
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ai/component-props.json +20 -0
- package/ai/public-api-signatures-v1.md +7 -5
- package/ai/webawesome-jsx-signatures-v1.md +1 -1
- package/dist/browser/editor.js +3 -1
- package/dist/{chunk-NR3ZO4LK.js → chunk-7U65KLDL.js} +1 -1
- package/dist/chunk-7U65KLDL.js.map +1 -0
- package/dist/chunk-BMOZSNDU.js +133 -0
- package/dist/chunk-BMOZSNDU.js.map +1 -0
- package/dist/chunk-GHV36C6I.js +94 -0
- package/dist/chunk-GHV36C6I.js.map +1 -0
- package/dist/{chunk-Z3BT2SZE.js → chunk-GQUDCWOD.js} +8 -2
- package/dist/chunk-GQUDCWOD.js.map +1 -0
- package/dist/{chunk-3SCGTP5O.js → chunk-HD7ZLISK.js} +137 -11
- package/dist/chunk-HD7ZLISK.js.map +1 -0
- package/dist/column-explorer.d.ts +1 -1
- package/dist/column-explorer.js +16 -138
- package/dist/column-explorer.js.map +1 -1
- package/dist/editor.js +838 -115
- package/dist/editor.js.map +1 -1
- package/dist/index.js +1 -1
- package/dist/list-detail-dialog.js +1 -1
- package/dist/styles/components/surfaces/editor-frame/editor-frame.css +8 -1
- package/dist/styles/components/surfaces/surface-scaffold/surface-scaffold.css +32 -0
- package/dist/styles/editor/editor.css +23 -0
- package/dist/styles/editor-frame.css +8 -1
- package/dist/styles/surface-scaffold.css +32 -0
- package/dist/surface-scaffold.d.ts +3 -1
- package/dist/surface-scaffold.js +1 -1
- package/dist/tree-list.d.ts +2 -2
- package/dist/tree-list.js +2 -2
- package/dist/{tree-rows-eHnnGLGM.d.ts → tree-rows-Bms5QJvG.d.ts} +3 -0
- package/dist/wire-column-explorer.js +1 -92
- package/dist/wire-column-explorer.js.map +1 -1
- package/dist/workbench-dialog.js +1 -1
- package/docs/view.md +19 -0
- package/package.json +4 -2
- package/ux-demo/recipes/app-shell.tsx +48 -141
- package/ux-demo/recipes/collapsible-sidebar.tsx +43 -169
- package/ux-demo/recipes/compact-toolbar.tsx +22 -114
- package/ux-demo/recipes/composer-form.tsx +14 -104
- package/ux-demo/recipes/list-detail-dialog.tsx +38 -84
- package/ux-demo/recipes/list-workspace-states.tsx +29 -152
- package/ux-demo/recipes/loading-inspector.tsx +30 -174
- package/ux-demo/recipes/media-detail.tsx +29 -146
- package/ux-demo/recipes/navigation-sidebar.tsx +24 -113
- package/ux-demo/recipes/navigation-stack.tsx +7 -43
- package/ux-demo/recipes/workspace-header.tsx +2 -66
- package/view/generate.mjs +34 -14
- package/dist/chunk-3SCGTP5O.js.map +0 -1
- package/dist/chunk-NR3ZO4LK.js.map +0 -1
- package/dist/chunk-Z3BT2SZE.js.map +0 -1
|
@@ -2,20 +2,9 @@ import '@kerfjs/ui/layout.css';
|
|
|
2
2
|
import '@kerfjs/ui/select/register';
|
|
3
3
|
import '@kerfjs/ui/webawesome.css';
|
|
4
4
|
|
|
5
|
-
import { Spacer } from '@kerfjs/ui';
|
|
6
|
-
import { Button } from '@kerfjs/ui/button';
|
|
7
|
-
import { Form } from '@kerfjs/ui/form';
|
|
8
|
-
import { List } from '@kerfjs/ui/list';
|
|
9
|
-
import { ListInsetText } from '@kerfjs/ui/list-inset-text';
|
|
10
|
-
import { Row } from '@kerfjs/ui/row';
|
|
11
|
-
import { Select } from '@kerfjs/ui/select';
|
|
12
|
-
import { StateBanner } from '@kerfjs/ui/state-banner';
|
|
13
|
-
import { Text } from '@kerfjs/ui/text';
|
|
14
|
-
import { TextField } from '@kerfjs/ui/text-field';
|
|
15
|
-
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
16
|
-
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
17
5
|
import { signal } from 'kerfjs';
|
|
18
6
|
|
|
7
|
+
import { renderRecipeComposerForm } from '../views/recipe-composer-form.view.js';
|
|
19
8
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
20
9
|
|
|
21
10
|
export const presentation: RecipePresentation = {
|
|
@@ -50,98 +39,16 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
50
39
|
const body = signal(
|
|
51
40
|
'The tablet layout now keeps navigation, content, and inspector focus order aligned.',
|
|
52
41
|
);
|
|
53
|
-
const audience = signal('team');
|
|
42
|
+
const audience = signal<'team' | 'reviewers' | 'organization'>('team');
|
|
54
43
|
const status = signal<'idle' | 'error' | 'saved'>('idle');
|
|
55
|
-
const render = () =>
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
{/* The title and its supporting line are one heading unit. */}
|
|
64
|
-
<List>
|
|
65
|
-
<Toolbar
|
|
66
|
-
label="Publish Workspace Update"
|
|
67
|
-
leading={
|
|
68
|
-
<ToolbarText
|
|
69
|
-
text="Publish Workspace Update"
|
|
70
|
-
size="xlarge"
|
|
71
|
-
id="recipe-composer-title"
|
|
72
|
-
/>
|
|
73
|
-
}
|
|
74
|
-
/>
|
|
75
|
-
<ListInsetText sides="rl">
|
|
76
|
-
<Text variant="span" tone="quiet" id="recipe-composer-summary">
|
|
77
|
-
Share a concise, actionable update with collaborators.
|
|
78
|
-
</Text>
|
|
79
|
-
</ListInsetText>
|
|
80
|
-
</List>
|
|
81
|
-
{status.value === 'error' && (
|
|
82
|
-
<StateBanner
|
|
83
|
-
title="Add a Title Before Publishing"
|
|
84
|
-
detail="The update body and audience are preserved."
|
|
85
|
-
tone="danger"
|
|
86
|
-
urgency="alert"
|
|
87
|
-
/>
|
|
88
|
-
)}
|
|
89
|
-
{status.value === 'saved' && (
|
|
90
|
-
<StateBanner
|
|
91
|
-
title="Update Published"
|
|
92
|
-
detail="The team audience can now read it."
|
|
93
|
-
tone="success"
|
|
94
|
-
/>
|
|
95
|
-
)}
|
|
96
|
-
<List gap="xs" controlInsets="rl">
|
|
97
|
-
<TextField
|
|
98
|
-
name="recipe-title"
|
|
99
|
-
label="Update Title"
|
|
100
|
-
hint="Summarize the outcome in one line."
|
|
101
|
-
required
|
|
102
|
-
value={title.value}
|
|
103
|
-
/>
|
|
104
|
-
<TextField
|
|
105
|
-
multiline
|
|
106
|
-
name="recipe-body"
|
|
107
|
-
label="Details"
|
|
108
|
-
hint="Include decisions, owners, and the next checkpoint."
|
|
109
|
-
rows={5}
|
|
110
|
-
maxLength={400}
|
|
111
|
-
showCount
|
|
112
|
-
value={body.value}
|
|
113
|
-
/>
|
|
114
|
-
<Select<string>
|
|
115
|
-
name="recipe-audience"
|
|
116
|
-
value={audience.value}
|
|
117
|
-
label="Audience"
|
|
118
|
-
choices={[
|
|
119
|
-
{ value: 'team', label: 'Workspace Team' },
|
|
120
|
-
{ value: 'reviewers', label: 'Reviewers' },
|
|
121
|
-
{ value: 'organization', label: 'Entire Organization' },
|
|
122
|
-
]}
|
|
123
|
-
/>
|
|
124
|
-
</List>
|
|
125
|
-
<Row gap="xs" wrap controlInsets="rl">
|
|
126
|
-
<Spacer flex />
|
|
127
|
-
<Button
|
|
128
|
-
emphasis="secondary"
|
|
129
|
-
action="recipe-action"
|
|
130
|
-
rootAttributes={{ 'data-recipe-command': 'reset' }}
|
|
131
|
-
>
|
|
132
|
-
Reset
|
|
133
|
-
</Button>
|
|
134
|
-
<Button
|
|
135
|
-
tone="brand"
|
|
136
|
-
action="recipe-action"
|
|
137
|
-
rootAttributes={{ 'data-recipe-command': 'submit' }}
|
|
138
|
-
>
|
|
139
|
-
Publish Update
|
|
140
|
-
</Button>
|
|
141
|
-
</Row>
|
|
142
|
-
</List>
|
|
143
|
-
</Form>
|
|
144
|
-
);
|
|
44
|
+
const render = () =>
|
|
45
|
+
renderRecipeComposerForm({
|
|
46
|
+
title: title.value,
|
|
47
|
+
body: body.value,
|
|
48
|
+
audience: audience.value,
|
|
49
|
+
error: status.value === 'error',
|
|
50
|
+
saved: status.value === 'saved',
|
|
51
|
+
});
|
|
145
52
|
return {
|
|
146
53
|
render,
|
|
147
54
|
action(command, element) {
|
|
@@ -168,7 +75,10 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
168
75
|
(element as HTMLElement & { value?: string | null }).value ?? '';
|
|
169
76
|
if (element.getAttribute('name') === 'recipe-title') title.value = value;
|
|
170
77
|
if (element.getAttribute('name') === 'recipe-body') body.value = value;
|
|
171
|
-
if (
|
|
78
|
+
if (
|
|
79
|
+
element.getAttribute('name') === 'recipe-audience' &&
|
|
80
|
+
(value === 'team' || value === 'reviewers' || value === 'organization')
|
|
81
|
+
)
|
|
172
82
|
audience.value = value;
|
|
173
83
|
},
|
|
174
84
|
};
|
|
@@ -4,20 +4,15 @@ import '@kerfjs/ui/nav-stack.css';
|
|
|
4
4
|
import '@kerfjs/ui/split-view.css';
|
|
5
5
|
import '@kerfjs/ui/webawesome.css';
|
|
6
6
|
|
|
7
|
-
import { Button } from '@kerfjs/ui/button';
|
|
8
|
-
import { remify } from '@kerfjs/ui/css-values';
|
|
9
7
|
import { deviceClass } from '@kerfjs/ui/device-class';
|
|
10
|
-
import { List } from '@kerfjs/ui/list';
|
|
11
|
-
import { ListDetailDialog } from '@kerfjs/ui/list-detail-dialog';
|
|
12
|
-
import { ListItem } from '@kerfjs/ui/list-item';
|
|
13
|
-
import { LucideIcon } from '@kerfjs/ui/lucide-icon';
|
|
14
|
-
import { Row } from '@kerfjs/ui/row';
|
|
15
|
-
import { Spacer } from '@kerfjs/ui/spacer';
|
|
16
8
|
import { openDialog } from '@kerfjs/ui/surface-scaffold';
|
|
17
|
-
import { ValueTable, ValueTableRow } from '@kerfjs/ui/value-table';
|
|
18
9
|
import { signal } from 'kerfjs';
|
|
19
|
-
import { ChevronRight, FileText } from 'lucide';
|
|
20
10
|
|
|
11
|
+
import { renderRecipeListDetailActions } from '../views/recipe-list-detail-actions.view.js';
|
|
12
|
+
import { renderRecipeListDetailDialog } from '../views/recipe-list-detail-dialog.view.js';
|
|
13
|
+
import { renderRecipeListDetailLauncher } from '../views/recipe-list-detail-launcher.view.js';
|
|
14
|
+
import { renderRecipeListDetailRows } from '../views/recipe-list-detail-rows.view.js';
|
|
15
|
+
import { renderRecipeListDetailValues } from '../views/recipe-list-detail-values.view.js';
|
|
21
16
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
22
17
|
|
|
23
18
|
const records = {
|
|
@@ -57,44 +52,20 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
57
52
|
|
|
58
53
|
const projectRows = (compact: boolean) => (
|
|
59
54
|
<section aria-label="Projects">
|
|
60
|
-
{
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
) : undefined
|
|
71
|
-
}
|
|
72
|
-
selected={!compact && selected.value === id}
|
|
73
|
-
multiline
|
|
74
|
-
/>
|
|
75
|
-
))}
|
|
55
|
+
{renderRecipeListDetailRows({
|
|
56
|
+
records: Object.entries(records).map(([id, record]) => ({
|
|
57
|
+
id,
|
|
58
|
+
name: record.name,
|
|
59
|
+
description: `${record.owner} · ${record.state}`,
|
|
60
|
+
selected: !compact && selected.value === id,
|
|
61
|
+
})),
|
|
62
|
+
compact,
|
|
63
|
+
controlInsets: compact ? undefined : 'tb',
|
|
64
|
+
})}
|
|
76
65
|
</section>
|
|
77
66
|
);
|
|
78
67
|
|
|
79
|
-
const recordActions =
|
|
80
|
-
<Row gap="xs" wrap controlInsets="trbl">
|
|
81
|
-
<Spacer flex />
|
|
82
|
-
<Button
|
|
83
|
-
emphasis="secondary"
|
|
84
|
-
action="recipe-action"
|
|
85
|
-
rootAttributes={{ 'data-recipe-command': 'archive' }}
|
|
86
|
-
>
|
|
87
|
-
Archive
|
|
88
|
-
</Button>
|
|
89
|
-
<Button
|
|
90
|
-
tone="brand"
|
|
91
|
-
action="recipe-action"
|
|
92
|
-
rootAttributes={{ 'data-recipe-command': 'open-record' }}
|
|
93
|
-
>
|
|
94
|
-
Open Project
|
|
95
|
-
</Button>
|
|
96
|
-
</Row>
|
|
97
|
-
);
|
|
68
|
+
const recordActions = renderRecipeListDetailActions;
|
|
98
69
|
|
|
99
70
|
const render = () => {
|
|
100
71
|
const compact = device.value.compact;
|
|
@@ -104,46 +75,29 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
104
75
|
data-recipe="recipe-list-detail-dialog"
|
|
105
76
|
aria-label="Project Details Dialog"
|
|
106
77
|
>
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
<List controlInsets={compact ? undefined : 'tb'}>
|
|
128
|
-
{projectRows(compact)}
|
|
129
|
-
</List>
|
|
130
|
-
),
|
|
131
|
-
}}
|
|
132
|
-
detail={{
|
|
133
|
-
title: record.name,
|
|
134
|
-
content: (
|
|
135
|
-
<List controlInsets="tb">
|
|
136
|
-
<ValueTable label="Project Details">
|
|
137
|
-
<ValueTableRow label="Owner" value={record.owner} />
|
|
138
|
-
<ValueTableRow label="Status" value={record.state} />
|
|
139
|
-
<ValueTableRow label="Updated" value={record.updated} />
|
|
140
|
-
</ValueTable>
|
|
141
|
-
</List>
|
|
78
|
+
{renderRecipeListDetailLauncher(
|
|
79
|
+
{},
|
|
80
|
+
{
|
|
81
|
+
dialog: () =>
|
|
82
|
+
renderRecipeListDetailDialog(
|
|
83
|
+
{
|
|
84
|
+
compact,
|
|
85
|
+
detailActive: detailOpen.value,
|
|
86
|
+
name: record.name,
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
listContent: () => projectRows(compact),
|
|
90
|
+
detailContent: () =>
|
|
91
|
+
renderRecipeListDetailValues({
|
|
92
|
+
owner: record.owner,
|
|
93
|
+
state: record.state,
|
|
94
|
+
updated: record.updated,
|
|
95
|
+
}),
|
|
96
|
+
footer: recordActions,
|
|
97
|
+
},
|
|
142
98
|
),
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
/>
|
|
146
|
-
</Row>
|
|
99
|
+
},
|
|
100
|
+
)}
|
|
147
101
|
</section>
|
|
148
102
|
);
|
|
149
103
|
};
|
|
@@ -1,27 +1,16 @@
|
|
|
1
1
|
import '@kerfjs/ui/layout.css';
|
|
2
2
|
|
|
3
|
-
import { Button } from '@kerfjs/ui/button';
|
|
4
|
-
import { EmptyState } from '@kerfjs/ui/empty-state';
|
|
5
|
-
import { ListItem } from '@kerfjs/ui/list-item';
|
|
6
|
-
import { LoadingSpinner } from '@kerfjs/ui/loading-spinner';
|
|
7
|
-
import { Pane } from '@kerfjs/ui/pane';
|
|
8
|
-
import { StateBanner } from '@kerfjs/ui/state-banner';
|
|
9
|
-
import { Toolbar } from '@kerfjs/ui/toolbar';
|
|
10
|
-
import {
|
|
11
|
-
ToolbarButton,
|
|
12
|
-
ToolbarControlGroup,
|
|
13
|
-
} from '@kerfjs/ui/toolbar-control-group';
|
|
14
|
-
import { ToolbarText } from '@kerfjs/ui/toolbar-text';
|
|
15
3
|
import { signal } from 'kerfjs';
|
|
16
4
|
|
|
5
|
+
import { renderRecipeListWorkspaceEmpty } from '../views/recipe-list-workspace-empty.view.js';
|
|
6
|
+
import { renderRecipeListWorkspaceError } from '../views/recipe-list-workspace-error.view.js';
|
|
7
|
+
import { renderRecipeListWorkspaceLoading } from '../views/recipe-list-workspace-loading.view.js';
|
|
8
|
+
import { renderRecipeListWorkspacePopulated } from '../views/recipe-list-workspace-populated.view.js';
|
|
9
|
+
import { renderRecipeListWorkspaceShell } from '../views/recipe-list-workspace-shell.view.js';
|
|
10
|
+
import { renderRecipeListWorkspaceStale } from '../views/recipe-list-workspace-stale.view.js';
|
|
17
11
|
import type { RecipeFactory, RecipePresentation } from './types.js';
|
|
18
12
|
|
|
19
13
|
type ListState = 'loading' | 'empty' | 'populated' | 'stale' | 'error';
|
|
20
|
-
const items = [
|
|
21
|
-
['Audit keyboard focus order', 'In review · Mara'],
|
|
22
|
-
['Verify 200% zoom layout', 'Ready · Sam'],
|
|
23
|
-
['Publish package migration notes', 'Draft · Inez'],
|
|
24
|
-
] as const;
|
|
25
14
|
|
|
26
15
|
export const presentation: RecipePresentation = {
|
|
27
16
|
viewport: {
|
|
@@ -40,145 +29,33 @@ export const createRecipe: RecipeFactory = (announce) => {
|
|
|
40
29
|
const state = signal<ListState>('loading');
|
|
41
30
|
const populated = () => (
|
|
42
31
|
<section aria-label="Release Task List">
|
|
43
|
-
{
|
|
44
|
-
<ListItem
|
|
45
|
-
action="recipe-action"
|
|
46
|
-
label={title}
|
|
47
|
-
description={detail}
|
|
48
|
-
rootAttributes={{ 'data-recipe-command': 'open-task' }}
|
|
49
|
-
/>
|
|
50
|
-
))}
|
|
32
|
+
{renderRecipeListWorkspacePopulated()}
|
|
51
33
|
</section>
|
|
52
34
|
);
|
|
53
35
|
const renderBody = () => {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
return (
|
|
72
|
-
<EmptyState
|
|
73
|
-
title="No Release Tasks"
|
|
74
|
-
detail="Create the first task for this milestone."
|
|
75
|
-
action={
|
|
76
|
-
<Button
|
|
77
|
-
action="recipe-action"
|
|
78
|
-
rootAttributes={{ 'data-recipe-command': 'create' }}
|
|
79
|
-
>
|
|
80
|
-
Create Task
|
|
81
|
-
</Button>
|
|
82
|
-
}
|
|
83
|
-
/>
|
|
84
|
-
);
|
|
85
|
-
if (state.value === 'error')
|
|
86
|
-
return (
|
|
87
|
-
<StateBanner
|
|
88
|
-
title="Release Tasks Could Not Be Refreshed"
|
|
89
|
-
detail="Existing filters are preserved. Try again when the connection recovers."
|
|
90
|
-
tone="danger"
|
|
91
|
-
urgency="alert"
|
|
92
|
-
action={
|
|
93
|
-
<Button
|
|
94
|
-
size="compact"
|
|
95
|
-
shape="pill"
|
|
96
|
-
action="recipe-action"
|
|
97
|
-
rootAttributes={{ 'data-recipe-command': 'retry' }}
|
|
98
|
-
>
|
|
99
|
-
Retry
|
|
100
|
-
</Button>
|
|
101
|
-
}
|
|
102
|
-
/>
|
|
103
|
-
);
|
|
104
|
-
return (
|
|
105
|
-
<>
|
|
106
|
-
{state.value === 'stale' && (
|
|
107
|
-
<StateBanner
|
|
108
|
-
title="Showing Saved Results"
|
|
109
|
-
detail="Refreshing in the background."
|
|
110
|
-
tone="warning"
|
|
111
|
-
action={
|
|
112
|
-
<>
|
|
113
|
-
<LoadingSpinner label="Refreshing release tasks…" />
|
|
114
|
-
<Button
|
|
115
|
-
size="compact"
|
|
116
|
-
shape="pill"
|
|
117
|
-
action="recipe-action"
|
|
118
|
-
rootAttributes={{ 'data-recipe-command': 'finish' }}
|
|
119
|
-
>
|
|
120
|
-
Finish Refresh
|
|
121
|
-
</Button>
|
|
122
|
-
</>
|
|
123
|
-
}
|
|
124
|
-
/>
|
|
125
|
-
)}
|
|
126
|
-
{populated()}
|
|
127
|
-
</>
|
|
128
|
-
);
|
|
36
|
+
switch (state.value) {
|
|
37
|
+
case 'loading':
|
|
38
|
+
return renderRecipeListWorkspaceLoading();
|
|
39
|
+
case 'empty':
|
|
40
|
+
return renderRecipeListWorkspaceEmpty();
|
|
41
|
+
case 'error':
|
|
42
|
+
return renderRecipeListWorkspaceError();
|
|
43
|
+
case 'stale':
|
|
44
|
+
return (
|
|
45
|
+
<>
|
|
46
|
+
{renderRecipeListWorkspaceStale()}
|
|
47
|
+
{populated()}
|
|
48
|
+
</>
|
|
49
|
+
);
|
|
50
|
+
case 'populated':
|
|
51
|
+
return populated();
|
|
52
|
+
}
|
|
129
53
|
};
|
|
130
|
-
const render = () =>
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
'data-recipe': 'recipe-list-workspace-states',
|
|
136
|
-
'data-list-state': state.value,
|
|
137
|
-
}}
|
|
138
|
-
header={
|
|
139
|
-
<Toolbar
|
|
140
|
-
label="Release Tasks"
|
|
141
|
-
responsive="stack"
|
|
142
|
-
responsiveAt="compact"
|
|
143
|
-
leading={
|
|
144
|
-
<ToolbarText
|
|
145
|
-
text="Release Tasks"
|
|
146
|
-
size="xlarge"
|
|
147
|
-
id="recipe-list-title"
|
|
148
|
-
/>
|
|
149
|
-
}
|
|
150
|
-
trailing={
|
|
151
|
-
<ToolbarControlGroup
|
|
152
|
-
appearance="borderless"
|
|
153
|
-
content="text"
|
|
154
|
-
buttonAppearance="push"
|
|
155
|
-
>
|
|
156
|
-
<ToolbarButton
|
|
157
|
-
action="recipe-action"
|
|
158
|
-
rootAttributes={{ 'data-recipe-command': 'empty' }}
|
|
159
|
-
>
|
|
160
|
-
Clear
|
|
161
|
-
</ToolbarButton>
|
|
162
|
-
<ToolbarButton
|
|
163
|
-
action="recipe-action"
|
|
164
|
-
rootAttributes={{ 'data-recipe-command': 'fail' }}
|
|
165
|
-
>
|
|
166
|
-
Simulate Failure
|
|
167
|
-
</ToolbarButton>
|
|
168
|
-
<ToolbarButton
|
|
169
|
-
action="recipe-action"
|
|
170
|
-
rootAttributes={{ 'data-recipe-command': 'refresh' }}
|
|
171
|
-
>
|
|
172
|
-
Refresh
|
|
173
|
-
</ToolbarButton>
|
|
174
|
-
</ToolbarControlGroup>
|
|
175
|
-
}
|
|
176
|
-
/>
|
|
177
|
-
}
|
|
178
|
-
>
|
|
179
|
-
{renderBody()}
|
|
180
|
-
</Pane>
|
|
181
|
-
);
|
|
54
|
+
const render = () =>
|
|
55
|
+
renderRecipeListWorkspaceShell(
|
|
56
|
+
{ state: state.value },
|
|
57
|
+
{ body: renderBody },
|
|
58
|
+
);
|
|
182
59
|
return {
|
|
183
60
|
render,
|
|
184
61
|
action(command) {
|