@dxos/plugin-pipeline 0.12.0-next-73daef452f1464b62efdbca75fb0067c1066f264 → 0.14.0
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/PLUGIN.mdl +56 -9
- package/dist/lib/capabilities.browser.mjs +24 -0
- package/dist/lib/capabilities.browser.mjs.map +1 -0
- package/dist/lib/capabilities.mjs +6 -4
- package/dist/lib/capabilities.mjs.map +1 -1
- package/dist/lib/capabilities.node.mjs +5 -1
- package/dist/lib/capabilities.node.mjs.map +1 -1
- package/dist/lib/capabilities.tauri.mjs +24 -0
- package/dist/lib/capabilities.tauri.mjs.map +1 -0
- package/dist/lib/capabilities.workerd.mjs.map +1 -1
- package/dist/lib/chunk-PLUGIN.mjs +6 -0
- package/dist/lib/chunk-PLUGIN.mjs.map +1 -0
- package/dist/lib/chunk-PipelineArticle.mjs +19 -25
- package/dist/lib/chunk-PipelineArticle.mjs.map +1 -1
- package/dist/lib/chunk-PipelineProperties.mjs +52 -48
- package/dist/lib/chunk-PipelineProperties.mjs.map +1 -1
- package/dist/lib/chunk-react-surface.mjs +2 -2
- package/dist/lib/chunk-react-surface.mjs.map +1 -1
- package/dist/lib/components.mjs +47 -42
- package/dist/lib/components.mjs.map +1 -1
- package/dist/lib/containers.mjs.map +1 -1
- package/dist/lib/hooks.mjs +3 -3
- package/dist/lib/hooks.mjs.map +1 -1
- package/dist/lib/index.mjs +0 -1
- package/dist/lib/meta.mjs.map +1 -1
- package/dist/lib/translations.mjs.map +1 -1
- package/dist/types/src/capabilities/gen/browser.d.ts +6 -0
- package/dist/types/src/capabilities/gen/browser.d.ts.map +1 -0
- package/dist/types/src/capabilities/gen/node.d.ts.map +1 -1
- package/dist/types/src/capabilities/gen/tauri.d.ts +6 -0
- package/dist/types/src/capabilities/gen/tauri.d.ts.map +1 -0
- package/dist/types/src/capabilities/gen/workerd.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineColumn.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts +6 -3
- package/dist/types/src/components/PipelineComponent/PipelineComponent.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineComponent.stories.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/PipelineContext.d.ts +2 -2
- package/dist/types/src/components/PipelineComponent/PipelineContext.d.ts.map +1 -1
- package/dist/types/src/components/PipelineComponent/index.d.ts +3 -3
- package/dist/types/src/components/PipelineComponent/index.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -1
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineArticle/PipelineArticle.d.ts +1 -1
- package/dist/types/src/containers/PipelineArticle/PipelineArticle.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineArticle/index.d.ts +1 -1
- package/dist/types/src/containers/PipelineArticle/index.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.d.ts +1 -1
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.stories.d.ts +4 -2
- package/dist/types/src/containers/PipelineProperties/PipelineProperties.stories.d.ts.map +1 -1
- package/dist/types/src/containers/PipelineProperties/index.d.ts +1 -1
- package/dist/types/src/containers/PipelineProperties/index.d.ts.map +1 -1
- package/dist/types/src/containers/index.d.ts.map +1 -1
- package/dist/types/src/hooks/index.d.ts +1 -1
- package/dist/types/src/hooks/index.d.ts.map +1 -1
- package/dist/types/src/hooks/usePipelineBoardModel.d.ts +1 -1
- package/dist/types/src/hooks/usePipelineBoardModel.d.ts.map +1 -1
- package/dist/types/src/index.d.ts +1 -2
- package/dist/types/src/index.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +39 -39
- package/src/capabilities/gen/browser.ts +32 -0
- package/src/capabilities/gen/node.ts +3 -3
- package/src/capabilities/gen/tauri.ts +32 -0
- package/src/capabilities/gen/workerd.ts +1 -1
- package/src/capabilities/index.ts +4 -4
- package/src/capabilities/react-surface.ts +2 -2
- package/src/components/PipelineComponent/PipelineColumn.tsx +43 -39
- package/src/components/PipelineComponent/PipelineComponent.stories.tsx +3 -4
- package/src/components/PipelineComponent/PipelineComponent.tsx +25 -19
- package/src/components/PipelineComponent/PipelineContext.tsx +3 -2
- package/src/components/PipelineComponent/index.ts +3 -3
- package/src/components/index.ts +1 -1
- package/src/containers/PipelineArticle/PipelineArticle.stories.tsx +5 -5
- package/src/containers/PipelineArticle/PipelineArticle.tsx +24 -37
- package/src/containers/PipelineArticle/index.ts +1 -1
- package/src/containers/PipelineProperties/PipelineProperties.stories.tsx +3 -3
- package/src/containers/PipelineProperties/PipelineProperties.tsx +34 -33
- package/src/containers/PipelineProperties/index.ts +1 -1
- package/src/containers/index.ts +2 -2
- package/src/hooks/index.ts +1 -1
- package/src/hooks/usePipelineBoardModel.ts +4 -4
- package/src/index.ts +1 -2
- package/src/meta.ts +1 -1
- package/src/plugin.test.ts +2 -2
- package/src/translations.ts +2 -2
package/PLUGIN.mdl
CHANGED
|
@@ -15,9 +15,11 @@ Objects can be dragged between columns and the pipeline state persists collabora
|
|
|
15
15
|
|-------------|--------------------------------|
|
|
16
16
|
| `type` | `org.dxos.mdl.type@1.0` |
|
|
17
17
|
| `feat` | `org.dxos.mdl.feat@1.0` |
|
|
18
|
-
| `
|
|
18
|
+
| `scenario` | `org.dxos.mdl.scenario@1.0` |
|
|
19
19
|
| `component` | `org.dxos.mdl.component@1.0` |
|
|
20
20
|
| `op` | `org.dxos.mdl.op@1.0` |
|
|
21
|
+
| `test` | `org.dxos.mdl.test@1.0` |
|
|
22
|
+
| `step` | `org.dxos.mdl.step@1.0` |
|
|
21
23
|
|
|
22
24
|
## Types
|
|
23
25
|
|
|
@@ -231,7 +233,7 @@ feat F-6: Invocation Companion
|
|
|
231
233
|
## Acceptance
|
|
232
234
|
|
|
233
235
|
```mdl
|
|
234
|
-
|
|
236
|
+
scenario T-1: New pipeline is empty
|
|
235
237
|
given: user creates a Pipeline article
|
|
236
238
|
then:
|
|
237
239
|
- pipeline.columns is empty
|
|
@@ -239,7 +241,7 @@ test T-1: New pipeline is empty
|
|
|
239
241
|
```
|
|
240
242
|
|
|
241
243
|
```mdl
|
|
242
|
-
|
|
244
|
+
scenario T-2: Add column
|
|
243
245
|
given: an open Pipeline with no columns
|
|
244
246
|
when: user clicks "+" in PipelineProperties
|
|
245
247
|
then:
|
|
@@ -249,14 +251,14 @@ test T-2: Add column
|
|
|
249
251
|
```
|
|
250
252
|
|
|
251
253
|
```mdl
|
|
252
|
-
|
|
254
|
+
scenario T-3: Rename column
|
|
253
255
|
given: a pipeline with one column named "Inbox"
|
|
254
256
|
when: user types "Email" in the column name field
|
|
255
257
|
then: pipeline.columns[0].name === "Email"
|
|
256
258
|
```
|
|
257
259
|
|
|
258
260
|
```mdl
|
|
259
|
-
|
|
261
|
+
scenario T-4: Delete column
|
|
260
262
|
given: a pipeline with one column
|
|
261
263
|
when: user deletes the column
|
|
262
264
|
then:
|
|
@@ -265,7 +267,7 @@ test T-4: Delete column
|
|
|
265
267
|
```
|
|
266
268
|
|
|
267
269
|
```mdl
|
|
268
|
-
|
|
270
|
+
scenario T-5: Research template
|
|
269
271
|
given: a space with an existing Mailbox
|
|
270
272
|
when: user creates pipeline from "org-research" template
|
|
271
273
|
then:
|
|
@@ -274,7 +276,7 @@ test T-5: Research template
|
|
|
274
276
|
```
|
|
275
277
|
|
|
276
278
|
```mdl
|
|
277
|
-
|
|
279
|
+
scenario T-6: Research template missing mailbox
|
|
278
280
|
given: a space with no Mailbox
|
|
279
281
|
when: createResearchProject is called
|
|
280
282
|
then: returns null
|
|
@@ -282,6 +284,51 @@ test T-6: Research template missing mailbox
|
|
|
282
284
|
|
|
283
285
|
---
|
|
284
286
|
|
|
287
|
+
## QA
|
|
288
|
+
|
|
289
|
+
Executable tests. Each step carries a human instruction (`do`) and, where the step maps to an
|
|
290
|
+
invocable operation, an agent binding (`invoke`). Report failures by test and step number.
|
|
291
|
+
|
|
292
|
+
```mdl
|
|
293
|
+
test QA-1: Create a Pipeline and add a column
|
|
294
|
+
desc: |
|
|
295
|
+
Pipeline creation delegates to `SpaceOperation.AddObject` behind the generic
|
|
296
|
+
`CreateObjectEntry` factory (same pattern as plugin-chess's `startGame`), and column
|
|
297
|
+
management (`addColumn`/`renameColumn`/`deleteColumn`/`setQuery`) is direct `Obj.update` from
|
|
298
|
+
`PipelineProperties` — none of it is an `Operation.make` with a runtime key. Every step here
|
|
299
|
+
is therefore human-only.
|
|
300
|
+
actors: human
|
|
301
|
+
covers: [F-1.1, F-1.2, F-1.3, F-2.2, F-2.3, T-1, T-2, T-3]
|
|
302
|
+
status: unverified
|
|
303
|
+
given:
|
|
304
|
+
- an identity exists
|
|
305
|
+
- space: a space is open
|
|
306
|
+
- collection: a collection in that space, to create into
|
|
307
|
+
- no Pipeline named "QA Pipeline" exists — ABORT rather than deleting one this test did not create
|
|
308
|
+
- pipeline: the Pipeline the first step creates — its creating step is human-only, so an agent
|
|
309
|
+
run resolves it by name ("QA Pipeline") before the teardown step references it
|
|
310
|
+
steps:
|
|
311
|
+
- name: Create the Pipeline
|
|
312
|
+
do: In the navtree, click + on a collection and choose Pipeline. Name it "QA Pipeline".
|
|
313
|
+
expect: an empty Pipeline appears under the collection, with no columns
|
|
314
|
+
note: NO `invoke` — `createPipeline` is `SpaceCapabilities.CreateObjectEntry`, not an operation; there is no key to call.
|
|
315
|
+
- name: Add a column
|
|
316
|
+
do: In PipelineArticle, click "+" in the toolbar, then "+" again in the Settings panel that opens.
|
|
317
|
+
expect: a new unnamed Column is appended, with an empty ViewModel and a Filter.nothing() query
|
|
318
|
+
note: NO `invoke` — `addColumn()` is a direct `Obj.update` on `pipeline.columns` from `PipelineProperties`.
|
|
319
|
+
- name: Rename the column
|
|
320
|
+
do: In the expanded column editor, type "Leads" in the name field.
|
|
321
|
+
expect: the column tile in the board re-renders headed "Leads"
|
|
322
|
+
note: NO `invoke` — `renameColumn` is also a direct `Obj.update`.
|
|
323
|
+
after:
|
|
324
|
+
- name: Delete the Pipeline
|
|
325
|
+
do: Right-click "QA Pipeline" in the navtree and choose Delete.
|
|
326
|
+
invoke: org.dxos.operation.space.removeObjects { objects: [$given.pipeline], target: $given.collection }
|
|
327
|
+
expect: the row leaves the navtree and its plank closes, and the column's ViewModel object is also removed
|
|
328
|
+
```
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
285
332
|
## Appendix: Extension Definitions
|
|
286
333
|
|
|
287
334
|
```mdl
|
|
@@ -306,8 +353,8 @@ ext feat
|
|
|
306
353
|
```
|
|
307
354
|
|
|
308
355
|
```mdl
|
|
309
|
-
ext
|
|
310
|
-
uri: org.dxos.mdl.
|
|
356
|
+
ext scenario
|
|
357
|
+
uri: org.dxos.mdl.scenario@1.0
|
|
311
358
|
desc: An acceptance scenario expressed as given / when / then steps.
|
|
312
359
|
fields:
|
|
313
360
|
given?: Step | Step[]
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as PLUGIN_default } from "./chunk-PLUGIN.mjs";
|
|
2
|
+
import * as AppCapability from "@dxos/app-toolkit/AppCapability";
|
|
3
|
+
import { translations } from "#translations";
|
|
4
|
+
import * as SpaceCapability from "@dxos/plugin-space/SpaceCapability";
|
|
5
|
+
import { meta } from "#meta";
|
|
6
|
+
//#region src/capabilities/gen/browser.ts
|
|
7
|
+
var CreateObject = SpaceCapability.createObject(() => import("./chunk-create-object.mjs"), { environments: [
|
|
8
|
+
"browser",
|
|
9
|
+
"node",
|
|
10
|
+
"tauri"
|
|
11
|
+
] });
|
|
12
|
+
var ReactSurface = AppCapability.surface(() => import("./chunk-react-surface.mjs"), { roles: ["org.dxos.role.article", "org.dxos.role.objectProperties"] });
|
|
13
|
+
var Schema = AppCapability.schema(() => import("./chunk-schema.mjs"));
|
|
14
|
+
var Translations = AppCapability.translations(translations);
|
|
15
|
+
var PluginAsset = AppCapability.pluginAsset({
|
|
16
|
+
pluginId: meta.profile.key,
|
|
17
|
+
path: "PLUGIN.mdl",
|
|
18
|
+
content: PLUGIN_default,
|
|
19
|
+
mimeType: "application/x-mdl"
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { CreateObject, PluginAsset, ReactSurface, Schema, Translations };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=capabilities.browser.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.browser.mjs","names":[],"sources":["../../src/capabilities/gen/browser.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// GENERATED by dx-plugin — do not edit. Sliced from ../index.ts for the 'browser' condition.\n\nimport * as AppCapability from '@dxos/app-toolkit/AppCapability';\nimport * as SpaceCapability from '@dxos/plugin-space/SpaceCapability';\n\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\nimport pluginSpec from '../../../PLUGIN.mdl?raw';\n\nexport const CreateObject = SpaceCapability.createObject(() => import('../create-object.ts'), {\n environments: ['browser', 'node', 'tauri'],\n});\n\nexport const ReactSurface = AppCapability.surface(() => import('../react-surface.ts'), {\n roles: ['org.dxos.role.article', 'org.dxos.role.objectProperties'],\n});\n\nexport const Schema = AppCapability.schema(() => import('../schema.ts'));\n\nexport const Translations = AppCapability.translations(translations);\n\nexport const PluginAsset = AppCapability.pluginAsset({\n pluginId: meta.profile.key,\n path: 'PLUGIN.mdl',\n content: pluginSpec,\n mimeType: 'application/x-mdl',\n});\n"],"mappings":";;;;;;AAcA,IAAa,eAAe,gBAAgB,mBAAmB,OAAO,8BAAwB,EAC5F,cAAc;CAAC;CAAW;CAAQ;AAAO,EAC3C,CAAC;AAED,IAAa,eAAe,cAAc,cAAc,OAAO,8BAAwB,EACrF,OAAO,CAAC,yBAAyB,gCAAgC,EACnE,CAAC;AAED,IAAa,SAAS,cAAc,aAAa,OAAO,qBAAe;AAEvE,IAAa,eAAe,cAAc,aAAa,YAAY;AAEnE,IAAa,cAAc,cAAc,YAAY;CACnD,UAAU,KAAK,QAAQ;CACvB,MAAM;CACN,SAAS;CACT,UAAU;AACZ,CAAC"}
|
|
@@ -1,12 +1,14 @@
|
|
|
1
|
+
import { t as PLUGIN_default } from "./chunk-PLUGIN.mjs";
|
|
1
2
|
import * as AppCapability from "@dxos/app-toolkit/AppCapability";
|
|
2
3
|
import { translations } from "#translations";
|
|
3
4
|
import * as SpaceCapability from "@dxos/plugin-space/SpaceCapability";
|
|
4
5
|
import { meta } from "#meta";
|
|
5
|
-
//#region PLUGIN.mdl?raw
|
|
6
|
-
var PLUGIN_default = "---\nid: org.dxos.plugin.pipeline\nname: PipelinePlugin\nversion: 0.1.0\n---\n\nA multi-column Kanban-style pipeline plugin for DXOS Composer.\nEach Pipeline holds an ordered list of Columns; each Column is backed by a ViewModel\nwhose query selects any ECHO object type from the space.\nObjects can be dragged between columns and the pipeline state persists collaboratively via ECHO.\n\n## Extensions\n\n| Term | URI |\n|-------------|--------------------------------|\n| `type` | `org.dxos.mdl.type@1.0` |\n| `feat` | `org.dxos.mdl.feat@1.0` |\n| `test` | `org.dxos.mdl.test@1.0` |\n| `component` | `org.dxos.mdl.component@1.0` |\n| `op` | `org.dxos.mdl.op@1.0` |\n\n## Types\n\n```mdl\ntype Pipeline\n desc: Root ECHO object (typename org.dxos.type.pipeline). Holds the ordered set of columns.\n echo-type: Pipeline.Pipeline\n fields:\n name?: string\n description?: string\n image?: URL\n columns: Column[]\n invariants:\n - columns maintain insertion order\n - columns array is not exposed in generated forms (FormInputAnnotation = false)\n```\n\n```mdl\ntype Column\n desc: One lane of the pipeline. Backed by a ViewModel whose query determines which objects appear.\n echo-type: Pipeline.Column\n fields:\n name: string\n view: Ref<View.View> # ViewModel containing query AST + JSON schema projection\n order: string[] # explicit ordering of item ids within this column\n invariants:\n - view is a Ref to a ViewModel ECHO object stored in the same space\n - order array tracks drag-reordering; items not in order appear after ordered items\n```\n\n```mdl\ntype ViewModel\n desc: Runtime ECHO object that holds a QueryAST and JSON schema projection for a Column.\n fields:\n query: { ast: QueryAST }\n projection: ProjectionSchema\n jsonSchema: JsonSchema\n```\n\n## Components\n\n```mdl\ncomponent PipelineArticle\n desc: Full-canvas article surface rendered for a Pipeline object.\n props:\n role: string\n subject: Pipeline.Pipeline\n attendableId?: string\n state:\n model: BoardModel<Pipeline.Column, Obj.Unknown>\n slots:\n toolbar: PipelineComponent.Toolbar\n content: PipelineComponent.Columns\n actions:\n addColumn() → void # opens Settings companion panel\n```\n\n```mdl\ncomponent PipelineComponent\n desc: Composable component set that renders the Kanban board.\n sub-components:\n Root # context provider for Item renderer and onAddColumn callback\n Content # wraps Board.Root with the board model\n Columns # renders Board.Content with PipelineColumn tiles; handles drag-drop via useEventHandlerAdapter\n Toolbar # single \"+\" IconButton gated by attention; triggers onAddColumn\n```\n\n```mdl\ncomponent PipelineProperties\n desc: Settings companion panel for managing pipeline columns.\n props:\n pipeline: Pipeline.Pipeline\n state:\n columns: Pipeline.Column[]\n expandedId?: string # id of the currently expanded column editor\n actions:\n addColumn() → void\n deleteColumn(column) → void\n renameColumn(column, name) → void\n moveColumn(from, to) → void\n setQuery(column, query, target?) → void\n layout: |\n ┌──────────────────────────────────┐\n │ \"Views\" heading │\n ├──────────────────────────────────┤\n │ List of Column rows │\n │ drag handle | name | delete | │\n │ [expanded: Form + ViewEditor] │\n ├──────────────────────────────────┤\n │ \"+\" add-column button │\n └──────────────────────────────────┘\n```\n\n## Operations\n\n```mdl\nop createPipeline\n desc: Creates a new Pipeline ECHO object and adds it to the target space.\n input:\n name?: string\n target?: Space\n targetNodeId?: string\n output: Pipeline.Pipeline\n effects: [echo:write]\n note: Delegates to SpaceOperation.AddObject with hidden=true.\n```\n\n```mdl\nop createResearchProject\n desc: Built-in template that scaffolds a Research pipeline with Mailbox, Contacts, Organizations, and Notes columns.\n input:\n db: Database.Database\n name?: string\n output: Pipeline.Pipeline\n effects: [echo:write, echo:read]\n note: |\n Requires an existing Mailbox object in the database.\n Returns null when no mailbox is found.\n Creates four ViewModel columns: Mailbox messages, Person contacts,\n Organization contacts, and Markdown documents.\n```\n\n## Features\n\n```mdl\nfeat F-1: Create Pipeline\n\n req F-1.1: A new Pipeline is created with an empty columns array.\n req F-1.2: The Pipeline is added to the active space via SpaceOperation.AddObject (hidden=true).\n req F-1.3: The Pipeline appears as an article in Composer.\n req F-1.4: Graph companions \"Invocations\" and \"Automation\" are added to the pipeline node.\n```\n\n```mdl\nfeat F-2: Manage Columns\n\n req F-2.1:\n when: user clicks \"+\" in the pipeline toolbar\n then: Settings companion panel opens\n\n req F-2.2:\n when: user clicks \"+\" in PipelineProperties\n then: a new Column is appended with an empty ViewModel and a Filter.nothing() query\n\n req F-2.3:\n when: user renames a column\n then: column.name updated immediately via Obj.update\n\n req F-2.4:\n when: user deletes a column\n then: Column removed from pipeline.columns; associated ViewModel ECHO object removed from db\n\n req F-2.5:\n when: user drags a column to a new position\n then: pipeline.columns reordered via arrayMove\n```\n\n```mdl\nfeat F-3: Column Query\n\n req F-3.1:\n when: user changes the query in ViewEditor\n then: column.view.query.ast updated; column.view.projection updated to match new schema\n\n req F-3.2:\n when: query targets a feed (queue DXN)\n then: Query.from({ feeds: [queue] }) applied; items ordered newest-first\n\n req F-3.3:\n when: query targets the space directly\n then: items ordered by ECHO insertion order\n```\n\n```mdl\nfeat F-4: Drag and Drop\n\n req F-4.1:\n when: user drags a Column tile\n then: pipeline.columns reordered; change persisted via Obj.update\n\n req F-4.2:\n when: user drags an item between columns\n then: column.order updated to reflect new position\n note: The item itself is not moved to a different ECHO location; only the order array changes.\n\n req F-4.3: Only Pipeline.Column objects are accepted as column drop targets (isColumn guard).\n```\n\n```mdl\nfeat F-5: Research Template\n\n req F-5.1:\n when: user creates a pipeline from the \"org-research\" template\n then: Research pipeline created with Mailbox, Contacts, Organizations, and Notes columns\n\n req F-5.2: Template creation fails gracefully when no Mailbox exists in the database.\n```\n\n```mdl\nfeat F-6: Invocation Companion\n\n req F-6.1:\n when: Pipeline article is open\n then: \"Invocations\" companion tab shows InvocationTraceContainer for the pipeline's database\n\n req F-6.2:\n when: Pipeline article is open\n then: \"Automation\" companion tab is available for wiring pipeline automation\n```\n\n## Acceptance\n\n```mdl\ntest T-1: New pipeline is empty\n given: user creates a Pipeline article\n then:\n - pipeline.columns is empty\n - pipeline appears in the space object list\n```\n\n```mdl\ntest T-2: Add column\n given: an open Pipeline with no columns\n when: user clicks \"+\" in PipelineProperties\n then:\n - pipeline.columns.length === 1\n - new column has name === \"\"\n - new column.view references a ViewModel with Filter.nothing() query\n```\n\n```mdl\ntest T-3: Rename column\n given: a pipeline with one column named \"Inbox\"\n when: user types \"Email\" in the column name field\n then: pipeline.columns[0].name === \"Email\"\n```\n\n```mdl\ntest T-4: Delete column\n given: a pipeline with one column\n when: user deletes the column\n then:\n - pipeline.columns is empty\n - associated ViewModel ECHO object no longer exists in db\n```\n\n```mdl\ntest T-5: Research template\n given: a space with an existing Mailbox\n when: user creates pipeline from \"org-research\" template\n then:\n - pipeline.columns.length === 4\n - column names are \"Mailbox\", \"Contacts\", \"Organizations\", \"Notes\"\n```\n\n```mdl\ntest T-6: Research template missing mailbox\n given: a space with no Mailbox\n when: createResearchProject is called\n then: returns null\n```\n\n---\n\n## Appendix: Extension Definitions\n\n```mdl\next type\n uri: org.dxos.mdl.type@1.0\n desc: A named data structure with typed fields and optional literals.\n fields:\n desc?: Prose\n fields?: FieldMap\n literals?: UnionList\n extends?: TypeRef[]\n```\n\n```mdl\next feat\n uri: org.dxos.mdl.feat@1.0\n desc: A named feature grouping one or more requirements.\n fields:\n desc?: Prose\n req: RequirementList\n nesting: self\n```\n\n```mdl\next test\n uri: org.dxos.mdl.test@1.0\n desc: An acceptance scenario expressed as given / when / then steps.\n fields:\n given?: Step | Step[]\n when?: Step | Step[]\n then: Step | Step[]\n tags?: TagList\n```\n\n```mdl\next component\n uri: org.dxos.mdl.component@1.0\n desc: A UI component with props, internal state, slots, actions, and events.\n fields:\n desc?: Prose\n props?: FieldMap\n state?: FieldMap\n slots?: FieldMap\n actions?: ActionMap\n emits?: EventMap\n layout?: CodeBlock\n```\n\n```mdl\next op\n uri: org.dxos.mdl.op@1.0\n desc: A named operation with typed inputs, outputs, and declared effects.\n fields:\n desc?: Prose\n input?: FieldMap\n output?: TypeExpr\n errors?: ErrorMap\n effects?: EffectList\n requires?: ServiceList\n note?: Prose\n```\n";
|
|
7
|
-
//#endregion
|
|
8
6
|
//#region src/capabilities/index.ts
|
|
9
|
-
var CreateObject = SpaceCapability.createObject(() => import("./chunk-create-object.mjs"), { environments: [
|
|
7
|
+
var CreateObject = SpaceCapability.createObject(() => import("./chunk-create-object.mjs"), { environments: [
|
|
8
|
+
"browser",
|
|
9
|
+
"node",
|
|
10
|
+
"tauri"
|
|
11
|
+
] });
|
|
10
12
|
var ReactSurface = AppCapability.surface(() => import("./chunk-react-surface.mjs"), { roles: ["org.dxos.role.article", "org.dxos.role.objectProperties"] });
|
|
11
13
|
var Schema = AppCapability.schema(() => import("./chunk-schema.mjs"));
|
|
12
14
|
var Translations = AppCapability.translations(translations);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.mjs","names":[],"sources":["../../src/capabilities/index.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as AppCapability from '@dxos/app-toolkit/AppCapability';\nimport * as SpaceCapability from '@dxos/plugin-space/SpaceCapability';\n\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\n// eslint-disable-next-line import/no-relative-packages\nimport pluginSpec from '../../PLUGIN.mdl?raw';\n\nexport const CreateObject = SpaceCapability.createObject(() => import('./create-object'), {\n environments: ['node'],\n});\nexport const ReactSurface = AppCapability.surface(() => import('./react-surface'), {\n roles: ['org.dxos.role.article', 'org.dxos.role.objectProperties'],\n});\nexport const Schema = AppCapability.schema(() => import('./schema'));\nexport const Translations = AppCapability.translations(translations);\nexport const PluginAsset = AppCapability.pluginAsset({\n pluginId: meta.profile.key,\n path: 'PLUGIN.mdl',\n content: pluginSpec,\n mimeType: 'application/x-mdl',\n});\n"],"mappings":"
|
|
1
|
+
{"version":3,"file":"capabilities.mjs","names":[],"sources":["../../src/capabilities/index.ts"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as AppCapability from '@dxos/app-toolkit/AppCapability';\nimport * as SpaceCapability from '@dxos/plugin-space/SpaceCapability';\n\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\n// eslint-disable-next-line import/no-relative-packages\nimport pluginSpec from '../../PLUGIN.mdl?raw';\n\nexport const CreateObject = SpaceCapability.createObject(() => import('./create-object.ts'), {\n environments: ['browser', 'node', 'tauri'],\n});\nexport const ReactSurface = AppCapability.surface(() => import('./react-surface.ts'), {\n roles: ['org.dxos.role.article', 'org.dxos.role.objectProperties'],\n});\nexport const Schema = AppCapability.schema(() => import('./schema.ts'));\nexport const Translations = AppCapability.translations(translations);\nexport const PluginAsset = AppCapability.pluginAsset({\n pluginId: meta.profile.key,\n path: 'PLUGIN.mdl',\n content: pluginSpec,\n mimeType: 'application/x-mdl',\n});\n"],"mappings":";;;;;;AAaA,IAAa,eAAe,gBAAgB,mBAAmB,OAAO,8BAAuB,EAC3F,cAAc;CAAC;CAAW;CAAQ;AAAO,EAC3C,CAAC;AACD,IAAa,eAAe,cAAc,cAAc,OAAO,8BAAuB,EACpF,OAAO,CAAC,yBAAyB,gCAAgC,EACnE,CAAC;AACD,IAAa,SAAS,cAAc,aAAa,OAAO,qBAAc;AACtE,IAAa,eAAe,cAAc,aAAa,YAAY;AACnE,IAAa,cAAc,cAAc,YAAY;CACnD,UAAU,KAAK,QAAQ;CACvB,MAAM;CACN,SAAS;CACT,UAAU;AACZ,CAAC"}
|
|
@@ -2,7 +2,11 @@ import * as AppCapability from "@dxos/app-toolkit/AppCapability";
|
|
|
2
2
|
import { translations } from "#translations";
|
|
3
3
|
import * as SpaceCapability from "@dxos/plugin-space/SpaceCapability";
|
|
4
4
|
//#region src/capabilities/gen/node.ts
|
|
5
|
-
var CreateObject = SpaceCapability.createObject(() => import("./chunk-create-object.mjs"), { environments: [
|
|
5
|
+
var CreateObject = SpaceCapability.createObject(() => import("./chunk-create-object.mjs"), { environments: [
|
|
6
|
+
"browser",
|
|
7
|
+
"node",
|
|
8
|
+
"tauri"
|
|
9
|
+
] });
|
|
6
10
|
var Schema = AppCapability.schema(() => import("./chunk-schema.mjs"));
|
|
7
11
|
var Translations = AppCapability.translations(translations);
|
|
8
12
|
var PluginAsset = void 0;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.node.mjs","names":[],"sources":["../../src/capabilities/gen/node.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// GENERATED by dx-plugin — do not edit. Sliced from ../index.ts for the 'node' condition.\n\nimport * as AppCapability from '@dxos/app-toolkit/AppCapability';\nimport * as SpaceCapability from '@dxos/plugin-space/SpaceCapability';\n\nimport { translations } from '#translations';\n\nexport const CreateObject = SpaceCapability.createObject(() => import('../create-object'), {\n environments: ['node'],\n});\n\nexport const Schema = AppCapability.schema(() => import('../schema'));\n\nexport const Translations = AppCapability.translations(translations);\n\nexport const PluginAsset = undefined;\nexport const ReactSurface = undefined;\n"],"mappings":";;;;AAWA,IAAa,eAAe,gBAAgB,mBAAmB,OAAO,
|
|
1
|
+
{"version":3,"file":"capabilities.node.mjs","names":[],"sources":["../../src/capabilities/gen/node.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// GENERATED by dx-plugin — do not edit. Sliced from ../index.ts for the 'node' condition.\n\nimport * as AppCapability from '@dxos/app-toolkit/AppCapability';\nimport * as SpaceCapability from '@dxos/plugin-space/SpaceCapability';\n\nimport { translations } from '#translations';\n\nexport const CreateObject = SpaceCapability.createObject(() => import('../create-object.ts'), {\n environments: ['browser', 'node', 'tauri'],\n});\n\nexport const Schema = AppCapability.schema(() => import('../schema.ts'));\n\nexport const Translations = AppCapability.translations(translations);\n\nexport const PluginAsset = undefined;\nexport const ReactSurface = undefined;\n"],"mappings":";;;;AAWA,IAAa,eAAe,gBAAgB,mBAAmB,OAAO,8BAAwB,EAC5F,cAAc;CAAC;CAAW;CAAQ;AAAO,EAC3C,CAAC;AAED,IAAa,SAAS,cAAc,aAAa,OAAO,qBAAe;AAEvE,IAAa,eAAe,cAAc,aAAa,YAAY;AAEnE,IAAa,cAAc,KAAA;AAC3B,IAAa,eAAe,KAAA"}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { t as PLUGIN_default } from "./chunk-PLUGIN.mjs";
|
|
2
|
+
import * as AppCapability from "@dxos/app-toolkit/AppCapability";
|
|
3
|
+
import { translations } from "#translations";
|
|
4
|
+
import * as SpaceCapability from "@dxos/plugin-space/SpaceCapability";
|
|
5
|
+
import { meta } from "#meta";
|
|
6
|
+
//#region src/capabilities/gen/tauri.ts
|
|
7
|
+
var CreateObject = SpaceCapability.createObject(() => import("./chunk-create-object.mjs"), { environments: [
|
|
8
|
+
"browser",
|
|
9
|
+
"node",
|
|
10
|
+
"tauri"
|
|
11
|
+
] });
|
|
12
|
+
var ReactSurface = AppCapability.surface(() => import("./chunk-react-surface.mjs"), { roles: ["org.dxos.role.article", "org.dxos.role.objectProperties"] });
|
|
13
|
+
var Schema = AppCapability.schema(() => import("./chunk-schema.mjs"));
|
|
14
|
+
var Translations = AppCapability.translations(translations);
|
|
15
|
+
var PluginAsset = AppCapability.pluginAsset({
|
|
16
|
+
pluginId: meta.profile.key,
|
|
17
|
+
path: "PLUGIN.mdl",
|
|
18
|
+
content: PLUGIN_default,
|
|
19
|
+
mimeType: "application/x-mdl"
|
|
20
|
+
});
|
|
21
|
+
//#endregion
|
|
22
|
+
export { CreateObject, PluginAsset, ReactSurface, Schema, Translations };
|
|
23
|
+
|
|
24
|
+
//# sourceMappingURL=capabilities.tauri.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"capabilities.tauri.mjs","names":[],"sources":["../../src/capabilities/gen/tauri.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// GENERATED by dx-plugin — do not edit. Sliced from ../index.ts for the 'tauri' condition.\n\nimport * as AppCapability from '@dxos/app-toolkit/AppCapability';\nimport * as SpaceCapability from '@dxos/plugin-space/SpaceCapability';\n\nimport { meta } from '#meta';\nimport { translations } from '#translations';\n\nimport pluginSpec from '../../../PLUGIN.mdl?raw';\n\nexport const CreateObject = SpaceCapability.createObject(() => import('../create-object.ts'), {\n environments: ['browser', 'node', 'tauri'],\n});\n\nexport const ReactSurface = AppCapability.surface(() => import('../react-surface.ts'), {\n roles: ['org.dxos.role.article', 'org.dxos.role.objectProperties'],\n});\n\nexport const Schema = AppCapability.schema(() => import('../schema.ts'));\n\nexport const Translations = AppCapability.translations(translations);\n\nexport const PluginAsset = AppCapability.pluginAsset({\n pluginId: meta.profile.key,\n path: 'PLUGIN.mdl',\n content: pluginSpec,\n mimeType: 'application/x-mdl',\n});\n"],"mappings":";;;;;;AAcA,IAAa,eAAe,gBAAgB,mBAAmB,OAAO,8BAAwB,EAC5F,cAAc;CAAC;CAAW;CAAQ;AAAO,EAC3C,CAAC;AAED,IAAa,eAAe,cAAc,cAAc,OAAO,8BAAwB,EACrF,OAAO,CAAC,yBAAyB,gCAAgC,EACnE,CAAC;AAED,IAAa,SAAS,cAAc,aAAa,OAAO,qBAAe;AAEvE,IAAa,eAAe,cAAc,aAAa,YAAY;AAEnE,IAAa,cAAc,cAAc,YAAY;CACnD,UAAU,KAAK,QAAQ;CACvB,MAAM;CACN,SAAS;CACT,UAAU;AACZ,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"capabilities.workerd.mjs","names":[],"sources":["../../src/capabilities/gen/workerd.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// GENERATED by dx-plugin — do not edit. Sliced from ../index.ts for the 'workerd' condition.\n\nimport * as AppCapability from '@dxos/app-toolkit/AppCapability';\n\nimport { translations } from '#translations';\n\nexport const Schema = AppCapability.schema(() => import('../schema'));\n\nexport const Translations = AppCapability.translations(translations);\n\nexport const CreateObject = undefined;\nexport const PluginAsset = undefined;\nexport const ReactSurface = undefined;\n"],"mappings":";;;AAUA,IAAa,SAAS,cAAc,aAAa,OAAO,
|
|
1
|
+
{"version":3,"file":"capabilities.workerd.mjs","names":[],"sources":["../../src/capabilities/gen/workerd.ts"],"sourcesContent":["//\n// Copyright 2026 DXOS.org\n//\n\n// GENERATED by dx-plugin — do not edit. Sliced from ../index.ts for the 'workerd' condition.\n\nimport * as AppCapability from '@dxos/app-toolkit/AppCapability';\n\nimport { translations } from '#translations';\n\nexport const Schema = AppCapability.schema(() => import('../schema.ts'));\n\nexport const Translations = AppCapability.translations(translations);\n\nexport const CreateObject = undefined;\nexport const PluginAsset = undefined;\nexport const ReactSurface = undefined;\n"],"mappings":";;;AAUA,IAAa,SAAS,cAAc,aAAa,OAAO,qBAAe;AAEvE,IAAa,eAAe,cAAc,aAAa,YAAY;AAEnE,IAAa,eAAe,KAAA;AAC5B,IAAa,cAAc,KAAA;AAC3B,IAAa,eAAe,KAAA"}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
//#region PLUGIN.mdl?raw
|
|
2
|
+
var PLUGIN_default = "---\nid: org.dxos.plugin.pipeline\nname: PipelinePlugin\nversion: 0.1.0\n---\n\nA multi-column Kanban-style pipeline plugin for DXOS Composer.\nEach Pipeline holds an ordered list of Columns; each Column is backed by a ViewModel\nwhose query selects any ECHO object type from the space.\nObjects can be dragged between columns and the pipeline state persists collaboratively via ECHO.\n\n## Extensions\n\n| Term | URI |\n|-------------|--------------------------------|\n| `type` | `org.dxos.mdl.type@1.0` |\n| `feat` | `org.dxos.mdl.feat@1.0` |\n| `scenario` | `org.dxos.mdl.scenario@1.0` |\n| `component` | `org.dxos.mdl.component@1.0` |\n| `op` | `org.dxos.mdl.op@1.0` |\n| `test` | `org.dxos.mdl.test@1.0` |\n| `step` | `org.dxos.mdl.step@1.0` |\n\n## Types\n\n```mdl\ntype Pipeline\n desc: Root ECHO object (typename org.dxos.type.pipeline). Holds the ordered set of columns.\n echo-type: Pipeline.Pipeline\n fields:\n name?: string\n description?: string\n image?: URL\n columns: Column[]\n invariants:\n - columns maintain insertion order\n - columns array is not exposed in generated forms (FormInputAnnotation = false)\n```\n\n```mdl\ntype Column\n desc: One lane of the pipeline. Backed by a ViewModel whose query determines which objects appear.\n echo-type: Pipeline.Column\n fields:\n name: string\n view: Ref<View.View> # ViewModel containing query AST + JSON schema projection\n order: string[] # explicit ordering of item ids within this column\n invariants:\n - view is a Ref to a ViewModel ECHO object stored in the same space\n - order array tracks drag-reordering; items not in order appear after ordered items\n```\n\n```mdl\ntype ViewModel\n desc: Runtime ECHO object that holds a QueryAST and JSON schema projection for a Column.\n fields:\n query: { ast: QueryAST }\n projection: ProjectionSchema\n jsonSchema: JsonSchema\n```\n\n## Components\n\n```mdl\ncomponent PipelineArticle\n desc: Full-canvas article surface rendered for a Pipeline object.\n props:\n role: string\n subject: Pipeline.Pipeline\n attendableId?: string\n state:\n model: BoardModel<Pipeline.Column, Obj.Unknown>\n slots:\n toolbar: PipelineComponent.Toolbar\n content: PipelineComponent.Columns\n actions:\n addColumn() → void # opens Settings companion panel\n```\n\n```mdl\ncomponent PipelineComponent\n desc: Composable component set that renders the Kanban board.\n sub-components:\n Root # context provider for Item renderer and onAddColumn callback\n Content # wraps Board.Root with the board model\n Columns # renders Board.Content with PipelineColumn tiles; handles drag-drop via useEventHandlerAdapter\n Toolbar # single \"+\" IconButton gated by attention; triggers onAddColumn\n```\n\n```mdl\ncomponent PipelineProperties\n desc: Settings companion panel for managing pipeline columns.\n props:\n pipeline: Pipeline.Pipeline\n state:\n columns: Pipeline.Column[]\n expandedId?: string # id of the currently expanded column editor\n actions:\n addColumn() → void\n deleteColumn(column) → void\n renameColumn(column, name) → void\n moveColumn(from, to) → void\n setQuery(column, query, target?) → void\n layout: |\n ┌──────────────────────────────────┐\n │ \"Views\" heading │\n ├──────────────────────────────────┤\n │ List of Column rows │\n │ drag handle | name | delete | │\n │ [expanded: Form + ViewEditor] │\n ├──────────────────────────────────┤\n │ \"+\" add-column button │\n └──────────────────────────────────┘\n```\n\n## Operations\n\n```mdl\nop createPipeline\n desc: Creates a new Pipeline ECHO object and adds it to the target space.\n input:\n name?: string\n target?: Space\n targetNodeId?: string\n output: Pipeline.Pipeline\n effects: [echo:write]\n note: Delegates to SpaceOperation.AddObject with hidden=true.\n```\n\n```mdl\nop createResearchProject\n desc: Built-in template that scaffolds a Research pipeline with Mailbox, Contacts, Organizations, and Notes columns.\n input:\n db: Database.Database\n name?: string\n output: Pipeline.Pipeline\n effects: [echo:write, echo:read]\n note: |\n Requires an existing Mailbox object in the database.\n Returns null when no mailbox is found.\n Creates four ViewModel columns: Mailbox messages, Person contacts,\n Organization contacts, and Markdown documents.\n```\n\n## Features\n\n```mdl\nfeat F-1: Create Pipeline\n\n req F-1.1: A new Pipeline is created with an empty columns array.\n req F-1.2: The Pipeline is added to the active space via SpaceOperation.AddObject (hidden=true).\n req F-1.3: The Pipeline appears as an article in Composer.\n req F-1.4: Graph companions \"Invocations\" and \"Automation\" are added to the pipeline node.\n```\n\n```mdl\nfeat F-2: Manage Columns\n\n req F-2.1:\n when: user clicks \"+\" in the pipeline toolbar\n then: Settings companion panel opens\n\n req F-2.2:\n when: user clicks \"+\" in PipelineProperties\n then: a new Column is appended with an empty ViewModel and a Filter.nothing() query\n\n req F-2.3:\n when: user renames a column\n then: column.name updated immediately via Obj.update\n\n req F-2.4:\n when: user deletes a column\n then: Column removed from pipeline.columns; associated ViewModel ECHO object removed from db\n\n req F-2.5:\n when: user drags a column to a new position\n then: pipeline.columns reordered via arrayMove\n```\n\n```mdl\nfeat F-3: Column Query\n\n req F-3.1:\n when: user changes the query in ViewEditor\n then: column.view.query.ast updated; column.view.projection updated to match new schema\n\n req F-3.2:\n when: query targets a feed (queue DXN)\n then: Query.from({ feeds: [queue] }) applied; items ordered newest-first\n\n req F-3.3:\n when: query targets the space directly\n then: items ordered by ECHO insertion order\n```\n\n```mdl\nfeat F-4: Drag and Drop\n\n req F-4.1:\n when: user drags a Column tile\n then: pipeline.columns reordered; change persisted via Obj.update\n\n req F-4.2:\n when: user drags an item between columns\n then: column.order updated to reflect new position\n note: The item itself is not moved to a different ECHO location; only the order array changes.\n\n req F-4.3: Only Pipeline.Column objects are accepted as column drop targets (isColumn guard).\n```\n\n```mdl\nfeat F-5: Research Template\n\n req F-5.1:\n when: user creates a pipeline from the \"org-research\" template\n then: Research pipeline created with Mailbox, Contacts, Organizations, and Notes columns\n\n req F-5.2: Template creation fails gracefully when no Mailbox exists in the database.\n```\n\n```mdl\nfeat F-6: Invocation Companion\n\n req F-6.1:\n when: Pipeline article is open\n then: \"Invocations\" companion tab shows InvocationTraceContainer for the pipeline's database\n\n req F-6.2:\n when: Pipeline article is open\n then: \"Automation\" companion tab is available for wiring pipeline automation\n```\n\n## Acceptance\n\n```mdl\nscenario T-1: New pipeline is empty\n given: user creates a Pipeline article\n then:\n - pipeline.columns is empty\n - pipeline appears in the space object list\n```\n\n```mdl\nscenario T-2: Add column\n given: an open Pipeline with no columns\n when: user clicks \"+\" in PipelineProperties\n then:\n - pipeline.columns.length === 1\n - new column has name === \"\"\n - new column.view references a ViewModel with Filter.nothing() query\n```\n\n```mdl\nscenario T-3: Rename column\n given: a pipeline with one column named \"Inbox\"\n when: user types \"Email\" in the column name field\n then: pipeline.columns[0].name === \"Email\"\n```\n\n```mdl\nscenario T-4: Delete column\n given: a pipeline with one column\n when: user deletes the column\n then:\n - pipeline.columns is empty\n - associated ViewModel ECHO object no longer exists in db\n```\n\n```mdl\nscenario T-5: Research template\n given: a space with an existing Mailbox\n when: user creates pipeline from \"org-research\" template\n then:\n - pipeline.columns.length === 4\n - column names are \"Mailbox\", \"Contacts\", \"Organizations\", \"Notes\"\n```\n\n```mdl\nscenario T-6: Research template missing mailbox\n given: a space with no Mailbox\n when: createResearchProject is called\n then: returns null\n```\n\n---\n\n## QA\n\nExecutable tests. Each step carries a human instruction (`do`) and, where the step maps to an\ninvocable operation, an agent binding (`invoke`). Report failures by test and step number.\n\n```mdl\ntest QA-1: Create a Pipeline and add a column\n desc: |\n Pipeline creation delegates to `SpaceOperation.AddObject` behind the generic\n `CreateObjectEntry` factory (same pattern as plugin-chess's `startGame`), and column\n management (`addColumn`/`renameColumn`/`deleteColumn`/`setQuery`) is direct `Obj.update` from\n `PipelineProperties` — none of it is an `Operation.make` with a runtime key. Every step here\n is therefore human-only.\n actors: human\n covers: [F-1.1, F-1.2, F-1.3, F-2.2, F-2.3, T-1, T-2, T-3]\n status: unverified\n given:\n - an identity exists\n - space: a space is open\n - collection: a collection in that space, to create into\n - no Pipeline named \"QA Pipeline\" exists — ABORT rather than deleting one this test did not create\n - pipeline: the Pipeline the first step creates — its creating step is human-only, so an agent\n run resolves it by name (\"QA Pipeline\") before the teardown step references it\n steps:\n - name: Create the Pipeline\n do: In the navtree, click + on a collection and choose Pipeline. Name it \"QA Pipeline\".\n expect: an empty Pipeline appears under the collection, with no columns\n note: NO `invoke` — `createPipeline` is `SpaceCapabilities.CreateObjectEntry`, not an operation; there is no key to call.\n - name: Add a column\n do: In PipelineArticle, click \"+\" in the toolbar, then \"+\" again in the Settings panel that opens.\n expect: a new unnamed Column is appended, with an empty ViewModel and a Filter.nothing() query\n note: NO `invoke` — `addColumn()` is a direct `Obj.update` on `pipeline.columns` from `PipelineProperties`.\n - name: Rename the column\n do: In the expanded column editor, type \"Leads\" in the name field.\n expect: the column tile in the board re-renders headed \"Leads\"\n note: NO `invoke` — `renameColumn` is also a direct `Obj.update`.\n after:\n - name: Delete the Pipeline\n do: Right-click \"QA Pipeline\" in the navtree and choose Delete.\n invoke: org.dxos.operation.space.removeObjects { objects: [$given.pipeline], target: $given.collection }\n expect: the row leaves the navtree and its plank closes, and the column's ViewModel object is also removed\n```\n\n---\n\n## Appendix: Extension Definitions\n\n```mdl\next type\n uri: org.dxos.mdl.type@1.0\n desc: A named data structure with typed fields and optional literals.\n fields:\n desc?: Prose\n fields?: FieldMap\n literals?: UnionList\n extends?: TypeRef[]\n```\n\n```mdl\next feat\n uri: org.dxos.mdl.feat@1.0\n desc: A named feature grouping one or more requirements.\n fields:\n desc?: Prose\n req: RequirementList\n nesting: self\n```\n\n```mdl\next scenario\n uri: org.dxos.mdl.scenario@1.0\n desc: An acceptance scenario expressed as given / when / then steps.\n fields:\n given?: Step | Step[]\n when?: Step | Step[]\n then: Step | Step[]\n tags?: TagList\n```\n\n```mdl\next component\n uri: org.dxos.mdl.component@1.0\n desc: A UI component with props, internal state, slots, actions, and events.\n fields:\n desc?: Prose\n props?: FieldMap\n state?: FieldMap\n slots?: FieldMap\n actions?: ActionMap\n emits?: EventMap\n layout?: CodeBlock\n```\n\n```mdl\next op\n uri: org.dxos.mdl.op@1.0\n desc: A named operation with typed inputs, outputs, and declared effects.\n fields:\n desc?: Prose\n input?: FieldMap\n output?: TypeExpr\n errors?: ErrorMap\n effects?: EffectList\n requires?: ServiceList\n note?: Prose\n```\n";
|
|
3
|
+
//#endregion
|
|
4
|
+
export { PLUGIN_default as t };
|
|
5
|
+
|
|
6
|
+
//# sourceMappingURL=chunk-PLUGIN.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"chunk-PLUGIN.mjs","names":[],"sources":[],"mappings":""}
|
|
@@ -1,20 +1,21 @@
|
|
|
1
|
-
import { useCallback
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
1
|
+
import { useCallback } from "react";
|
|
2
|
+
import { useMenuContribution } from "@dxos/react-ui-menu";
|
|
3
|
+
import * as Panel from "@dxos/react-ui/Panel";
|
|
4
4
|
import { jsx, jsxs } from "react/jsx-runtime";
|
|
5
5
|
import * as Capabilities from "@dxos/app-framework/Capabilities";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
6
|
+
import * as Surface from "@dxos/app-framework/Surface";
|
|
7
|
+
import * as AppSurface from "@dxos/app-toolkit/AppSurface";
|
|
8
|
+
import * as Hooks from "@dxos/app-framework/Hooks";
|
|
9
|
+
import * as ToolkitHooks from "@dxos/app-toolkit/Hooks";
|
|
8
10
|
import * as LayoutOperation from "@dxos/app-toolkit/LayoutOperation";
|
|
9
11
|
import { Attention, useAttention } from "@dxos/react-ui-attention";
|
|
10
12
|
import { PipelineComponent } from "#components";
|
|
11
13
|
import { usePipelineBoardModel } from "#hooks";
|
|
12
14
|
//#region src/containers/PipelineArticle/PipelineArticle.tsx
|
|
13
|
-
var PIPELINE_ITEM = "PipelineItem";
|
|
14
15
|
var PipelineArticle = ({ role, subject: pipeline, attendableId }) => {
|
|
15
|
-
const registry = useCapability(Capabilities.AtomRegistry);
|
|
16
|
+
const registry = Hooks.useCapability(Capabilities.AtomRegistry);
|
|
16
17
|
const model = usePipelineBoardModel(pipeline, registry);
|
|
17
|
-
const { invokePromise } = useOperationInvoker();
|
|
18
|
+
const { invokePromise } = Hooks.useOperationInvoker();
|
|
18
19
|
const { hasAttention } = useAttention(attendableId);
|
|
19
20
|
const handleColumnAdd = useCallback(() => invokePromise(LayoutOperation.UpdateCompanion, { subject: Attention.linkedSegment("settings") }), [invokePromise]);
|
|
20
21
|
return /* @__PURE__ */ jsx(PipelineComponent.Root, {
|
|
@@ -22,10 +23,7 @@ var PipelineArticle = ({ role, subject: pipeline, attendableId }) => {
|
|
|
22
23
|
onAddColumn: handleColumnAdd,
|
|
23
24
|
children: /* @__PURE__ */ jsxs(Panel.Root, {
|
|
24
25
|
role,
|
|
25
|
-
children: [/* @__PURE__ */ jsx(Panel.Toolbar, {
|
|
26
|
-
asChild: true,
|
|
27
|
-
children: /* @__PURE__ */ jsx(PipelineComponent.Toolbar, { disabled: !hasAttention })
|
|
28
|
-
}), /* @__PURE__ */ jsx(Panel.Content, {
|
|
26
|
+
children: [/* @__PURE__ */ jsx(Panel.Header, { children: /* @__PURE__ */ jsx(PipelineComponent.Toolbar, { inactive: !hasAttention }) }), /* @__PURE__ */ jsx(Panel.Body, {
|
|
29
27
|
asChild: true,
|
|
30
28
|
children: /* @__PURE__ */ jsx(PipelineComponent.Content, {
|
|
31
29
|
asChild: true,
|
|
@@ -36,19 +34,15 @@ var PipelineArticle = ({ role, subject: pipeline, attendableId }) => {
|
|
|
36
34
|
})
|
|
37
35
|
});
|
|
38
36
|
};
|
|
39
|
-
var PipelineItem = ({ item, projectionModel }) => {
|
|
40
|
-
const
|
|
41
|
-
const
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
items
|
|
49
|
-
});
|
|
50
|
-
return () => menu.removeMenuItems(OBJECT_ACTIONS_CONTRIBUTION_ID);
|
|
51
|
-
}, [menu, items]);
|
|
37
|
+
var PipelineItem = ({ item, projectionModel, menu }) => {
|
|
38
|
+
const [cardRef, pivotId] = ToolkitHooks.useCardPivot();
|
|
39
|
+
const items = ToolkitHooks.useObjectMenuItems(item, pivotId);
|
|
40
|
+
useMenuContribution(menu, {
|
|
41
|
+
id: ToolkitHooks.OBJECT_ACTIONS_CONTRIBUTION_ID,
|
|
42
|
+
mode: "additive",
|
|
43
|
+
priority: ToolkitHooks.OBJECT_ACTIONS_CONTRIBUTION_PRIORITY,
|
|
44
|
+
items
|
|
45
|
+
});
|
|
52
46
|
return /* @__PURE__ */ jsx("div", {
|
|
53
47
|
ref: cardRef,
|
|
54
48
|
className: "contents",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-PipelineArticle.mjs","names":[],"sources":["../../src/containers/PipelineArticle/PipelineArticle.tsx"],"sourcesContent":["//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useCallback
|
|
1
|
+
{"version":3,"file":"chunk-PipelineArticle.mjs","names":[],"sources":["../../src/containers/PipelineArticle/PipelineArticle.tsx"],"sourcesContent":["//\n// Copyright 2023 DXOS.org\n//\n\nimport React, { useCallback } from 'react';\n\nimport * as Capabilities from '@dxos/app-framework/Capabilities';\nimport * as Hooks from '@dxos/app-framework/Hooks';\nimport * as Surface from '@dxos/app-framework/Surface';\nimport * as AppSurface from '@dxos/app-toolkit/AppSurface';\nimport * as ToolkitHooks from '@dxos/app-toolkit/Hooks';\nimport * as LayoutOperation from '@dxos/app-toolkit/LayoutOperation';\nimport { Attention, useAttention } from '@dxos/react-ui-attention';\nimport { useMenuContribution } from '@dxos/react-ui-menu';\nimport * as Panel from '@dxos/react-ui/Panel';\nimport { type Pipeline } from '@dxos/types';\n\nimport { type ItemProps, PipelineComponent } from '#components';\nimport { usePipelineBoardModel } from '#hooks';\n\nexport type PipelineArticleProps = AppSurface.ObjectArticleProps<Pipeline.Pipeline>;\n\nexport const PipelineArticle = ({ role, subject: pipeline, attendableId }: PipelineArticleProps) => {\n const registry = Hooks.useCapability(Capabilities.AtomRegistry);\n const model = usePipelineBoardModel(pipeline, registry);\n const { invokePromise } = Hooks.useOperationInvoker();\n const { hasAttention } = useAttention(attendableId);\n\n const handleColumnAdd = useCallback(\n () =>\n invokePromise(LayoutOperation.UpdateCompanion, {\n subject: Attention.linkedSegment('settings'),\n }),\n [invokePromise],\n );\n\n return (\n <PipelineComponent.Root Item={PipelineItem} onAddColumn={handleColumnAdd}>\n <Panel.Root role={role}>\n <Panel.Header>\n <PipelineComponent.Toolbar inactive={!hasAttention} />\n </Panel.Header>\n <Panel.Body asChild>\n <PipelineComponent.Content asChild model={model}>\n <PipelineComponent.Columns pipeline={pipeline} />\n </PipelineComponent.Content>\n </Panel.Body>\n </Panel.Root>\n </PipelineComponent.Root>\n );\n};\n\nconst PipelineItem = ({ item, projectionModel, menu }: ItemProps) => {\n // The card menu renders in a portal; resolve the origin plank from the item element instead.\n const [cardRef, pivotId] = ToolkitHooks.useCardPivot();\n const items = ToolkitHooks.useObjectMenuItems(item, pivotId);\n useMenuContribution(menu, {\n id: ToolkitHooks.OBJECT_ACTIONS_CONTRIBUTION_ID,\n mode: 'additive',\n priority: ToolkitHooks.OBJECT_ACTIONS_CONTRIBUTION_PRIORITY,\n items,\n });\n\n return (\n <div ref={cardRef} className='contents'>\n <Surface.Surface\n type={AppSurface.CardContent}\n data={{\n subject: item,\n projection: projectionModel,\n }}\n limit={1}\n />\n </div>\n );\n};\n\nPipelineArticle.displayName = 'PipelineArticle';\n"],"mappings":";;;;;;;;;;;;;;AAsBA,IAAa,mBAAmB,EAAE,MAAM,SAAS,UAAU,mBAAyC;CAClG,MAAM,WAAW,MAAM,cAAc,aAAa,YAAY;CAC9D,MAAM,QAAQ,sBAAsB,UAAU,QAAQ;CACtD,MAAM,EAAE,kBAAkB,MAAM,oBAAoB;CACpD,MAAM,EAAE,iBAAiB,aAAa,YAAY;CAElD,MAAM,kBAAkB,kBAEpB,cAAc,gBAAgB,iBAAiB,EAC7C,SAAS,UAAU,cAAc,UAAU,EAC7C,CAAC,GACH,CAAC,aAAa,CAChB;CAEA,OACE,oBAAC,kBAAkB,MAAnB;EAAwB,MAAM;EAAc,aAAa;EACvD,UAAA,qBAAC,MAAM,MAAP;GAAkB;GAAlB,UAAA,CACE,oBAAC,MAAM,QAAP,EAAA,UACE,oBAAC,kBAAkB,SAAnB,EAA2B,UAAU,CAAC,aAAe,CAAA,EACzC,CAAA,GACd,oBAAC,MAAM,MAAP;IAAY,SAAA;IACV,UAAA,oBAAC,kBAAkB,SAAnB;KAA2B,SAAA;KAAe;KACxC,UAAA,oBAAC,kBAAkB,SAAnB,EAAqC,SAAW,CAAA;IACvB,CAAA;GACjB,CAAA,CACF;;CACU,CAAA;AAE5B;AAEA,IAAM,gBAAgB,EAAE,MAAM,iBAAiB,WAAsB;CAEnE,MAAM,CAAC,SAAS,WAAW,aAAa,aAAa;CACrD,MAAM,QAAQ,aAAa,mBAAmB,MAAM,OAAO;CAC3D,oBAAoB,MAAM;EACxB,IAAI,aAAa;EACjB,MAAM;EACN,UAAU,aAAa;EACvB;CACF,CAAC;CAED,OACE,oBAAC,OAAD;EAAK,KAAK;EAAS,WAAU;EAC3B,UAAA,oBAAC,QAAQ,SAAT;GACE,MAAM,WAAW;GACjB,MAAM;IACJ,SAAS;IACT,YAAY;GACd;GACA,OAAO;EACR,CAAA;CACE,CAAA;AAET;AAEA,gBAAgB,cAAc"}
|
|
@@ -1,25 +1,26 @@
|
|
|
1
1
|
import { meta } from "#meta";
|
|
2
2
|
import { useCallback, useMemo, useRef, useState } from "react";
|
|
3
|
-
import
|
|
3
|
+
import * as ToolkitQuery from "@dxos/app-toolkit/Query";
|
|
4
4
|
import { Filter, JsonSchema, Obj, Query, Ref, Scope, Tag } from "@dxos/echo";
|
|
5
5
|
import { useObject, useQuery } from "@dxos/echo-react";
|
|
6
|
-
import
|
|
6
|
+
import * as Hooks from "@dxos/react-ui/Hooks";
|
|
7
7
|
import { ViewModel } from "@dxos/schema";
|
|
8
|
-
import {
|
|
8
|
+
import { jsx, jsxs } from "react/jsx-runtime";
|
|
9
9
|
import * as Schema from "effect/Schema";
|
|
10
10
|
import { Pipeline } from "@dxos/types";
|
|
11
11
|
import { arrayMove } from "@dxos/util";
|
|
12
|
-
import
|
|
12
|
+
import * as ToolkitHooks from "@dxos/app-toolkit/Hooks";
|
|
13
13
|
import * as Struct from "effect/Struct";
|
|
14
|
-
import { Form,
|
|
14
|
+
import { Form, ViewEditor } from "@dxos/react-ui-form";
|
|
15
15
|
import { OrderedList } from "@dxos/react-ui-list";
|
|
16
|
+
import * as SystemButton from "@dxos/react-ui/SystemButton";
|
|
16
17
|
//#region src/containers/PipelineProperties/PipelineProperties.tsx
|
|
17
18
|
var ColumnFormSchema = Pipeline.Column.mapFields((fields) => Struct.pick(fields, ["name"])).mapFields(Struct.map(Schema.mutableKey));
|
|
18
19
|
/**
|
|
19
20
|
* Supports editing the pipeline view.
|
|
20
21
|
*/
|
|
21
22
|
var PipelineProperties = ({ subject: pipeline }) => {
|
|
22
|
-
const { t } = useTranslation(meta.profile.key);
|
|
23
|
+
const { t } = Hooks.useTranslation(meta.profile.key);
|
|
23
24
|
const db = Obj.getDatabase(pipeline);
|
|
24
25
|
const [expandedId, setExpandedId] = useState();
|
|
25
26
|
const [columns, updateColumns] = useObject(pipeline, "columns");
|
|
@@ -28,16 +29,16 @@ var PipelineProperties = ({ subject: pipeline }) => {
|
|
|
28
29
|
const [type, setType] = useState();
|
|
29
30
|
const projectionRef = useRef(null);
|
|
30
31
|
const tags = useQuery(db, Filter.type(Tag.Tag));
|
|
31
|
-
const types = useTypeOptions({
|
|
32
|
+
const types = ToolkitHooks.useTypeOptions({
|
|
32
33
|
db,
|
|
33
34
|
annotation: {
|
|
34
35
|
location: ["database", "runtime"],
|
|
35
36
|
kind: ["user"]
|
|
36
37
|
}
|
|
37
38
|
});
|
|
38
|
-
useAsyncEffect(async () => {
|
|
39
|
+
Hooks.useAsyncEffect(async () => {
|
|
39
40
|
if (!view?.query || !db) return;
|
|
40
|
-
const foundType = await resolveSchemaWithRegistry(db, view.query.ast);
|
|
41
|
+
const foundType = await ToolkitQuery.resolveSchemaWithRegistry(db, view.query.ast);
|
|
41
42
|
if (foundType && foundType !== type) setType(() => foundType);
|
|
42
43
|
}, [
|
|
43
44
|
db,
|
|
@@ -54,7 +55,7 @@ var PipelineProperties = ({ subject: pipeline }) => {
|
|
|
54
55
|
updateView((view) => {
|
|
55
56
|
view.query.ast = query.ast;
|
|
56
57
|
});
|
|
57
|
-
const newType = await resolveSchemaWithRegistry(db, query.ast);
|
|
58
|
+
const newType = await ToolkitQuery.resolveSchemaWithRegistry(db, query.ast);
|
|
58
59
|
if (!newType) return;
|
|
59
60
|
const newView = ViewModel.make({
|
|
60
61
|
query,
|
|
@@ -108,47 +109,50 @@ var PipelineProperties = ({ subject: pipeline }) => {
|
|
|
108
109
|
});
|
|
109
110
|
setExpandedId(newView.id);
|
|
110
111
|
}, [db, updateColumns]);
|
|
111
|
-
return /* @__PURE__ */
|
|
112
|
+
return /* @__PURE__ */ jsx(Form.FieldSet, {
|
|
112
113
|
label: t("columns.label"),
|
|
113
|
-
|
|
114
|
+
actions: /* @__PURE__ */ jsx(SystemButton.Add, {
|
|
114
115
|
label: t("add-column.label"),
|
|
115
116
|
onClick: handleAdd
|
|
116
|
-
}
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
117
|
+
}),
|
|
118
|
+
children: /* @__PURE__ */ jsx(OrderedList.Root, {
|
|
119
|
+
items: columns,
|
|
120
|
+
getId: (column) => column.view.uri,
|
|
121
|
+
getLabel: (column) => column.name || t("untitled-column.title"),
|
|
122
|
+
onMove: handleMove,
|
|
123
|
+
children: ({ items }) => /* @__PURE__ */ jsx(OrderedList.Content, { children: items.map((column) => /* @__PURE__ */ jsxs(OrderedList.Item, {
|
|
124
|
+
id: column.view.uri,
|
|
125
|
+
open: expandedId === column.view.uri,
|
|
126
|
+
onOpenChange: (open) => setExpandedId(open ? column.view.uri : void 0),
|
|
127
|
+
children: [
|
|
128
|
+
/* @__PURE__ */ jsx(OrderedList.DragHandle, {}),
|
|
129
|
+
/* @__PURE__ */ jsx(OrderedList.ItemText, {}),
|
|
130
|
+
/* @__PURE__ */ jsx(SystemButton.Remove, {
|
|
131
|
+
label: t("delete-column.label"),
|
|
132
|
+
onClick: () => handleDelete(column),
|
|
133
|
+
"data-testid": "column.delete"
|
|
134
|
+
}),
|
|
135
|
+
column.view.target && /* @__PURE__ */ jsxs(OrderedList.Detail, { children: [/* @__PURE__ */ jsx(Form.Root, {
|
|
136
|
+
schema: ColumnFormSchema,
|
|
137
|
+
values: column,
|
|
138
|
+
onValuesChanged: handleColumnValuesChanged(column),
|
|
139
|
+
children: /* @__PURE__ */ jsx(Form.Content, { children: /* @__PURE__ */ jsx(Form.Fields, {}) })
|
|
140
|
+
}), /* @__PURE__ */ jsx(ViewEditor, {
|
|
141
|
+
ref: projectionRef,
|
|
142
|
+
mode: "tag",
|
|
143
|
+
readonly: true,
|
|
144
|
+
type,
|
|
145
|
+
view: column.view.target,
|
|
146
|
+
registry: db?.graph.registry,
|
|
147
|
+
db,
|
|
148
|
+
tags,
|
|
149
|
+
types,
|
|
150
|
+
onQueryChanged: handleQueryChanged
|
|
151
|
+
})] })
|
|
152
|
+
]
|
|
153
|
+
}, column.view.uri)) })
|
|
154
|
+
})
|
|
155
|
+
});
|
|
152
156
|
};
|
|
153
157
|
PipelineProperties.displayName = "PipelineProperties";
|
|
154
158
|
//#endregion
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"chunk-PipelineProperties.mjs","names":[],"sources":["../../src/containers/PipelineProperties/PipelineProperties.tsx"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\nimport * as Struct from 'effect/Struct';\nimport React, { useCallback, useMemo, useRef, useState } from 'react';\n\nimport { resolveSchemaWithRegistry } from '@dxos/app-toolkit/query';\nimport { AppSurface, useTypeOptions } from '@dxos/app-toolkit/ui';\nimport { EID, Filter, JsonSchema, Obj, Query, type QueryAST, Ref, Scope, Tag, type Type } from '@dxos/echo';\nimport { useObject, useQuery } from '@dxos/echo-react';\nimport { type Mutable } from '@dxos/echo/Obj';\nimport { SchemaEx } from '@dxos/effect';\nimport { useAsyncEffect, useTranslation } from '@dxos/react-ui';\nimport { Form, FormFieldHeader, ViewEditor } from '@dxos/react-ui-form';\nimport { OrderedList } from '@dxos/react-ui-list';\nimport { type ProjectionModel, ViewModel } from '@dxos/schema';\nimport { Pipeline } from '@dxos/types';\nimport { arrayMove } from '@dxos/util';\n\nimport { meta } from '#meta';\n\nconst ColumnFormSchema = Pipeline.Column.mapFields((fields) => Struct.pick(fields, ['name'])).mapFields(\n Struct.map(Schema.mutableKey),\n);\n\nexport type PipelinePropertiesProps = AppSurface.ObjectPropertiesProps<Pipeline.Pipeline>;\n\n/**\n * Supports editing the pipeline view.\n */\nexport const PipelineProperties = ({ subject: pipeline }: PipelinePropertiesProps) => {\n const { t } = useTranslation(meta.profile.key);\n const db = Obj.getDatabase(pipeline);\n const [expandedId, setExpandedId] = useState<string>();\n const [columns, updateColumns] = useObject(pipeline, 'columns');\n const column = useMemo(() => columns.find((column) => column.view.uri === expandedId), [columns, expandedId]);\n const [view, updateView] = useObject(column?.view);\n const [type, setType] = useState<Type.AnyEntity>();\n const projectionRef = useRef<ProjectionModel>(null);\n const tags = useQuery(db, Filter.type(Tag.Tag));\n const types = useTypeOptions({\n db,\n annotation: {\n location: ['database', 'runtime'],\n kind: ['user'],\n },\n });\n\n useAsyncEffect(async () => {\n if (!view?.query || !db) {\n return;\n }\n\n const foundType = await resolveSchemaWithRegistry(db, view.query.ast);\n if (foundType && foundType !== type) {\n setType(() => foundType);\n }\n }, [db, view, type]);\n\n const handleMove = useCallback(\n (fromIndex: number, toIndex: number) =>\n updateColumns((columns) => {\n arrayMove(columns, fromIndex, toIndex);\n }),\n [updateColumns],\n );\n\n const handleQueryChanged = useCallback(\n async (newQuery: QueryAST.Query, target?: EID.EID) => {\n if (!view || !db) {\n return;\n }\n\n const queue = target;\n const query = queue ? Query.fromAst(newQuery).from([Scope.feed(String(queue))]) : Query.fromAst(newQuery);\n updateView((view) => {\n view.query.ast = query.ast as Mutable<typeof query.ast>;\n });\n const newType = await resolveSchemaWithRegistry(db, query.ast);\n if (!newType) {\n return;\n }\n\n const newView = ViewModel.make({\n query,\n jsonSchema: newType.jsonSchema,\n });\n updateView((view) => {\n view.projection = Obj.getSnapshot(newView).projection as Mutable<typeof view.projection>;\n });\n\n setType(() => newType);\n },\n [db, view, updateView, type],\n );\n\n const handleColumnValuesChanged = useCallback(\n (column: Pipeline.Column) =>\n (newValues: { name?: string }, { changed }: { changed: Record<SchemaEx.JsonPath, boolean> }) => {\n if (changed['name' as SchemaEx.JsonPath]) {\n const columnIndex = columns.findIndex((c) => c === column);\n if (columnIndex === -1) {\n return;\n }\n updateColumns((cols) => {\n cols[columnIndex].name = newValues.name ?? '';\n });\n }\n },\n [columns, updateColumns],\n );\n\n const handleDelete = useCallback(\n async (column: Pipeline.Column) => {\n if (column.view.uri === expandedId) {\n setExpandedId(undefined);\n }\n\n const index = columns.findIndex((l) => l === column);\n const viewToRemove = await column.view.load();\n updateColumns((columns) => {\n columns.splice(index, 1);\n });\n db?.remove(viewToRemove);\n },\n [expandedId, columns, updateColumns, db],\n );\n\n const handleAdd = useCallback(() => {\n if (!db) {\n return;\n }\n\n const newView = db.add(\n ViewModel.make({\n query: Query.select(Filter.nothing()),\n jsonSchema: JsonSchema.toJsonSchema(Schema.Struct({})),\n }),\n );\n\n updateColumns((columns) => {\n columns.push({\n name: '',\n // Type assertion needed due to QueryAST type variance.\n view: Ref.make(newView) as (typeof columns)[number]['view'],\n order: [],\n });\n });\n setExpandedId(newView.id);\n }, [db, updateColumns]);\n\n return (\n <Form.Section>\n <FormFieldHeader label={t('columns.label')} add={{ label: t('add-column.label'), onClick: handleAdd }} />\n <OrderedList.Root<Pipeline.Column>\n items={columns}\n isItem={Schema.is(Pipeline.Column)}\n getId={(column) => column.view.uri}\n onMove={handleMove}\n expandedId={expandedId}\n onExpandedChange={setExpandedId}\n >\n {({ items }) => (\n <OrderedList.Content>\n {items.map((column) => (\n <OrderedList.DetailItem<Pipeline.Column>\n key={column.view.uri}\n id={column.view.uri}\n item={column}\n title={column.name || t('untitled-column.title')}\n trailing={\n <OrderedList.DeleteButton\n label={t('delete-column.label')}\n onClick={() => handleDelete(column)}\n data-testid='column.delete'\n />\n }\n >\n {column.view.target && (\n <>\n <Form.Root\n schema={ColumnFormSchema}\n values={column}\n onValuesChanged={handleColumnValuesChanged(column)}\n >\n <Form.Content>\n <Form.FieldSet />\n </Form.Content>\n </Form.Root>\n <ViewEditor\n ref={projectionRef}\n mode='tag'\n readonly\n type={type}\n view={column.view.target}\n registry={db?.graph.registry}\n db={db}\n tags={tags}\n types={types}\n onQueryChanged={handleQueryChanged}\n />\n </>\n )}\n </OrderedList.DetailItem>\n ))}\n </OrderedList.Content>\n )}\n </OrderedList.Root>\n </Form.Section>\n );\n};\n\nPipelineProperties.displayName = 'PipelineProperties';\n"],"mappings":";;;;;;;;;;;;;;;;AAuBA,IAAM,mBAAmB,SAAS,OAAO,WAAW,WAAW,OAAO,KAAK,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAC5F,OAAO,IAAI,OAAO,UAAU,CAC9B;;;;AAOA,IAAa,sBAAsB,EAAE,SAAS,eAAwC;CACpF,MAAM,EAAE,MAAM,eAAe,KAAK,QAAQ,GAAG;CAC7C,MAAM,KAAK,IAAI,YAAY,QAAQ;CACnC,MAAM,CAAC,YAAY,iBAAiB,SAAiB;CACrD,MAAM,CAAC,SAAS,iBAAiB,UAAU,UAAU,SAAS;CAC9D,MAAM,SAAS,cAAc,QAAQ,MAAM,WAAW,OAAO,KAAK,QAAQ,UAAU,GAAG,CAAC,SAAS,UAAU,CAAC;CAC5G,MAAM,CAAC,MAAM,cAAc,UAAU,QAAQ,IAAI;CACjD,MAAM,CAAC,MAAM,WAAW,SAAyB;CACjD,MAAM,gBAAgB,OAAwB,IAAI;CAClD,MAAM,OAAO,SAAS,IAAI,OAAO,KAAK,IAAI,GAAG,CAAC;CAC9C,MAAM,QAAQ,eAAe;EAC3B;EACA,YAAY;GACV,UAAU,CAAC,YAAY,SAAS;GAChC,MAAM,CAAC,MAAM;EACf;CACF,CAAC;CAED,eAAe,YAAY;EACzB,IAAI,CAAC,MAAM,SAAS,CAAC,IACnB;EAGF,MAAM,Y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AQ;IACR,iBAAiB,0BAA0B,MAAM;IAEjD,UAAA,oBAAC,KAAK,SAAN,EAAA,UACE,oBAAC,KAAK,UAAN,CAAgB,CAAA,EACJ,CAAA;GACL,CAAA,GACX,oBAAC,YAAD;IACE,KAAK;IACL,MAAK;IACL,UAAA;IACM;IACN,MAAM,OAAO,KAAK;IAClB,UAAU,IAAI,MAAM;IAChB;IACE;IACC;IACP,gBAAgB;GACjB,CAAA,CACD,EAAA,CAAA;EAEkB,GArCjB,OAAO,KAAK,GAqCK,CACzB,EACkB,CAAA;CAEP,CAAA,CACN,EAAA,CAAA;AAElB;AAEA,mBAAmB,cAAc"}
|
|
1
|
+
{"version":3,"file":"chunk-PipelineProperties.mjs","names":[],"sources":["../../src/containers/PipelineProperties/PipelineProperties.tsx"],"sourcesContent":["//\n// Copyright 2025 DXOS.org\n//\n\nimport * as Schema from 'effect/Schema';\nimport * as Struct from 'effect/Struct';\nimport React, { useCallback, useMemo, useRef, useState } from 'react';\n\nimport * as AppSurface from '@dxos/app-toolkit/AppSurface';\nimport * as ToolkitHooks from '@dxos/app-toolkit/Hooks';\nimport * as ToolkitQuery from '@dxos/app-toolkit/Query';\nimport { EID, Filter, JsonSchema, Obj, Query, type QueryAST, Ref, Scope, Tag, type Type } from '@dxos/echo';\nimport { useObject, useQuery } from '@dxos/echo-react';\nimport * as SchemaEx from '@dxos/effect/SchemaEx';\nimport { Form, ViewEditor } from '@dxos/react-ui-form';\nimport { OrderedList } from '@dxos/react-ui-list';\nimport * as Hooks from '@dxos/react-ui/Hooks';\nimport * as SystemButton from '@dxos/react-ui/SystemButton';\nimport { type ProjectionModel, ViewModel } from '@dxos/schema';\nimport { Pipeline } from '@dxos/types';\nimport { arrayMove } from '@dxos/util';\n\nimport { meta } from '#meta';\n\nconst ColumnFormSchema = Pipeline.Column.mapFields((fields) => Struct.pick(fields, ['name'])).mapFields(\n Struct.map(Schema.mutableKey),\n);\n\nexport type PipelinePropertiesProps = AppSurface.ObjectPropertiesProps<Pipeline.Pipeline>;\n\n/**\n * Supports editing the pipeline view.\n */\nexport const PipelineProperties = ({ subject: pipeline }: PipelinePropertiesProps) => {\n const { t } = Hooks.useTranslation(meta.profile.key);\n const db = Obj.getDatabase(pipeline);\n const [expandedId, setExpandedId] = useState<string>();\n const [columns, updateColumns] = useObject(pipeline, 'columns');\n const column = useMemo(() => columns.find((column) => column.view.uri === expandedId), [columns, expandedId]);\n const [view, updateView] = useObject(column?.view);\n const [type, setType] = useState<Type.AnyEntity>();\n const projectionRef = useRef<ProjectionModel>(null);\n const tags = useQuery(db, Filter.type(Tag.Tag));\n const types = ToolkitHooks.useTypeOptions({\n db,\n annotation: {\n location: ['database', 'runtime'],\n kind: ['user'],\n },\n });\n\n Hooks.useAsyncEffect(async () => {\n if (!view?.query || !db) {\n return;\n }\n\n const foundType = await ToolkitQuery.resolveSchemaWithRegistry(db, view.query.ast);\n if (foundType && foundType !== type) {\n setType(() => foundType);\n }\n }, [db, view, type]);\n\n const handleMove = useCallback(\n (fromIndex: number, toIndex: number) =>\n updateColumns((columns) => {\n arrayMove(columns, fromIndex, toIndex);\n }),\n [updateColumns],\n );\n\n const handleQueryChanged = useCallback(\n async (newQuery: QueryAST.Query, target?: EID.EID) => {\n if (!view || !db) {\n return;\n }\n\n const queue = target;\n const query = queue ? Query.fromAst(newQuery).from([Scope.feed(String(queue))]) : Query.fromAst(newQuery);\n updateView((view) => {\n view.query.ast = query.ast as Obj.Mutable<typeof query.ast>;\n });\n const newType = await ToolkitQuery.resolveSchemaWithRegistry(db, query.ast);\n if (!newType) {\n return;\n }\n\n const newView = ViewModel.make({\n query,\n jsonSchema: newType.jsonSchema,\n });\n updateView((view) => {\n view.projection = Obj.getSnapshot(newView).projection as Obj.Mutable<typeof view.projection>;\n });\n\n setType(() => newType);\n },\n [db, view, updateView, type],\n );\n\n const handleColumnValuesChanged = useCallback(\n (column: Pipeline.Column) =>\n (newValues: { name?: string }, { changed }: { changed: Record<SchemaEx.JsonPath, boolean> }) => {\n if (changed['name' as SchemaEx.JsonPath]) {\n const columnIndex = columns.findIndex((c) => c === column);\n if (columnIndex === -1) {\n return;\n }\n updateColumns((cols) => {\n cols[columnIndex].name = newValues.name ?? '';\n });\n }\n },\n [columns, updateColumns],\n );\n\n const handleDelete = useCallback(\n async (column: Pipeline.Column) => {\n if (column.view.uri === expandedId) {\n setExpandedId(undefined);\n }\n\n const index = columns.findIndex((l) => l === column);\n const viewToRemove = await column.view.load();\n updateColumns((columns) => {\n columns.splice(index, 1);\n });\n db?.remove(viewToRemove);\n },\n [expandedId, columns, updateColumns, db],\n );\n\n const handleAdd = useCallback(() => {\n if (!db) {\n return;\n }\n\n const newView = db.add(\n ViewModel.make({\n query: Query.select(Filter.nothing()),\n jsonSchema: JsonSchema.toJsonSchema(Schema.Struct({})),\n }),\n );\n\n updateColumns((columns) => {\n columns.push({\n name: '',\n // Type assertion needed due to QueryAST type variance.\n view: Ref.make(newView) as (typeof columns)[number]['view'],\n order: [],\n });\n });\n setExpandedId(newView.id);\n }, [db, updateColumns]);\n\n return (\n <Form.FieldSet\n label={t('columns.label')}\n actions={<SystemButton.Add label={t('add-column.label')} onClick={handleAdd} />}\n >\n <OrderedList.Root<Pipeline.Column>\n items={columns}\n getId={(column) => column.view.uri}\n getLabel={(column) => column.name || t('untitled-column.title')}\n onMove={handleMove}\n >\n {({ items }) => (\n <OrderedList.Content>\n {items.map((column) => (\n <OrderedList.Item\n key={column.view.uri}\n id={column.view.uri}\n open={expandedId === column.view.uri}\n onOpenChange={(open) => setExpandedId(open ? column.view.uri : undefined)}\n >\n <OrderedList.DragHandle />\n <OrderedList.ItemText />\n <SystemButton.Remove\n label={t('delete-column.label')}\n onClick={() => handleDelete(column)}\n data-testid='column.delete'\n />\n {column.view.target && (\n <OrderedList.Detail>\n <Form.Root\n schema={ColumnFormSchema}\n values={column}\n onValuesChanged={handleColumnValuesChanged(column)}\n >\n <Form.Content>\n <Form.Fields />\n </Form.Content>\n </Form.Root>\n <ViewEditor\n ref={projectionRef}\n mode='tag'\n readonly\n type={type}\n view={column.view.target}\n registry={db?.graph.registry}\n db={db}\n tags={tags}\n types={types}\n onQueryChanged={handleQueryChanged}\n />\n </OrderedList.Detail>\n )}\n </OrderedList.Item>\n ))}\n </OrderedList.Content>\n )}\n </OrderedList.Root>\n </Form.FieldSet>\n );\n};\n\nPipelineProperties.displayName = 'PipelineProperties';\n"],"mappings":";;;;;;;;;;;;;;;;;AAwBA,IAAM,mBAAmB,SAAS,OAAO,WAAW,WAAW,OAAO,KAAK,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,UAC5F,OAAO,IAAI,OAAO,UAAU,CAC9B;;;;AAOA,IAAa,sBAAsB,EAAE,SAAS,eAAwC;CACpF,MAAM,EAAE,MAAM,MAAM,eAAe,KAAK,QAAQ,GAAG;CACnD,MAAM,KAAK,IAAI,YAAY,QAAQ;CACnC,MAAM,CAAC,YAAY,iBAAiB,SAAiB;CACrD,MAAM,CAAC,SAAS,iBAAiB,UAAU,UAAU,SAAS;CAC9D,MAAM,SAAS,cAAc,QAAQ,MAAM,WAAW,OAAO,KAAK,QAAQ,UAAU,GAAG,CAAC,SAAS,UAAU,CAAC;CAC5G,MAAM,CAAC,MAAM,cAAc,UAAU,QAAQ,IAAI;CACjD,MAAM,CAAC,MAAM,WAAW,SAAyB;CACjD,MAAM,gBAAgB,OAAwB,IAAI;CAClD,MAAM,OAAO,SAAS,IAAI,OAAO,KAAK,IAAI,GAAG,CAAC;CAC9C,MAAM,QAAQ,aAAa,eAAe;EACxC;EACA,YAAY;GACV,UAAU,CAAC,YAAY,SAAS;GAChC,MAAM,CAAC,MAAM;EACf;CACF,CAAC;CAED,MAAM,eAAe,YAAY;EAC/B,IAAI,CAAC,MAAM,SAAS,CAAC,IACnB;EAGF,MAAM,YAAY,MAAM,aAAa,0BAA0B,IAAI,KAAK,MAAM,GAAG;EACjF,IAAI,aAAa,cAAc,MAC7B,cAAc,SAAS;CAE3B,GAAG;EAAC;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