@dxos/plugin-pipeline 0.8.4-main.7996785055 → 0.8.4-main.9be5663bfe

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.
Files changed (71) hide show
  1. package/dist/lib/browser/index.mjs +42 -34
  2. package/dist/lib/browser/index.mjs.map +4 -4
  3. package/dist/lib/browser/meta.json +1 -1
  4. package/dist/types/src/PipelinePlugin.d.ts.map +1 -1
  5. package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -0
  6. package/dist/types/src/capabilities/index.d.ts +3 -2
  7. package/dist/types/src/capabilities/index.d.ts.map +1 -1
  8. package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
  9. package/dist/types/src/components/PipelineComponent/PipelineColumn.d.ts.map +1 -1
  10. package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts +4 -20
  11. package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts.map +1 -1
  12. package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts +21 -21
  13. package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts.map +1 -1
  14. package/dist/types/src/containers/PipelineContainer/PipelineContainer.d.ts +2 -2
  15. package/dist/types/src/containers/PipelineContainer/PipelineContainer.d.ts.map +1 -1
  16. package/dist/types/src/containers/PipelineContainer/PipelineContainer.stories.d.ts +29 -29
  17. package/dist/types/src/containers/PipelineContainer/PipelineContainer.stories.d.ts.map +1 -1
  18. package/dist/types/src/containers/PipelineContainer/index.d.ts +1 -2
  19. package/dist/types/src/containers/PipelineContainer/index.d.ts.map +1 -1
  20. package/dist/types/src/containers/PipelineProperties/PipelineProperties.d.ts +11 -0
  21. package/dist/types/src/containers/PipelineProperties/PipelineProperties.d.ts.map +1 -0
  22. package/dist/types/src/containers/PipelineProperties/index.d.ts +2 -0
  23. package/dist/types/src/containers/PipelineProperties/index.d.ts.map +1 -0
  24. package/dist/types/src/containers/index.d.ts +1 -1
  25. package/dist/types/src/containers/index.d.ts.map +1 -1
  26. package/dist/types/src/hooks/usePipelineBoardModel.d.ts.map +1 -1
  27. package/dist/types/src/translations.d.ts +22 -22
  28. package/dist/types/src/translations.d.ts.map +1 -1
  29. package/dist/types/tsconfig.tsbuildinfo +1 -1
  30. package/package.json +49 -41
  31. package/src/PipelinePlugin.tsx +4 -3
  32. package/src/capabilities/app-graph-builder.ts +40 -0
  33. package/src/capabilities/index.ts +4 -2
  34. package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +13 -12
  35. package/src/components/PipelineComponent/PipelineColumn.tsx +4 -4
  36. package/src/components/PipelineComponent/PipelineComponent.stories.tsx +16 -16
  37. package/src/components/PipelineComponent/PipelineComponent.tsx +4 -4
  38. package/src/containers/PipelineContainer/PipelineContainer.stories.tsx +22 -23
  39. package/src/containers/PipelineContainer/PipelineContainer.tsx +6 -6
  40. package/src/containers/PipelineContainer/index.ts +1 -3
  41. package/src/containers/{PipelineObjectSettings/PipelineObjectSettings.tsx → PipelineProperties/PipelineProperties.tsx} +10 -11
  42. package/src/containers/PipelineProperties/index.ts +5 -0
  43. package/src/containers/index.ts +1 -1
  44. package/src/hooks/usePipelineBoardModel.ts +1 -1
  45. package/src/translations.ts +22 -22
  46. package/dist/lib/browser/PipelineContainer-LY2P4JPA.mjs +0 -345
  47. package/dist/lib/browser/PipelineContainer-LY2P4JPA.mjs.map +0 -7
  48. package/dist/lib/browser/PipelineObjectSettings-QFMIKJH5.mjs +0 -220
  49. package/dist/lib/browser/PipelineObjectSettings-QFMIKJH5.mjs.map +0 -7
  50. package/dist/lib/browser/app-graph-builder-QQKBLYFD.mjs +0 -56
  51. package/dist/lib/browser/app-graph-builder-QQKBLYFD.mjs.map +0 -7
  52. package/dist/lib/browser/chunk-3A235GUD.mjs +0 -21
  53. package/dist/lib/browser/chunk-3A235GUD.mjs.map +0 -7
  54. package/dist/lib/browser/react-surface-QVPKOGEI.mjs +0 -61
  55. package/dist/lib/browser/react-surface-QVPKOGEI.mjs.map +0 -7
  56. package/dist/types/src/capabilities/app-graph-builder/app-graph-builder.d.ts.map +0 -1
  57. package/dist/types/src/capabilities/app-graph-builder/index.d.ts +0 -3
  58. package/dist/types/src/capabilities/app-graph-builder/index.d.ts.map +0 -1
  59. package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
  60. package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
  61. package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
  62. package/dist/types/src/containers/PipelineObjectSettings/PipelineObjectSettings.d.ts +0 -11
  63. package/dist/types/src/containers/PipelineObjectSettings/PipelineObjectSettings.d.ts.map +0 -1
  64. package/dist/types/src/containers/PipelineObjectSettings/index.d.ts +0 -3
  65. package/dist/types/src/containers/PipelineObjectSettings/index.d.ts.map +0 -1
  66. package/src/capabilities/app-graph-builder/app-graph-builder.ts +0 -49
  67. package/src/capabilities/app-graph-builder/index.ts +0 -7
  68. package/src/capabilities/react-surface/index.ts +0 -7
  69. package/src/containers/PipelineObjectSettings/index.ts +0 -7
  70. /package/dist/types/src/capabilities/{app-graph-builder/app-graph-builder.d.ts → app-graph-builder.d.ts} +0 -0
  71. /package/dist/types/src/capabilities/{react-surface/react-surface.d.ts → react-surface.d.ts} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@dxos/plugin-pipeline",
3
- "version": "0.8.4-main.7996785055",
3
+ "version": "0.8.4-main.9be5663bfe",
4
4
  "description": "Pipeline plugin for Composer",
5
5
  "homepage": "https://dxos.org",
6
6
  "bugs": "https://github.com/dxos/dxos/issues",
@@ -12,6 +12,14 @@
12
12
  "author": "DXOS.org",
13
13
  "sideEffects": true,
14
14
  "type": "module",
15
+ "imports": {
16
+ "#capabilities": "./src/capabilities/index.ts",
17
+ "#components": "./src/components/index.ts",
18
+ "#containers": "./src/containers/index.ts",
19
+ "#hooks": "./src/hooks/index.ts",
20
+ "#meta": "./src/meta.ts",
21
+ "#types": "./src/types/index.ts"
22
+ },
15
23
  "exports": {
16
24
  ".": {
17
25
  "source": "./src/index.ts",
@@ -41,34 +49,34 @@
41
49
  "@radix-ui/react-context": "1.1.1",
42
50
  "@radix-ui/react-slot": "1.1.2",
43
51
  "effect": "3.20.0",
44
- "@dxos/app-framework": "0.8.4-main.7996785055",
45
- "@dxos/app-toolkit": "0.8.4-main.7996785055",
46
- "@dxos/assistant-toolkit": "0.8.4-main.7996785055",
47
- "@dxos/async": "0.8.4-main.7996785055",
48
- "@dxos/devtools": "0.8.4-main.7996785055",
49
- "@dxos/echo": "0.8.4-main.7996785055",
50
- "@dxos/functions": "0.8.4-main.7996785055",
51
- "@dxos/log": "0.8.4-main.7996785055",
52
- "@dxos/echo-query": "0.8.4-main.7996785055",
53
- "@dxos/plugin-client": "0.8.4-main.7996785055",
54
- "@dxos/echo-atom": "0.8.4-main.7996785055",
55
- "@dxos/operation": "0.8.4-main.7996785055",
56
- "@dxos/plugin-deck": "0.8.4-main.7996785055",
57
- "@dxos/plugin-graph": "0.8.4-main.7996785055",
58
- "@dxos/plugin-inbox": "0.8.4-main.7996785055",
59
- "@dxos/plugin-markdown": "0.8.4-main.7996785055",
60
- "@dxos/plugin-space": "0.8.4-main.7996785055",
61
- "@dxos/react-ui-attention": "0.8.4-main.7996785055",
62
- "@dxos/react-client": "0.8.4-main.7996785055",
63
- "@dxos/react-ui-components": "0.8.4-main.7996785055",
64
- "@dxos/react-ui-form": "0.8.4-main.7996785055",
65
- "@dxos/react-ui-list": "0.8.4-main.7996785055",
66
- "@dxos/react-ui-menu": "0.8.4-main.7996785055",
67
- "@dxos/react-ui-mosaic": "0.8.4-main.7996785055",
68
- "@dxos/react-ui-stack": "0.8.4-main.7996785055",
69
- "@dxos/schema": "0.8.4-main.7996785055",
70
- "@dxos/util": "0.8.4-main.7996785055",
71
- "@dxos/types": "0.8.4-main.7996785055"
52
+ "@dxos/app-framework": "0.8.4-main.9be5663bfe",
53
+ "@dxos/app-toolkit": "0.8.4-main.9be5663bfe",
54
+ "@dxos/assistant-toolkit": "0.8.4-main.9be5663bfe",
55
+ "@dxos/async": "0.8.4-main.9be5663bfe",
56
+ "@dxos/devtools": "0.8.4-main.9be5663bfe",
57
+ "@dxos/echo": "0.8.4-main.9be5663bfe",
58
+ "@dxos/echo-query": "0.8.4-main.9be5663bfe",
59
+ "@dxos/functions": "0.8.4-main.9be5663bfe",
60
+ "@dxos/echo-atom": "0.8.4-main.9be5663bfe",
61
+ "@dxos/log": "0.8.4-main.9be5663bfe",
62
+ "@dxos/operation": "0.8.4-main.9be5663bfe",
63
+ "@dxos/plugin-client": "0.8.4-main.9be5663bfe",
64
+ "@dxos/plugin-deck": "0.8.4-main.9be5663bfe",
65
+ "@dxos/plugin-graph": "0.8.4-main.9be5663bfe",
66
+ "@dxos/plugin-markdown": "0.8.4-main.9be5663bfe",
67
+ "@dxos/react-client": "0.8.4-main.9be5663bfe",
68
+ "@dxos/plugin-inbox": "0.8.4-main.9be5663bfe",
69
+ "@dxos/plugin-space": "0.8.4-main.9be5663bfe",
70
+ "@dxos/react-ui-attention": "0.8.4-main.9be5663bfe",
71
+ "@dxos/react-ui-form": "0.8.4-main.9be5663bfe",
72
+ "@dxos/react-ui-list": "0.8.4-main.9be5663bfe",
73
+ "@dxos/react-ui-components": "0.8.4-main.9be5663bfe",
74
+ "@dxos/react-ui-menu": "0.8.4-main.9be5663bfe",
75
+ "@dxos/react-ui-mosaic": "0.8.4-main.9be5663bfe",
76
+ "@dxos/schema": "0.8.4-main.9be5663bfe",
77
+ "@dxos/util": "0.8.4-main.9be5663bfe",
78
+ "@dxos/types": "0.8.4-main.9be5663bfe",
79
+ "@dxos/react-ui-stack": "0.8.4-main.9be5663bfe"
72
80
  },
73
81
  "devDependencies": {
74
82
  "@effect-atom/atom-react": "^0.5.0",
@@ -77,24 +85,24 @@
77
85
  "react": "~19.2.3",
78
86
  "react-dom": "~19.2.3",
79
87
  "vite": "^7.1.11",
80
- "@dxos/echo-db": "0.8.4-main.7996785055",
81
- "@dxos/plugin-attention": "0.8.4-main.7996785055",
82
- "@dxos/plugin-preview": "0.8.4-main.7996785055",
83
- "@dxos/plugin-theme": "0.8.4-main.7996785055",
84
- "@dxos/plugin-testing": "0.8.4-main.7996785055",
85
- "@dxos/react-ui": "0.8.4-main.7996785055",
86
- "@dxos/random": "0.8.4-main.7996785055",
87
- "@dxos/storybook-utils": "0.8.4-main.7996785055",
88
- "@dxos/plugin-inbox": "0.8.4-main.7996785055",
89
- "@dxos/ui-theme": "0.8.4-main.7996785055"
88
+ "@dxos/echo-db": "0.8.4-main.9be5663bfe",
89
+ "@dxos/plugin-inbox": "0.8.4-main.9be5663bfe",
90
+ "@dxos/plugin-preview": "0.8.4-main.9be5663bfe",
91
+ "@dxos/plugin-attention": "0.8.4-main.9be5663bfe",
92
+ "@dxos/plugin-testing": "0.8.4-main.9be5663bfe",
93
+ "@dxos/random": "0.8.4-main.9be5663bfe",
94
+ "@dxos/react-ui": "0.8.4-main.9be5663bfe",
95
+ "@dxos/plugin-theme": "0.8.4-main.9be5663bfe",
96
+ "@dxos/storybook-utils": "0.8.4-main.9be5663bfe",
97
+ "@dxos/ui-theme": "0.8.4-main.9be5663bfe"
90
98
  },
91
99
  "peerDependencies": {
92
100
  "@effect-atom/atom-react": "^0.5.0",
93
101
  "effect": "3.20.0",
94
102
  "react": "~19.2.3",
95
103
  "react-dom": "~19.2.3",
96
- "@dxos/react-ui": "0.8.4-main.7996785055",
97
- "@dxos/ui-theme": "0.8.4-main.7996785055"
104
+ "@dxos/react-ui": "0.8.4-main.9be5663bfe",
105
+ "@dxos/ui-theme": "0.8.4-main.9be5663bfe"
98
106
  },
99
107
  "publishConfig": {
100
108
  "access": "public"
@@ -9,12 +9,13 @@ import { Plugin } from '@dxos/app-framework';
9
9
  import { AppPlugin } from '@dxos/app-toolkit';
10
10
  import { Annotation } from '@dxos/echo';
11
11
  import { Operation } from '@dxos/operation';
12
- import { type CreateObject } from '@dxos/plugin-space/types';
13
12
  import { SpaceOperation } from '@dxos/plugin-space/operations';
13
+ import { type CreateObject } from '@dxos/plugin-space/types';
14
14
  import { Pipeline } from '@dxos/types';
15
15
 
16
- import { AppGraphBuilder, ReactSurface } from './capabilities';
17
- import { meta } from './meta';
16
+ import { AppGraphBuilder, ReactSurface } from '#capabilities';
17
+ import { meta } from '#meta';
18
+
18
19
  import { translations } from './translations';
19
20
 
20
21
  export const PipelinePlugin = Plugin.define(meta).pipe(
@@ -0,0 +1,40 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ import * as Effect from 'effect/Effect';
6
+
7
+ import { Capability } from '@dxos/app-framework';
8
+ import { AppCapabilities, AppNode } from '@dxos/app-toolkit';
9
+ import { GraphBuilder } from '@dxos/plugin-graph';
10
+ import { Pipeline } from '@dxos/types';
11
+
12
+ import { meta } from '#meta';
13
+
14
+ export default Capability.makeModule(
15
+ Effect.fnUntraced(function* () {
16
+ const extensions = yield* Effect.all([
17
+ GraphBuilder.createTypeExtension({
18
+ id: 'triggers',
19
+ type: Pipeline.Pipeline,
20
+ connector: () =>
21
+ Effect.succeed([
22
+ AppNode.makeCompanion({
23
+ id: 'invocations',
24
+ label: ['pipeline-invocations.label', { ns: meta.id }],
25
+ icon: 'ph--clock-countdown--regular',
26
+ data: 'invocations',
27
+ }),
28
+ AppNode.makeCompanion({
29
+ id: 'automation',
30
+ label: ['pipeline-automation.label', { ns: meta.id }],
31
+ icon: 'ph--lightning--regular',
32
+ data: 'automation',
33
+ }),
34
+ ]),
35
+ }),
36
+ ]);
37
+
38
+ return Capability.contributes(AppCapabilities.AppGraphBuilder, extensions);
39
+ }),
40
+ );
@@ -2,5 +2,7 @@
2
2
  // Copyright 2025 DXOS.org
3
3
  //
4
4
 
5
- export * from './app-graph-builder';
6
- export * from './react-surface';
5
+ import { Capability } from '@dxos/app-framework';
6
+
7
+ export const AppGraphBuilder = Capability.lazy('AppGraphBuilder', () => import('./app-graph-builder'));
8
+ export const ReactSurface = Capability.lazy('ReactSurface', () => import('./react-surface'));
@@ -7,31 +7,32 @@ import React from 'react';
7
7
 
8
8
  import { Capabilities, Capability } from '@dxos/app-framework';
9
9
  import { Surface } from '@dxos/app-framework/ui';
10
+ import { AppSurface } from '@dxos/app-toolkit/ui';
10
11
  import { InvocationTraceContainer } from '@dxos/devtools';
11
12
  import { Obj } from '@dxos/echo';
12
13
  import { Panel } from '@dxos/react-ui';
13
14
  import { Pipeline } from '@dxos/types';
14
15
 
15
- import { PipelineContainer, PipelineObjectSettings } from '../../containers';
16
- import { meta } from '../../meta';
16
+ import { PipelineContainer, PipelineProperties } from '#containers';
17
17
 
18
18
  export default Capability.makeModule(() =>
19
19
  Effect.succeed(
20
20
  Capability.contributes(Capabilities.ReactSurface, [
21
21
  Surface.create({
22
- id: meta.id,
22
+ id: 'root',
23
23
  role: 'article',
24
- filter: (data): data is { attendableId: string; subject: Pipeline.Pipeline } =>
25
- typeof data.attendableId === 'string' && Obj.instanceOf(Pipeline.Pipeline, data.subject),
24
+ filter: AppSurface.objectArticle(Pipeline.Pipeline),
26
25
  component: ({ data, role }) => (
27
26
  <PipelineContainer role={role} subject={data.subject} attendableId={data.attendableId} />
28
27
  ),
29
28
  }),
30
29
  Surface.create({
31
- id: `${meta.id}.companion.invocations`,
30
+ id: 'companion.invocations',
32
31
  role: 'article',
33
- filter: (data): data is { companionTo: Pipeline.Pipeline } =>
34
- Obj.instanceOf(Pipeline.Pipeline, data.companionTo) && data.subject === 'invocations',
32
+ filter: AppSurface.and(
33
+ AppSurface.literalArticle('invocations'),
34
+ AppSurface.companionArticle(Pipeline.Pipeline),
35
+ ),
35
36
  component: ({ data, role }) => {
36
37
  const db = Obj.getDatabase(data.companionTo);
37
38
  // TODO(wittjosiah): Filter the invocations to those relevant to the project.
@@ -45,10 +46,10 @@ export default Capability.makeModule(() =>
45
46
  },
46
47
  }),
47
48
  Surface.create({
48
- id: `${meta.id}.object-settings`,
49
- role: 'object-settings',
50
- filter: (data): data is { subject: Pipeline.Pipeline } => Obj.instanceOf(Pipeline.Pipeline, data.subject),
51
- component: ({ data }) => <PipelineObjectSettings pipeline={data.subject} />,
49
+ id: 'object-properties',
50
+ role: 'object-properties',
51
+ filter: AppSurface.objectProperties(Pipeline.Pipeline),
52
+ component: ({ data }) => <PipelineProperties pipeline={data.subject} />,
52
53
  }),
53
54
  ]),
54
55
  ),
@@ -8,19 +8,19 @@ import * as Option from 'effect/Option';
8
8
  import type * as Schema from 'effect/Schema';
9
9
  import React, { forwardRef, useMemo, useRef, useState } from 'react';
10
10
 
11
+ import { resolveSchemaWithRegistry } from '@dxos/app-toolkit/query';
11
12
  import { Annotation, JsonSchema, Obj, Query, Type } from '@dxos/echo';
12
- import { resolveSchemaWithRegistry } from '@dxos/plugin-space';
13
13
  import { Filter, getSpace, useObject } from '@dxos/react-client/echo';
14
14
  import { Panel, Toolbar, useAsyncEffect, useTranslation } from '@dxos/react-ui';
15
15
  import { Card } from '@dxos/react-ui';
16
+ import { Menu } from '@dxos/react-ui-menu';
16
17
  import { Board, Focus, Mosaic, type MosaicTileProps } from '@dxos/react-ui-mosaic';
17
18
  import { ProjectionModel, createEchoChangeCallback } from '@dxos/schema';
18
19
  import { type Pipeline } from '@dxos/types';
19
20
 
20
- import { meta } from '../../meta';
21
+ import { meta } from '#meta';
21
22
 
22
23
  import { type ItemProps, usePipeline } from './PipelineComponent';
23
- import { Menu } from '@dxos/react-ui-menu';
24
24
 
25
25
  //
26
26
  // PipelineColumn
@@ -92,7 +92,7 @@ export const PipelineColumn = ({ data: column, location, classNames, debug }: Pi
92
92
  <Panel.Toolbar asChild>
93
93
  <Board.Column.Header
94
94
  classNames='_opacity-10'
95
- label={column.name || t('untitled view title')}
95
+ label={column.name || t('untitled-view.title')}
96
96
  dragHandleRef={dragHandleRef}
97
97
  />
98
98
  </Panel.Toolbar>
@@ -9,20 +9,20 @@ import React, { useCallback, useContext, useEffect, useMemo } from 'react';
9
9
  import { Filter, Ref } from '@dxos/client/echo';
10
10
  import { JsonSchema, Obj, Query } from '@dxos/echo';
11
11
  import { Collection, View } from '@dxos/echo';
12
- import { faker } from '@dxos/random';
12
+ import { random } from '@dxos/random';
13
13
  import { useQuery } from '@dxos/react-client/echo';
14
14
  import { useClientStory, withClientProvider } from '@dxos/react-client/testing';
15
- import { withLayout, withTheme } from '@dxos/react-ui/testing';
16
15
  import { Form, omitId } from '@dxos/react-ui-form';
17
16
  import { withMosaic } from '@dxos/react-ui-mosaic/testing';
17
+ import { withLayout, withTheme } from '@dxos/react-ui/testing';
18
18
  import { ViewModel } from '@dxos/schema';
19
19
  import { createObjectFactory } from '@dxos/schema/testing';
20
20
  import { withRegistry } from '@dxos/storybook-utils';
21
21
  import { Person, Pipeline } from '@dxos/types';
22
22
 
23
- import { usePipelineBoardModel } from '../../hooks';
24
- import { translations } from '../../translations';
23
+ import { usePipelineBoardModel } from '#hooks';
25
24
 
25
+ import { translations } from '../../translations';
26
26
  import { type ItemProps, PipelineComponent } from './PipelineComponent';
27
27
 
28
28
  const StorybookProjectItem = ({ item, projectionModel }: ItemProps) => {
@@ -64,10 +64,10 @@ const DefaultStory = () => {
64
64
  fields: ['fullName'],
65
65
  });
66
66
 
67
- Obj.change(pipeline, (obj) => {
68
- obj.columns.push({
67
+ Obj.change(pipeline, (pipeline) => {
68
+ pipeline.columns.push({
69
69
  name: 'New Contacts',
70
- view: Ref.make(view) as (typeof obj.columns)[number]['view'],
70
+ view: Ref.make(view) as (typeof pipeline.columns)[number]['view'],
71
71
  order: [],
72
72
  });
73
73
  });
@@ -108,10 +108,10 @@ const MutationsStory = () => {
108
108
  fields: ['fullName'],
109
109
  });
110
110
 
111
- Obj.change(pipeline, (obj) => {
112
- obj.columns.push({
111
+ Obj.change(pipeline, (pipeline) => {
112
+ pipeline.columns.push({
113
113
  name: 'New Contacts',
114
- view: Ref.make(view) as (typeof obj.columns)[number]['view'],
114
+ view: Ref.make(view) as (typeof pipeline.columns)[number]['view'],
115
115
  order: [],
116
116
  });
117
117
  });
@@ -125,19 +125,19 @@ const MutationsStory = () => {
125
125
  }
126
126
 
127
127
  const interval = setInterval(() => {
128
- const factory = createObjectFactory(space.db, faker as any);
128
+ const factory = createObjectFactory(space.db, random as any);
129
129
  const p = Math.random();
130
130
 
131
131
  if (p < 0.4) {
132
132
  // Append to the name
133
- const contactToAdjust = faker.helpers.arrayElement(contacts);
134
- Obj.change(contactToAdjust, (obj) => {
135
- obj.fullName = (obj.fullName ?? '') + ' X';
133
+ const contactToAdjust = random.helpers.arrayElement(contacts);
134
+ Obj.change(contactToAdjust, (contactToAdjust) => {
135
+ contactToAdjust.fullName = (contactToAdjust.fullName ?? '') + ' X';
136
136
  });
137
137
  return;
138
138
  } else if (p < 0.7 && contacts.length > 1) {
139
139
  // Remove a contact (30% chance, but only if we have more than 1)
140
- const contactToRemove = faker.helpers.arrayElement(contacts);
140
+ const contactToRemove = random.helpers.arrayElement(contacts);
141
141
  space.db.remove(contactToRemove);
142
142
  } else {
143
143
  // Add a new contact (30% chance)
@@ -195,7 +195,7 @@ const meta = {
195
195
  );
196
196
 
197
197
  // Generate random contacts.
198
- const factory = createObjectFactory(space.db, faker as any);
198
+ const factory = createObjectFactory(space.db, random as any);
199
199
  await factory([{ type: Person.Person, count: 12 }]);
200
200
  },
201
201
  }),
@@ -14,7 +14,7 @@ import { type ProjectionModel } from '@dxos/schema';
14
14
  import { type Pipeline } from '@dxos/types';
15
15
  import { composable, composableProps, slottable } from '@dxos/ui-theme';
16
16
 
17
- import { meta } from '../../meta';
17
+ import { meta } from '#meta';
18
18
 
19
19
  import { PipelineColumn } from './PipelineColumn';
20
20
 
@@ -66,7 +66,7 @@ const PipelineContent = slottable<HTMLDivElement, PipelineContentProps>(
66
66
  const Comp = asChild ? Slot : 'div';
67
67
  return (
68
68
  <Board.Root model={model}>
69
- <Comp {...composableProps(props, { role: 'none' })} ref={forwardedRef}>
69
+ <Comp {...composableProps(props)} ref={forwardedRef}>
70
70
  {children}
71
71
  </Comp>
72
72
  </Board.Root>
@@ -97,7 +97,7 @@ const PipelineColumns = composable<HTMLDivElement, PipelineColumnsProps>(({ pipe
97
97
  get: (data) => data as unknown as Obj.Unknown,
98
98
  make: (object) => object as unknown as Pipeline.Column,
99
99
  canDrop: ({ source }) => model.isColumn(source.data),
100
- onChange: (mutate) => Obj.change(pipeline, (obj) => mutate(obj.columns)),
100
+ onChange: (mutate) => Obj.change(pipeline, (pipeline) => mutate(pipeline.columns)),
101
101
  });
102
102
 
103
103
  return <Board.Content {...props} id='pipeline' eventHandler={eventHandler} Tile={PipelineColumn} />;
@@ -117,7 +117,7 @@ export const PipelineToolbar = composable<HTMLDivElement, ToolbarRootProps>(({ c
117
117
 
118
118
  return (
119
119
  <Toolbar.Root {...composableProps(props)} ref={forwardedRef}>
120
- <Toolbar.IconButton icon='ph--plus--regular' iconOnly label={t('add column label')} onClick={onAddColumn} />
120
+ <Toolbar.IconButton icon='ph--plus--regular' iconOnly label={t('add-column.label')} onClick={onAddColumn} />
121
121
  </Toolbar.Root>
122
122
  );
123
123
  });
@@ -17,20 +17,19 @@ import { initializeIdentity } from '@dxos/plugin-client/testing';
17
17
  import { InboxPlugin } from '@dxos/plugin-inbox';
18
18
  import { PreviewPlugin } from '@dxos/plugin-preview';
19
19
  import { StorybookPlugin, corePlugins } from '@dxos/plugin-testing';
20
- import { faker } from '@dxos/random';
20
+ import { random } from '@dxos/random';
21
21
  import { useDatabase, useQuery } from '@dxos/react-client/echo';
22
- import { withLayout } from '@dxos/react-ui/testing';
23
22
  import { translations as stackTranslations } from '@dxos/react-ui-stack';
23
+ import { withLayout } from '@dxos/react-ui/testing';
24
24
  import { ViewModel } from '@dxos/schema';
25
25
  import { createObjectFactory } from '@dxos/schema/testing';
26
26
  import { Message, Organization, Person, Pipeline, Task } from '@dxos/types';
27
27
 
28
28
  import { translations } from '../../translations';
29
- import PipelineObjectSettings from '../PipelineObjectSettings';
30
-
29
+ import PipelineProperties from '../PipelineProperties';
31
30
  import { PipelineContainer } from './PipelineContainer';
32
31
 
33
- faker.seed(0);
32
+ random.seed(0);
34
33
 
35
34
  const DefaultStory = () => {
36
35
  const db = useDatabase();
@@ -44,7 +43,7 @@ const DefaultStory = () => {
44
43
  return (
45
44
  <div className='grow grid grid-cols-[1fr_350px] overflow-hidden h-full w-full'>
46
45
  <PipelineContainer role='article' subject={pipeline} attendableId='test' />
47
- <PipelineObjectSettings pipeline={pipeline} classNames='border-s border-separator' />
46
+ <PipelineProperties pipeline={pipeline} classNames='border-s border-separator' />
48
47
  </div>
49
48
  );
50
49
  };
@@ -105,9 +104,9 @@ const meta = {
105
104
  const messageFeed = yield* Database.add(Feed.make({ name: 'Messages' }));
106
105
  const messages = Array.from({ length: 20 }).map(() =>
107
106
  Obj.make(Message.Message, {
108
- created: faker.date.recent().toISOString(),
107
+ created: random.date.recent().toISOString(),
109
108
  sender: { role: 'user' },
110
- blocks: [{ _tag: 'text' as const, text: faker.lorem.sentences(2) }],
109
+ blocks: [{ _tag: 'text' as const, text: random.lorem.sentences(2) }],
111
110
  }),
112
111
  );
113
112
  yield* Feed.append(messageFeed, messages);
@@ -124,9 +123,9 @@ const meta = {
124
123
  const taskFeed = yield* Database.add(Feed.make({ name: 'Tasks' }));
125
124
  const feedTasks = Array.from({ length: 10 }).map(() =>
126
125
  Obj.make(Task.Task, {
127
- title: faker.lorem.sentence(),
128
- status: faker.helpers.arrayElement(['todo', 'in-progress', 'done']) as any,
129
- priority: faker.helpers.arrayElement(['low', 'medium', 'high']) as any,
126
+ title: random.lorem.sentence(),
127
+ status: random.helpers.arrayElement(['todo', 'in-progress', 'done']) as any,
128
+ priority: random.helpers.arrayElement(['low', 'medium', 'high']) as any,
130
129
  }),
131
130
  );
132
131
  yield* Feed.append(taskFeed, feedTasks);
@@ -168,12 +167,12 @@ const meta = {
168
167
  yield* Database.add(
169
168
  Obj.make(Organization.Organization, {
170
169
  [Obj.Meta]: {
171
- tags: faker.datatype.boolean() ? [tagDxn] : [],
170
+ tags: random.datatype.boolean() ? [tagDxn] : [],
172
171
  },
173
- name: faker.company.name(),
174
- website: faker.internet.url(),
175
- description: faker.lorem.paragraph(),
176
- image: faker.image.url(),
172
+ name: random.company.name(),
173
+ website: random.internet.url(),
174
+ description: random.lorem.paragraph(),
175
+ image: random.image.url(),
177
176
  }),
178
177
  );
179
178
  }
@@ -183,25 +182,25 @@ const meta = {
183
182
  yield* Database.add(
184
183
  Obj.make(Task.Task, {
185
184
  [Obj.Meta]: {
186
- tags: faker.datatype.boolean() ? [tagDxn] : [],
185
+ tags: random.datatype.boolean() ? [tagDxn] : [],
187
186
  },
188
- title: faker.lorem.sentence(),
189
- status: faker.helpers.arrayElement(['todo', 'in-progress', 'done']) as any,
190
- priority: faker.helpers.arrayElement(['low', 'medium', 'high']) as any,
187
+ title: random.lorem.sentence(),
188
+ status: random.helpers.arrayElement(['todo', 'in-progress', 'done']) as any,
189
+ priority: random.helpers.arrayElement(['low', 'medium', 'high']) as any,
191
190
  }),
192
191
  );
193
192
  }
194
193
 
195
194
  // Generate sample Contacts.
196
- const factory = createObjectFactory(personalSpace.db, faker as any);
195
+ const factory = createObjectFactory(personalSpace.db, random as any);
197
196
  yield* Effect.promise(() => factory([{ type: Person.Person, count: 12 }]));
198
197
 
199
198
  // Generate sample Projects.
200
199
  for (const _ of Array.from({ length: 20 })) {
201
200
  yield* Database.add(
202
201
  Pipeline.make({
203
- name: faker.commerce.productName(),
204
- description: faker.lorem.sentence(),
202
+ name: random.commerce.productName(),
203
+ description: random.lorem.sentence(),
205
204
  }),
206
205
  );
207
206
  }
@@ -11,22 +11,22 @@ import { Surface } from '@dxos/app-framework/ui';
11
11
  import {
12
12
  OBJECT_ACTIONS_CONTRIBUTION_ID,
13
13
  OBJECT_ACTIONS_CONTRIBUTION_PRIORITY,
14
- type SurfaceComponentProps,
15
14
  useObjectMenuItems,
16
15
  } from '@dxos/app-toolkit/ui';
17
- import { companionSegment } from '@dxos/app-toolkit';
16
+ import { type AppSurface } from '@dxos/app-toolkit/ui';
18
17
  import { DeckOperation } from '@dxos/plugin-deck/operations';
19
18
  import { Panel } from '@dxos/react-ui';
19
+ import { linkedSegment } from '@dxos/react-ui-attention';
20
20
  import { useAttention } from '@dxos/react-ui-attention';
21
21
  import { useMenu } from '@dxos/react-ui-menu';
22
22
  import { type Pipeline } from '@dxos/types';
23
23
 
24
- import { type ItemProps, PipelineComponent } from '../../components';
25
- import { usePipelineBoardModel } from '../../hooks';
24
+ import { type ItemProps, PipelineComponent } from '#components';
25
+ import { usePipelineBoardModel } from '#hooks';
26
26
 
27
27
  const PIPELINE_ITEM = 'PipelineItem';
28
28
 
29
- export type PipelineContainerProps = SurfaceComponentProps<Pipeline.Pipeline>;
29
+ export type PipelineContainerProps = AppSurface.ObjectArticleProps<Pipeline.Pipeline>;
30
30
 
31
31
  export const PipelineContainer = ({ role, subject: pipeline, attendableId }: PipelineContainerProps) => {
32
32
  const registry = useCapability(Capabilities.AtomRegistry);
@@ -37,7 +37,7 @@ export const PipelineContainer = ({ role, subject: pipeline, attendableId }: Pip
37
37
  const handleColumnAdd = useCallback(
38
38
  () =>
39
39
  invokePromise(DeckOperation.ChangeCompanion, {
40
- companion: companionSegment('settings'),
40
+ companion: linkedSegment('settings'),
41
41
  }),
42
42
  [invokePromise],
43
43
  );
@@ -2,6 +2,4 @@
2
2
  // Copyright 2023 DXOS.org
3
3
  //
4
4
 
5
- import { PipelineContainer } from './PipelineContainer';
6
-
7
- export default PipelineContainer;
5
+ export { PipelineContainer as default } from './PipelineContainer';
@@ -5,10 +5,10 @@
5
5
  import * as Schema from 'effect/Schema';
6
6
  import React, { useCallback, useMemo, useRef, useState } from 'react';
7
7
 
8
+ import { resolveSchemaWithRegistry } from '@dxos/app-toolkit/query';
9
+ import { useTypeOptions } from '@dxos/app-toolkit/ui';
8
10
  import { DXN, Filter, JsonSchema, Obj, Query, type QueryAST, Ref, Tag } from '@dxos/echo';
9
11
  import { type JsonPath, type Mutable } from '@dxos/echo/internal';
10
- import { useTypeOptions } from '@dxos/plugin-space';
11
- import { resolveSchemaWithRegistry } from '@dxos/plugin-space';
12
12
  import { getSpace, 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';
@@ -18,22 +18,21 @@ import { Pipeline } from '@dxos/types';
18
18
  import { mx, osTranslations, subtleHover } from '@dxos/ui-theme';
19
19
  import { arrayMove } from '@dxos/util';
20
20
 
21
- import { meta } from '../../meta';
21
+ import { meta } from '#meta';
22
22
 
23
23
  const listGrid = 'grid grid-cols-[min-content_1fr_min-content_min-content_min-content]';
24
24
  const listItemGrid = 'grid grid-cols-subgrid col-span-5';
25
25
 
26
26
  const ColumnFormSchema = Pipeline.Column.pipe(Schema.mutable, Schema.pick('name'));
27
27
 
28
- // TODO(burdon): Standardize Object/Plugin settings.
29
- export type PipelineObjectSettingsProps = ThemedClassName<{
28
+ export type PipelinePropertiesProps = ThemedClassName<{
30
29
  pipeline: Pipeline.Pipeline;
31
30
  }>;
32
31
 
33
32
  /**
34
33
  * Supports editing the pipeline view.
35
34
  */
36
- export const PipelineObjectSettings = ({ classNames, pipeline }: PipelineObjectSettingsProps) => {
35
+ export const PipelineProperties = ({ classNames, pipeline }: PipelinePropertiesProps) => {
37
36
  const { t } = useTranslation(meta.id);
38
37
  const space = getSpace(pipeline);
39
38
  const [expandedId, setExpandedId] = useState<string>();
@@ -162,7 +161,7 @@ export const PipelineObjectSettings = ({ classNames, pipeline }: PipelineObjectS
162
161
 
163
162
  return (
164
163
  <div role='none' className={mx('py-form-padding overflow-y-auto', classNames)}>
165
- <h2 className='text-sm text-description py-1'>{t('views label')}</h2>
164
+ <h2 className='text-sm text-description py-1'>{t('views.label')}</h2>
166
165
 
167
166
  <List.Root<Pipeline.Column>
168
167
  items={columns}
@@ -183,10 +182,10 @@ export const PipelineObjectSettings = ({ classNames, pipeline }: PipelineObjectS
183
182
  <div role='none' className={mx(subtleHover, listItemGrid, 'rounded-xs cursor-pointer min-h-10')}>
184
183
  <List.ItemDragHandle />
185
184
  <List.ItemTitle onClick={() => handleToggleField(column)}>
186
- {column.name || t('untitled view title')}
185
+ {column.name || t('untitled-view.title')}
187
186
  </List.ItemTitle>
188
187
  <List.ItemDeleteButton
189
- label={t('delete view label')}
188
+ label={t('delete-view.label')}
190
189
  autoHide={false}
191
190
  onClick={() => handleDelete(column)}
192
191
  data-testid='view.delete'
@@ -194,7 +193,7 @@ export const PipelineObjectSettings = ({ classNames, pipeline }: PipelineObjectS
194
193
  <IconButton
195
194
  iconOnly
196
195
  variant='ghost'
197
- label={t('toggle expand label', { ns: osTranslations })}
196
+ label={t('toggle-expand.label', { ns: osTranslations })}
198
197
  icon={
199
198
  expandedId === column.view.dxn.toString()
200
199
  ? 'ph--caret-down--regular'
@@ -236,7 +235,7 @@ export const PipelineObjectSettings = ({ classNames, pipeline }: PipelineObjectS
236
235
  </List.Root>
237
236
 
238
237
  <div role='none' className='my-form-padding'>
239
- <IconButton icon='ph--plus--regular' label={t('add view label')} onClick={handleAdd} classNames='w-full' />
238
+ <IconButton icon='ph--plus--regular' label={t('add-view.label')} onClick={handleAdd} classNames='w-full' />
240
239
  </div>
241
240
  </div>
242
241
  );
@@ -0,0 +1,5 @@
1
+ //
2
+ // Copyright 2025 DXOS.org
3
+ //
4
+
5
+ export { PipelineProperties as default } from './PipelineProperties';