@dxos/plugin-pipeline 0.8.4-main.9be5663bfe → 0.8.4-main.bc2380dfbc
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/LICENSE +102 -5
- package/README.md +1 -1
- package/dist/lib/neutral/PipelineArticle-6JIVXMYF.mjs +69 -0
- package/dist/lib/neutral/PipelineArticle-6JIVXMYF.mjs.map +7 -0
- package/dist/lib/neutral/PipelinePlugin.mjs +26 -0
- package/dist/lib/neutral/PipelinePlugin.mjs.map +7 -0
- package/dist/lib/neutral/PipelinePlugin.node.mjs +21 -0
- package/dist/lib/neutral/PipelinePlugin.node.mjs.map +7 -0
- package/dist/lib/neutral/PipelinePlugin.workerd.mjs +16 -0
- package/dist/lib/neutral/PipelinePlugin.workerd.mjs.map +7 -0
- package/dist/lib/neutral/PipelineProperties-GED4FJSS.mjs +211 -0
- package/dist/lib/neutral/PipelineProperties-GED4FJSS.mjs.map +7 -0
- package/dist/lib/neutral/app-graph-builder-ZLGRWRJU.mjs +44 -0
- package/dist/lib/neutral/app-graph-builder-ZLGRWRJU.mjs.map +7 -0
- package/dist/lib/neutral/capabilities/index.mjs +11 -0
- package/dist/lib/neutral/capabilities/index.mjs.map +7 -0
- package/dist/lib/neutral/chunk-ULB5DKWO.mjs +21 -0
- package/dist/lib/neutral/chunk-ULB5DKWO.mjs.map +7 -0
- package/dist/lib/neutral/components/index.mjs +206 -0
- package/dist/lib/neutral/components/index.mjs.map +7 -0
- package/dist/lib/neutral/containers/index.mjs +9 -0
- package/dist/lib/neutral/containers/index.mjs.map +7 -0
- package/dist/lib/neutral/create-object-ZJYFACOI.mjs +25 -0
- package/dist/lib/neutral/create-object-ZJYFACOI.mjs.map +7 -0
- package/dist/lib/neutral/hooks/index.mjs +70 -0
- package/dist/lib/neutral/hooks/index.mjs.map +7 -0
- package/dist/lib/neutral/index.mjs +7 -0
- package/dist/lib/neutral/meta.json +1 -0
- package/dist/lib/neutral/meta.mjs +7 -0
- package/dist/lib/neutral/meta.mjs.map +7 -0
- package/dist/lib/neutral/plugin.mjs +11 -0
- package/dist/lib/neutral/plugin.mjs.map +7 -0
- package/dist/lib/neutral/react-surface-4W5YLCHT.mjs +49 -0
- package/dist/lib/neutral/react-surface-4W5YLCHT.mjs.map +7 -0
- package/dist/lib/neutral/translations.mjs +38 -0
- package/dist/lib/neutral/translations.mjs.map +7 -0
- package/dist/lib/neutral/types/index.mjs.map +7 -0
- package/dist/types/src/PipelinePlugin.d.ts +1 -0
- package/dist/types/src/PipelinePlugin.d.ts.map +1 -1
- package/dist/types/src/PipelinePlugin.node.d.ts +4 -0
- package/dist/types/src/PipelinePlugin.node.d.ts.map +1 -0
- package/dist/types/src/PipelinePlugin.test.d.ts +2 -0
- package/dist/types/src/PipelinePlugin.test.d.ts.map +1 -0
- package/dist/types/src/PipelinePlugin.workerd.d.ts +4 -0
- package/dist/types/src/PipelinePlugin.workerd.d.ts.map +1 -0
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/create-object.d.ts +11 -0
- package/dist/types/src/capabilities/create-object.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +6 -0
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineColumn.d.ts +4 -4
- package/dist/types/src/components/PipelineComponent/PipelineColumn.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts +4 -0
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts +44 -25
- package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineArticle/PipelineArticle.d.ts +6 -0
- package/dist/types/src/containers/PipelineArticle/PipelineArticle.d.ts.map +1 -0
- package/dist/types/src/containers/PipelineArticle/PipelineArticle.stories.d.ts +76 -0
- package/dist/types/src/containers/PipelineArticle/PipelineArticle.stories.d.ts.map +1 -0
- package/dist/types/src/containers/PipelineArticle/index.d.ts +2 -0
- package/dist/types/src/containers/PipelineArticle/index.d.ts.map +1 -0
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts +1 -1
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/hooks/usePipelineBoardModel.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +0 -1
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/plugin.d.ts +3 -0
- package/dist/types/src/plugin.d.ts.map +1 -0
- package/dist/types/src/templates/research.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +44 -26
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +98 -61
- package/src/PipelinePlugin.node.ts +19 -0
- package/src/PipelinePlugin.test.ts +27 -0
- package/src/PipelinePlugin.tsx +5 -30
- package/src/PipelinePlugin.workerd.ts +16 -0
- package/src/capabilities/create-object.ts +29 -0
- package/src/capabilities/index.ts +1 -0
- package/src/capabilities/react-surface.tsx +7 -10
- package/src/components/PipelineComponent/PipelineColumn.tsx +9 -9
- package/src/components/PipelineComponent/PipelineComponent.stories.tsx +5 -7
- package/src/components/PipelineComponent/PipelineComponent.tsx +1 -1
- package/src/containers/{PipelineContainer/PipelineContainer.stories.tsx → PipelineArticle/PipelineArticle.stories.tsx} +18 -19
- package/src/containers/{PipelineContainer/PipelineContainer.tsx → PipelineArticle/PipelineArticle.tsx} +8 -10
- package/src/containers/PipelineArticle/index.ts +5 -0
- package/src/containers/PipelineProperties/PipelineProperties.tsx +23 -23
- package/src/containers/index.ts +1 -1
- package/src/index.ts +0 -1
- package/src/plugin.ts +9 -0
- package/src/templates/research.ts +2 -2
- package/dist/lib/browser/index.mjs +0 -98
- package/dist/lib/browser/index.mjs.map +0 -7
- package/dist/lib/browser/meta.json +0 -1
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.d.ts +0 -6
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.d.ts.map +0 -1
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.stories.d.ts +0 -57
- package/dist/types/src/containers/PipelineContainer/PipelineContainer.stories.d.ts.map +0 -1
- package/dist/types/src/containers/PipelineContainer/index.d.ts +0 -2
- package/dist/types/src/containers/PipelineContainer/index.d.ts.map +0 -1
- package/src/containers/PipelineContainer/index.ts +0 -5
- /package/dist/lib/{browser/types → neutral}/index.mjs.map +0 -0
- /package/dist/lib/{browser → neutral}/types/index.mjs +0 -0
|
@@ -5,16 +5,14 @@
|
|
|
5
5
|
import React, { useCallback, useEffect } from 'react';
|
|
6
6
|
|
|
7
7
|
import { Capabilities } from '@dxos/app-framework';
|
|
8
|
-
import { useCapability } from '@dxos/app-framework/ui';
|
|
9
|
-
import {
|
|
10
|
-
import { Surface } from '@dxos/app-framework/ui';
|
|
8
|
+
import { Surface, useCapability, useOperationInvoker } from '@dxos/app-framework/ui';
|
|
9
|
+
import { LayoutOperation } from '@dxos/app-toolkit';
|
|
11
10
|
import {
|
|
11
|
+
AppSurface,
|
|
12
12
|
OBJECT_ACTIONS_CONTRIBUTION_ID,
|
|
13
13
|
OBJECT_ACTIONS_CONTRIBUTION_PRIORITY,
|
|
14
14
|
useObjectMenuItems,
|
|
15
15
|
} from '@dxos/app-toolkit/ui';
|
|
16
|
-
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
17
|
-
import { DeckOperation } from '@dxos/plugin-deck/operations';
|
|
18
16
|
import { Panel } from '@dxos/react-ui';
|
|
19
17
|
import { linkedSegment } from '@dxos/react-ui-attention';
|
|
20
18
|
import { useAttention } from '@dxos/react-ui-attention';
|
|
@@ -26,9 +24,9 @@ import { usePipelineBoardModel } from '#hooks';
|
|
|
26
24
|
|
|
27
25
|
const PIPELINE_ITEM = 'PipelineItem';
|
|
28
26
|
|
|
29
|
-
export type
|
|
27
|
+
export type PipelineArticleProps = AppSurface.ObjectArticleProps<Pipeline.Pipeline>;
|
|
30
28
|
|
|
31
|
-
export const
|
|
29
|
+
export const PipelineArticle = ({ role, subject: pipeline, attendableId }: PipelineArticleProps) => {
|
|
32
30
|
const registry = useCapability(Capabilities.AtomRegistry);
|
|
33
31
|
const model = usePipelineBoardModel(pipeline, registry);
|
|
34
32
|
const { invokePromise } = useOperationInvoker();
|
|
@@ -36,8 +34,8 @@ export const PipelineContainer = ({ role, subject: pipeline, attendableId }: Pip
|
|
|
36
34
|
|
|
37
35
|
const handleColumnAdd = useCallback(
|
|
38
36
|
() =>
|
|
39
|
-
invokePromise(
|
|
40
|
-
|
|
37
|
+
invokePromise(LayoutOperation.UpdateCompanion, {
|
|
38
|
+
subject: linkedSegment('settings'),
|
|
41
39
|
}),
|
|
42
40
|
[invokePromise],
|
|
43
41
|
);
|
|
@@ -75,7 +73,7 @@ const PipelineItem = ({ item, projectionModel }: ItemProps) => {
|
|
|
75
73
|
|
|
76
74
|
return (
|
|
77
75
|
<Surface.Surface
|
|
78
|
-
|
|
76
|
+
type={AppSurface.Card}
|
|
79
77
|
data={{
|
|
80
78
|
subject: item,
|
|
81
79
|
projection: projectionModel,
|
|
@@ -9,13 +9,13 @@ import { resolveSchemaWithRegistry } from '@dxos/app-toolkit/query';
|
|
|
9
9
|
import { useTypeOptions } from '@dxos/app-toolkit/ui';
|
|
10
10
|
import { DXN, Filter, JsonSchema, Obj, Query, type QueryAST, Ref, Tag } from '@dxos/echo';
|
|
11
11
|
import { type JsonPath, type Mutable } from '@dxos/echo/internal';
|
|
12
|
-
import {
|
|
12
|
+
import { useObject, useQuery } from '@dxos/react-client/echo';
|
|
13
13
|
import { IconButton, type ThemedClassName, useAsyncEffect, useTranslation } from '@dxos/react-ui';
|
|
14
14
|
import { Form, ViewEditor } from '@dxos/react-ui-form';
|
|
15
15
|
import { List } from '@dxos/react-ui-list';
|
|
16
16
|
import { type ProjectionModel, ViewModel } from '@dxos/schema';
|
|
17
17
|
import { Pipeline } from '@dxos/types';
|
|
18
|
-
import { mx, osTranslations
|
|
18
|
+
import { mx, osTranslations } from '@dxos/ui-theme';
|
|
19
19
|
import { arrayMove } from '@dxos/util';
|
|
20
20
|
|
|
21
21
|
import { meta } from '#meta';
|
|
@@ -34,7 +34,7 @@ export type PipelinePropertiesProps = ThemedClassName<{
|
|
|
34
34
|
*/
|
|
35
35
|
export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesProps) => {
|
|
36
36
|
const { t } = useTranslation(meta.id);
|
|
37
|
-
const
|
|
37
|
+
const db = Obj.getDatabase(pipeline);
|
|
38
38
|
const [expandedId, setExpandedId] = useState<string>();
|
|
39
39
|
const [columns, updateColumns] = useObject(pipeline, 'columns');
|
|
40
40
|
const column = useMemo(
|
|
@@ -44,9 +44,9 @@ export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesP
|
|
|
44
44
|
const [view, updateView] = useObject(column?.view);
|
|
45
45
|
const [schema, setSchema] = useState<Schema.Schema.AnyNoContext>(() => Schema.Struct({}));
|
|
46
46
|
const projectionRef = useRef<ProjectionModel>(null);
|
|
47
|
-
const tags = useQuery(
|
|
47
|
+
const tags = useQuery(db, Filter.type(Tag.Tag));
|
|
48
48
|
const types = useTypeOptions({
|
|
49
|
-
|
|
49
|
+
db,
|
|
50
50
|
annotation: {
|
|
51
51
|
location: ['database', 'runtime'],
|
|
52
52
|
kind: ['user'],
|
|
@@ -54,15 +54,15 @@ export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesP
|
|
|
54
54
|
});
|
|
55
55
|
|
|
56
56
|
useAsyncEffect(async () => {
|
|
57
|
-
if (!view?.query || !
|
|
57
|
+
if (!view?.query || !db) {
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
-
const foundSchema = await resolveSchemaWithRegistry(
|
|
61
|
+
const foundSchema = await resolveSchemaWithRegistry(db.schemaRegistry, view.query.ast);
|
|
62
62
|
if (foundSchema && foundSchema !== schema) {
|
|
63
63
|
setSchema(() => foundSchema);
|
|
64
64
|
}
|
|
65
|
-
}, [
|
|
65
|
+
}, [db, view, schema]);
|
|
66
66
|
|
|
67
67
|
const handleMove = useCallback(
|
|
68
68
|
(fromIndex: number, toIndex: number) =>
|
|
@@ -74,16 +74,16 @@ export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesP
|
|
|
74
74
|
|
|
75
75
|
const handleQueryChanged = useCallback(
|
|
76
76
|
async (newQuery: QueryAST.Query, target?: string) => {
|
|
77
|
-
if (!view || !
|
|
77
|
+
if (!view || !db) {
|
|
78
78
|
return;
|
|
79
79
|
}
|
|
80
80
|
|
|
81
81
|
const queue = target && DXN.tryParse(target) ? target : undefined;
|
|
82
|
-
const query = queue ? Query.fromAst(newQuery).from({
|
|
82
|
+
const query = queue ? Query.fromAst(newQuery).from({ feeds: [queue] }) : Query.fromAst(newQuery);
|
|
83
83
|
updateView((view) => {
|
|
84
84
|
view.query.ast = query.ast as Mutable<typeof query.ast>;
|
|
85
85
|
});
|
|
86
|
-
const newSchema = await resolveSchemaWithRegistry(
|
|
86
|
+
const newSchema = await resolveSchemaWithRegistry(db.schemaRegistry, query.ast);
|
|
87
87
|
if (!newSchema) {
|
|
88
88
|
return;
|
|
89
89
|
}
|
|
@@ -98,7 +98,7 @@ export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesP
|
|
|
98
98
|
|
|
99
99
|
setSchema(() => newSchema);
|
|
100
100
|
},
|
|
101
|
-
[view, updateView, schema],
|
|
101
|
+
[db, view, updateView, schema],
|
|
102
102
|
);
|
|
103
103
|
|
|
104
104
|
const handleColumnValuesChanged = useCallback(
|
|
@@ -134,20 +134,20 @@ export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesP
|
|
|
134
134
|
updateColumns((columns) => {
|
|
135
135
|
columns.splice(index, 1);
|
|
136
136
|
});
|
|
137
|
-
|
|
137
|
+
db?.remove(viewToRemove);
|
|
138
138
|
},
|
|
139
|
-
[expandedId, columns, updateColumns,
|
|
139
|
+
[expandedId, columns, updateColumns, db],
|
|
140
140
|
);
|
|
141
141
|
|
|
142
142
|
const handleAdd = useCallback(() => {
|
|
143
|
-
if (!
|
|
143
|
+
if (!db) {
|
|
144
144
|
return;
|
|
145
145
|
}
|
|
146
146
|
const newView = ViewModel.make({
|
|
147
147
|
query: Query.select(Filter.nothing()),
|
|
148
148
|
jsonSchema: JsonSchema.toJsonSchema(Schema.Struct({})),
|
|
149
149
|
});
|
|
150
|
-
|
|
150
|
+
db.add(newView);
|
|
151
151
|
updateColumns((columns) => {
|
|
152
152
|
columns.push({
|
|
153
153
|
name: '',
|
|
@@ -157,10 +157,10 @@ export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesP
|
|
|
157
157
|
});
|
|
158
158
|
});
|
|
159
159
|
setExpandedId(newView.id);
|
|
160
|
-
}, [
|
|
160
|
+
}, [db, updateColumns]);
|
|
161
161
|
|
|
162
162
|
return (
|
|
163
|
-
<div
|
|
163
|
+
<div className={mx('py-form-padding overflow-y-auto', classNames)}>
|
|
164
164
|
<h2 className='text-sm text-description py-1'>{t('views.label')}</h2>
|
|
165
165
|
|
|
166
166
|
<List.Root<Pipeline.Column>
|
|
@@ -179,7 +179,7 @@ export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesP
|
|
|
179
179
|
classNames={listItemGrid}
|
|
180
180
|
aria-expanded={expandedId === column.view.dxn.toString()}
|
|
181
181
|
>
|
|
182
|
-
<div
|
|
182
|
+
<div className={mx(listItemGrid, 'dx-hover rounded-xs cursor-pointer min-h-10')}>
|
|
183
183
|
<List.ItemDragHandle />
|
|
184
184
|
<List.ItemTitle onClick={() => handleToggleField(column)}>
|
|
185
185
|
{column.name || t('untitled-view.title')}
|
|
@@ -203,7 +203,7 @@ export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesP
|
|
|
203
203
|
/>
|
|
204
204
|
</div>
|
|
205
205
|
{expandedId === column.view.dxn.toString() && column?.view.target && (
|
|
206
|
-
<div
|
|
206
|
+
<div className='col-span-5 my-2 border border-separator rounded-md'>
|
|
207
207
|
<Form.Root
|
|
208
208
|
schema={ColumnFormSchema}
|
|
209
209
|
values={column}
|
|
@@ -219,8 +219,8 @@ export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesP
|
|
|
219
219
|
readonly
|
|
220
220
|
schema={schema}
|
|
221
221
|
view={column.view.target}
|
|
222
|
-
registry={
|
|
223
|
-
db={
|
|
222
|
+
registry={db?.schemaRegistry}
|
|
223
|
+
db={db}
|
|
224
224
|
tags={tags}
|
|
225
225
|
types={types}
|
|
226
226
|
onQueryChanged={handleQueryChanged}
|
|
@@ -234,7 +234,7 @@ export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesP
|
|
|
234
234
|
)}
|
|
235
235
|
</List.Root>
|
|
236
236
|
|
|
237
|
-
<div
|
|
237
|
+
<div className='my-form-padding'>
|
|
238
238
|
<IconButton icon='ph--plus--regular' label={t('add-view.label')} onClick={handleAdd} classNames='w-full' />
|
|
239
239
|
</div>
|
|
240
240
|
</div>
|
package/src/containers/index.ts
CHANGED
|
@@ -4,5 +4,5 @@
|
|
|
4
4
|
|
|
5
5
|
import { type ComponentType, lazy } from 'react';
|
|
6
6
|
|
|
7
|
-
export const
|
|
7
|
+
export const PipelineArticle: ComponentType<any> = lazy(() => import('./PipelineArticle'));
|
|
8
8
|
export const PipelineProperties: ComponentType<any> = lazy(() => import('./PipelineProperties'));
|
package/src/index.ts
CHANGED
package/src/plugin.ts
ADDED
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
//
|
|
4
4
|
|
|
5
5
|
import { type Database, Filter, JsonSchema, Query, Ref } from '@dxos/echo';
|
|
6
|
-
import { Mailbox } from '@dxos/plugin-inbox
|
|
7
|
-
import { Markdown } from '@dxos/plugin-markdown
|
|
6
|
+
import { Mailbox } from '@dxos/plugin-inbox';
|
|
7
|
+
import { Markdown } from '@dxos/plugin-markdown';
|
|
8
8
|
import { ViewModel } from '@dxos/schema';
|
|
9
9
|
import { Message, Organization, Person, Pipeline } from '@dxos/types';
|
|
10
10
|
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
// src/meta.ts
|
|
2
|
-
import { trim } from "@dxos/util";
|
|
3
|
-
var meta = {
|
|
4
|
-
id: "org.dxos.plugin.pipeline",
|
|
5
|
-
name: "Pipelines",
|
|
6
|
-
description: trim`
|
|
7
|
-
Pipelines for organizing tasks, milestones, and deliverables.
|
|
8
|
-
Track progress across multiple pipelines and coordinate team activities in a structured environment.
|
|
9
|
-
`,
|
|
10
|
-
icon: "ph--path--regular",
|
|
11
|
-
iconHue: "purple",
|
|
12
|
-
source: "https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-pipeline",
|
|
13
|
-
tags: [
|
|
14
|
-
"labs"
|
|
15
|
-
]
|
|
16
|
-
};
|
|
17
|
-
|
|
18
|
-
// src/PipelinePlugin.tsx
|
|
19
|
-
import * as Effect from "effect/Effect";
|
|
20
|
-
import * as Option from "effect/Option";
|
|
21
|
-
import { Plugin } from "@dxos/app-framework";
|
|
22
|
-
import { AppPlugin } from "@dxos/app-toolkit";
|
|
23
|
-
import { Annotation } from "@dxos/echo";
|
|
24
|
-
import { Operation } from "@dxos/operation";
|
|
25
|
-
import { SpaceOperation } from "@dxos/plugin-space/operations";
|
|
26
|
-
import { Pipeline as Pipeline2 } from "@dxos/types";
|
|
27
|
-
import { AppGraphBuilder, ReactSurface } from "#capabilities";
|
|
28
|
-
import { meta as meta3 } from "#meta";
|
|
29
|
-
|
|
30
|
-
// src/translations.ts
|
|
31
|
-
import { Pipeline } from "@dxos/types";
|
|
32
|
-
import { meta as meta2 } from "#meta";
|
|
33
|
-
var translations = [
|
|
34
|
-
{
|
|
35
|
-
"en-US": {
|
|
36
|
-
[Pipeline.Pipeline.typename]: {
|
|
37
|
-
"typename.label": "Pipeline",
|
|
38
|
-
"typename.label_zero": "Pipelines",
|
|
39
|
-
"typename.label_one": "Pipeline",
|
|
40
|
-
"typename.label_other": "Pipelines",
|
|
41
|
-
"object-name.placeholder": "New pipeline",
|
|
42
|
-
"add-object.label": "Add pipeline",
|
|
43
|
-
"rename-object.label": "Rename pipeline",
|
|
44
|
-
"delete-object.label": "Delete pipeline",
|
|
45
|
-
"object-deleted.label": "Pipeline deleted"
|
|
46
|
-
},
|
|
47
|
-
[meta2.id]: {
|
|
48
|
-
"plugin.name": "Pipelines",
|
|
49
|
-
"add-column.label": "Add column",
|
|
50
|
-
"add-card.label": "Add object",
|
|
51
|
-
"untitled-view.title": "New view",
|
|
52
|
-
"enumerating-tab.label": "List",
|
|
53
|
-
"editing-tab.label": "Edit",
|
|
54
|
-
"views.label": "Views",
|
|
55
|
-
"pipeline-invocations.label": "Invocations",
|
|
56
|
-
"pipeline-automation.label": "Automations",
|
|
57
|
-
"toggle-expand.label": "Toggle expand",
|
|
58
|
-
"delete-view.label": "Delete view",
|
|
59
|
-
"add-view.label": "Add view"
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
];
|
|
64
|
-
|
|
65
|
-
// src/PipelinePlugin.tsx
|
|
66
|
-
var PipelinePlugin = Plugin.define(meta3).pipe(AppPlugin.addAppGraphModule({
|
|
67
|
-
activate: AppGraphBuilder
|
|
68
|
-
}), AppPlugin.addMetadataModule({
|
|
69
|
-
metadata: {
|
|
70
|
-
id: Pipeline2.Pipeline.typename,
|
|
71
|
-
metadata: {
|
|
72
|
-
icon: Annotation.IconAnnotation.get(Pipeline2.Pipeline).pipe(Option.getOrThrow).icon,
|
|
73
|
-
iconHue: Annotation.IconAnnotation.get(Pipeline2.Pipeline).pipe(Option.getOrThrow).hue ?? "white",
|
|
74
|
-
createObject: (props, options) => Effect.gen(function* () {
|
|
75
|
-
const object = Pipeline2.make(props);
|
|
76
|
-
return yield* Operation.invoke(SpaceOperation.AddObject, {
|
|
77
|
-
object,
|
|
78
|
-
target: options.target,
|
|
79
|
-
hidden: true,
|
|
80
|
-
targetNodeId: options.targetNodeId
|
|
81
|
-
});
|
|
82
|
-
})
|
|
83
|
-
}
|
|
84
|
-
}
|
|
85
|
-
}), AppPlugin.addSchemaModule({
|
|
86
|
-
schema: [
|
|
87
|
-
Pipeline2.Pipeline
|
|
88
|
-
]
|
|
89
|
-
}), AppPlugin.addSurfaceModule({
|
|
90
|
-
activate: ReactSurface
|
|
91
|
-
}), AppPlugin.addTranslationsModule({
|
|
92
|
-
translations
|
|
93
|
-
}), Plugin.make);
|
|
94
|
-
export {
|
|
95
|
-
PipelinePlugin,
|
|
96
|
-
meta
|
|
97
|
-
};
|
|
98
|
-
//# sourceMappingURL=index.mjs.map
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/meta.ts", "../../../src/PipelinePlugin.tsx", "../../../src/translations.ts"],
|
|
4
|
-
"sourcesContent": ["//\n// Copyright 2023 DXOS.org\n//\n\nimport { type Plugin } from '@dxos/app-framework';\nimport { trim } from '@dxos/util';\n\nexport const meta: Plugin.Meta = {\n id: 'org.dxos.plugin.pipeline',\n name: 'Pipelines',\n description: trim`\n Pipelines for organizing tasks, milestones, and deliverables.\n Track progress across multiple pipelines and coordinate team activities in a structured environment.\n `,\n icon: 'ph--path--regular',\n iconHue: 'purple',\n source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-pipeline',\n tags: ['labs'],\n};\n", "//\n// Copyright 2023 DXOS.org\n//\n\nimport * as Effect from 'effect/Effect';\nimport * as Option from 'effect/Option';\n\nimport { Plugin } from '@dxos/app-framework';\nimport { AppPlugin } from '@dxos/app-toolkit';\nimport { Annotation } from '@dxos/echo';\nimport { Operation } from '@dxos/operation';\nimport { SpaceOperation } from '@dxos/plugin-space/operations';\nimport { type CreateObject } from '@dxos/plugin-space/types';\nimport { Pipeline } from '@dxos/types';\n\nimport { AppGraphBuilder, ReactSurface } from '#capabilities';\nimport { meta } from '#meta';\n\nimport { translations } from './translations';\n\nexport const PipelinePlugin = Plugin.define(meta).pipe(\n AppPlugin.addAppGraphModule({ activate: AppGraphBuilder }),\n AppPlugin.addMetadataModule({\n metadata: {\n id: Pipeline.Pipeline.typename,\n metadata: {\n icon: Annotation.IconAnnotation.get(Pipeline.Pipeline).pipe(Option.getOrThrow).icon,\n iconHue: Annotation.IconAnnotation.get(Pipeline.Pipeline).pipe(Option.getOrThrow).hue ?? 'white',\n createObject: ((props, options) =>\n Effect.gen(function* () {\n const object = Pipeline.make(props);\n return yield* Operation.invoke(SpaceOperation.AddObject, {\n object,\n target: options.target,\n hidden: true,\n targetNodeId: options.targetNodeId,\n });\n })) satisfies CreateObject,\n },\n },\n }),\n\n AppPlugin.addSchemaModule({ schema: [Pipeline.Pipeline] }),\n AppPlugin.addSurfaceModule({ activate: ReactSurface }),\n AppPlugin.addTranslationsModule({ translations }),\n Plugin.make,\n);\n", "import { type Resource } from '@dxos/react-ui';\nimport { Pipeline } from '@dxos/types';\n//\n// Copyright 2023 DXOS.org\n//\n\nimport { meta } from '#meta';\n\nexport const translations = [\n {\n 'en-US': {\n [Pipeline.Pipeline.typename]: {\n 'typename.label': 'Pipeline',\n 'typename.label_zero': 'Pipelines',\n 'typename.label_one': 'Pipeline',\n 'typename.label_other': 'Pipelines',\n 'object-name.placeholder': 'New pipeline',\n 'add-object.label': 'Add pipeline',\n 'rename-object.label': 'Rename pipeline',\n 'delete-object.label': 'Delete pipeline',\n 'object-deleted.label': 'Pipeline deleted',\n },\n [meta.id]: {\n 'plugin.name': 'Pipelines',\n 'add-column.label': 'Add column',\n 'add-card.label': 'Add object',\n 'untitled-view.title': 'New view',\n 'enumerating-tab.label': 'List',\n 'editing-tab.label': 'Edit',\n 'views.label': 'Views',\n 'pipeline-invocations.label': 'Invocations',\n 'pipeline-automation.label': 'Automations',\n 'toggle-expand.label': 'Toggle expand',\n 'delete-view.label': 'Delete view',\n 'add-view.label': 'Add view',\n },\n },\n },\n] as const satisfies Resource[];\n"],
|
|
5
|
-
"mappings": ";AAKA,SAASA,YAAY;AAEd,IAAMC,OAAoB;EAC/BC,IAAI;EACJC,MAAM;EACNC,aAAaC;;;;EAIbC,MAAM;EACNC,SAAS;EACTC,QAAQ;EACRC,MAAM;IAAC;;AACT;;;ACdA,YAAYC,YAAY;AACxB,YAAYC,YAAY;AAExB,SAASC,cAAc;AACvB,SAASC,iBAAiB;AAC1B,SAASC,kBAAkB;AAC3B,SAASC,iBAAiB;AAC1B,SAASC,sBAAsB;AAE/B,SAASC,YAAAA,iBAAgB;AAEzB,SAASC,iBAAiBC,oBAAoB;AAC9C,SAASC,QAAAA,aAAY;;;ACfrB,SAASC,gBAAgB;AAKzB,SAASC,QAAAA,aAAY;AAEd,IAAMC,eAAe;EAC1B;IACE,SAAS;MACP,CAACC,SAASA,SAASC,QAAQ,GAAG;QAC5B,kBAAkB;QAClB,uBAAuB;QACvB,sBAAsB;QACtB,wBAAwB;QACxB,2BAA2B;QAC3B,oBAAoB;QACpB,uBAAuB;QACvB,uBAAuB;QACvB,wBAAwB;MAC1B;MACA,CAACC,MAAKC,EAAE,GAAG;QACT,eAAe;QACf,oBAAoB;QACpB,kBAAkB;QAClB,uBAAuB;QACvB,yBAAyB;QACzB,qBAAqB;QACrB,eAAe;QACf,8BAA8B;QAC9B,6BAA6B;QAC7B,uBAAuB;QACvB,qBAAqB;QACrB,kBAAkB;MACpB;IACF;EACF;;;;ADjBK,IAAMC,iBAAiBC,OAAOC,OAAOC,KAAAA,EAAMC,KAChDC,UAAUC,kBAAkB;EAAEC,UAAUC;AAAgB,CAAA,GACxDH,UAAUI,kBAAkB;EAC1BC,UAAU;IACRC,IAAIC,UAASA,SAASC;IACtBH,UAAU;MACRI,MAAMC,WAAWC,eAAeC,IAAIL,UAASA,QAAQ,EAAER,KAAYc,iBAAU,EAAEJ;MAC/EK,SAASJ,WAAWC,eAAeC,IAAIL,UAASA,QAAQ,EAAER,KAAYc,iBAAU,EAAEE,OAAO;MACzFC,cAAe,CAACC,OAAOC,YACdC,WAAI,aAAA;AACT,cAAMC,SAASb,UAASc,KAAKJ,KAAAA;AAC7B,eAAO,OAAOK,UAAUC,OAAOC,eAAeC,WAAW;UACvDL;UACAM,QAAQR,QAAQQ;UAChBC,QAAQ;UACRC,cAAcV,QAAQU;QACxB,CAAA;MACF,CAAA;IACJ;EACF;AACF,CAAA,GAEA5B,UAAU6B,gBAAgB;EAAEC,QAAQ;IAACvB,UAASA;;AAAU,CAAA,GACxDP,UAAU+B,iBAAiB;EAAE7B,UAAU8B;AAAa,CAAA,GACpDhC,UAAUiC,sBAAsB;EAAEC;AAAa,CAAA,GAC/CtC,OAAOyB,IAAI;",
|
|
6
|
-
"names": ["trim", "meta", "id", "name", "description", "trim", "icon", "iconHue", "source", "tags", "Effect", "Option", "Plugin", "AppPlugin", "Annotation", "Operation", "SpaceOperation", "Pipeline", "AppGraphBuilder", "ReactSurface", "meta", "Pipeline", "meta", "translations", "Pipeline", "typename", "meta", "id", "PipelinePlugin", "Plugin", "define", "meta", "pipe", "AppPlugin", "addAppGraphModule", "activate", "AppGraphBuilder", "addMetadataModule", "metadata", "id", "Pipeline", "typename", "icon", "Annotation", "IconAnnotation", "get", "getOrThrow", "iconHue", "hue", "createObject", "props", "options", "gen", "object", "make", "Operation", "invoke", "SpaceOperation", "AddObject", "target", "hidden", "targetNodeId", "addSchemaModule", "schema", "addSurfaceModule", "ReactSurface", "addTranslationsModule", "translations"]
|
|
7
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"inputs":{"src/meta.ts":{"bytes":1914,"imports":[{"path":"@dxos/util","kind":"import-statement","external":true}],"format":"esm"},"src/translations.ts":{"bytes":4092,"imports":[{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"format":"esm"},"src/PipelinePlugin.tsx":{"bytes":6290,"imports":[{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"src/translations.ts","kind":"import-statement","original":"./translations"}],"format":"esm"},"src/index.ts":{"bytes":557,"imports":[{"path":"src/meta.ts","kind":"import-statement","original":"./meta"},{"path":"src/PipelinePlugin.tsx","kind":"import-statement","original":"./PipelinePlugin"}],"format":"esm"},"src/types/index.ts":{"bytes":377,"imports":[],"format":"esm"}},"outputs":{"dist/lib/browser/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":5977},"dist/lib/browser/index.mjs":{"imports":[{"path":"@dxos/util","kind":"import-statement","external":true},{"path":"effect/Effect","kind":"import-statement","external":true},{"path":"effect/Option","kind":"import-statement","external":true},{"path":"@dxos/app-framework","kind":"import-statement","external":true},{"path":"@dxos/app-toolkit","kind":"import-statement","external":true},{"path":"@dxos/echo","kind":"import-statement","external":true},{"path":"@dxos/operation","kind":"import-statement","external":true},{"path":"@dxos/plugin-space/operations","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#capabilities","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true},{"path":"@dxos/types","kind":"import-statement","external":true},{"path":"#meta","kind":"import-statement","external":true}],"exports":["PipelinePlugin","meta"],"entryPoint":"src/index.ts","inputs":{"src/meta.ts":{"bytesInOutput":463},"src/index.ts":{"bytesInOutput":0},"src/PipelinePlugin.tsx":{"bytesInOutput":1414},"src/translations.ts":{"bytesInOutput":1127}},"bytes":3169},"dist/lib/browser/types/index.mjs.map":{"imports":[],"exports":[],"inputs":{},"bytes":93},"dist/lib/browser/types/index.mjs":{"imports":[],"exports":[],"entryPoint":"src/types/index.ts","inputs":{"src/types/index.ts":{"bytesInOutput":0}},"bytes":35}}}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { type AppSurface } from '@dxos/app-toolkit/ui';
|
|
3
|
-
import { type Pipeline } from '@dxos/types';
|
|
4
|
-
export type PipelineContainerProps = AppSurface.ObjectArticleProps<Pipeline.Pipeline>;
|
|
5
|
-
export declare const PipelineContainer: ({ role, subject: pipeline, attendableId }: PipelineContainerProps) => React.JSX.Element;
|
|
6
|
-
//# sourceMappingURL=PipelineContainer.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PipelineContainer.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PipelineContainer/PipelineContainer.tsx"],"names":[],"mappings":"AAIA,OAAO,KAAiC,MAAM,OAAO,CAAC;AAWtD,OAAO,EAAE,KAAK,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAMvD,OAAO,EAAE,KAAK,QAAQ,EAAE,MAAM,aAAa,CAAC;AAO5C,MAAM,MAAM,sBAAsB,GAAG,UAAU,CAAC,kBAAkB,CAAC,QAAQ,CAAC,QAAQ,CAAC,CAAC;AAEtF,eAAO,MAAM,iBAAiB,GAAI,2CAA2C,sBAAsB,sBA4BlG,CAAC"}
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
import { type StoryObj } from '@storybook/react-vite';
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import { Pipeline } from '@dxos/types';
|
|
4
|
-
declare const meta: {
|
|
5
|
-
title: string;
|
|
6
|
-
render: () => React.JSX.Element;
|
|
7
|
-
decorators: import("@storybook/react").Decorator[];
|
|
8
|
-
parameters: {
|
|
9
|
-
layout: string;
|
|
10
|
-
translations: ({
|
|
11
|
-
readonly 'en-US': {
|
|
12
|
-
readonly [Pipeline.Pipeline.typename]: {
|
|
13
|
-
readonly 'typename.label': "Pipeline";
|
|
14
|
-
readonly 'typename.label_zero': "Pipelines";
|
|
15
|
-
readonly 'typename.label_one': "Pipeline";
|
|
16
|
-
readonly 'typename.label_other': "Pipelines";
|
|
17
|
-
readonly 'object-name.placeholder': "New pipeline";
|
|
18
|
-
readonly 'add-object.label': "Add pipeline";
|
|
19
|
-
readonly 'rename-object.label': "Rename pipeline";
|
|
20
|
-
readonly 'delete-object.label': "Delete pipeline";
|
|
21
|
-
readonly 'object-deleted.label': "Pipeline deleted";
|
|
22
|
-
};
|
|
23
|
-
readonly [meta.id]: {
|
|
24
|
-
readonly 'plugin.name': "Pipelines";
|
|
25
|
-
readonly 'add-column.label': "Add column";
|
|
26
|
-
readonly 'add-card.label': "Add object";
|
|
27
|
-
readonly 'untitled-view.title': "New view";
|
|
28
|
-
readonly 'enumerating-tab.label': "List";
|
|
29
|
-
readonly 'editing-tab.label': "Edit";
|
|
30
|
-
readonly 'views.label': "Views";
|
|
31
|
-
readonly 'pipeline-invocations.label': "Invocations";
|
|
32
|
-
readonly 'pipeline-automation.label': "Automations";
|
|
33
|
-
readonly 'toggle-expand.label': "Toggle expand";
|
|
34
|
-
readonly 'delete-view.label': "Delete view";
|
|
35
|
-
readonly 'add-view.label': "Add view";
|
|
36
|
-
};
|
|
37
|
-
};
|
|
38
|
-
} | {
|
|
39
|
-
readonly 'en-US': {
|
|
40
|
-
readonly "@dxos/react-ui-stack": {
|
|
41
|
-
readonly "resize.label": "Drag to resize";
|
|
42
|
-
readonly "drag-handle.label": "Drag to rearrange";
|
|
43
|
-
readonly "pin-start.label": "Pin to the left sidebar";
|
|
44
|
-
readonly "pin-end.label": "Pin to the right sidebar";
|
|
45
|
-
readonly "increment-start.label": "Move to the left";
|
|
46
|
-
readonly "increment-end.label": "Move to the right";
|
|
47
|
-
readonly "close.label": "Close";
|
|
48
|
-
readonly "minify.label": "Minify";
|
|
49
|
-
};
|
|
50
|
-
};
|
|
51
|
-
})[];
|
|
52
|
-
};
|
|
53
|
-
};
|
|
54
|
-
export default meta;
|
|
55
|
-
type Story = StoryObj<typeof meta>;
|
|
56
|
-
export declare const Default: Story;
|
|
57
|
-
//# sourceMappingURL=PipelineContainer.stories.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"PipelineContainer.stories.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PipelineContainer/PipelineContainer.stories.tsx"],"names":[],"mappings":"AAIA,OAAO,EAAa,KAAK,QAAQ,EAAE,MAAM,uBAAuB,CAAC;AAGjE,OAAO,KAAK,MAAM,OAAO,CAAC;AAkB1B,OAAO,EAAiC,QAAQ,EAAQ,MAAM,aAAa,CAAC;AAyB5E,QAAA,MAAM,IAAI;;;;;;;;yBA3CW,CAEpB,QAAQ,CAAC,QAAQ,CAAC,QAAQ,CAAC;;;;;;;;;;;yBAOmB,CAC1C,IAAI,CAAC,EAAE,CAAC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CA6M6B,CAAC;AAE3C,eAAe,IAAI,CAAC;AAEpB,KAAK,KAAK,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEnC,eAAO,MAAM,OAAO,EAAE,KAAU,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/containers/PipelineContainer/index.ts"],"names":[],"mappings":"AAIA,OAAO,EAAE,iBAAiB,IAAI,OAAO,EAAE,MAAM,qBAAqB,CAAC"}
|
|
File without changes
|
|
File without changes
|