@dxos/plugin-kanban 0.8.4-main.bc674ce → 0.8.4-main.bcb3aa67d6
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/dist/lib/browser/blueprints/index.mjs +23 -4
- package/dist/lib/browser/blueprints/index.mjs.map +4 -4
- package/dist/lib/browser/chunk-A3PBV3S5.mjs +105 -0
- package/dist/lib/browser/chunk-A3PBV3S5.mjs.map +7 -0
- package/dist/lib/browser/delete-card-VPNVIWOA.mjs +32 -0
- package/dist/lib/browser/delete-card-VPNVIWOA.mjs.map +7 -0
- package/dist/lib/browser/delete-card-field-4HHF2GYX.mjs +50 -0
- package/dist/lib/browser/delete-card-field-4HHF2GYX.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +84 -61
- package/dist/lib/browser/index.mjs.map +4 -4
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/operations/index.mjs +13 -0
- package/dist/lib/browser/operations/index.mjs.map +7 -0
- package/dist/lib/browser/restore-card-4GG2RYKR.mjs +29 -0
- package/dist/lib/browser/restore-card-4GG2RYKR.mjs.map +7 -0
- package/dist/lib/browser/restore-card-field-3T26ACYX.mjs +48 -0
- package/dist/lib/browser/restore-card-field-3T26ACYX.mjs.map +7 -0
- package/dist/lib/browser/types/index.mjs +94 -8
- package/dist/lib/browser/types/index.mjs.map +4 -4
- package/dist/lib/node-esm/blueprints/index.mjs +23 -4
- package/dist/lib/node-esm/blueprints/index.mjs.map +4 -4
- package/dist/lib/node-esm/chunk-6LELYA2G.mjs +106 -0
- package/dist/lib/node-esm/chunk-6LELYA2G.mjs.map +7 -0
- package/dist/lib/node-esm/delete-card-5PW5OMFN.mjs +33 -0
- package/dist/lib/node-esm/delete-card-5PW5OMFN.mjs.map +7 -0
- package/dist/lib/node-esm/delete-card-field-KPJU2AQ3.mjs +51 -0
- package/dist/lib/node-esm/delete-card-field-KPJU2AQ3.mjs.map +7 -0
- package/dist/lib/node-esm/index.mjs +84 -61
- package/dist/lib/node-esm/index.mjs.map +4 -4
- package/dist/lib/node-esm/meta.json +1 -1
- package/dist/lib/node-esm/operations/index.mjs +14 -0
- package/dist/lib/node-esm/operations/index.mjs.map +7 -0
- package/dist/lib/node-esm/restore-card-X2TKMU5A.mjs +30 -0
- package/dist/lib/node-esm/restore-card-X2TKMU5A.mjs.map +7 -0
- package/dist/lib/node-esm/restore-card-field-IUTL4RTR.mjs +49 -0
- package/dist/lib/node-esm/restore-card-field-IUTL4RTR.mjs.map +7 -0
- package/dist/lib/node-esm/types/index.mjs +94 -8
- package/dist/lib/node-esm/types/index.mjs.map +4 -4
- package/dist/types/src/KanbanPlugin.d.ts.map +1 -1
- package/dist/types/src/blueprints/index.d.ts +1 -1
- package/dist/types/src/blueprints/index.d.ts.map +1 -1
- package/dist/types/src/blueprints/kanban-blueprint.d.ts +3 -21
- package/dist/types/src/blueprints/kanban-blueprint.d.ts.map +1 -1
- package/dist/types/src/capabilities/{artifact-definition/artifact-definition.d.ts → artifact-definition.d.ts} +1 -1
- package/dist/types/src/capabilities/artifact-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts +6 -0
- package/dist/types/src/capabilities/blueprint-definition.d.ts.map +1 -0
- package/dist/types/src/capabilities/index.d.ts +6 -3
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/operation-handler.d.ts +6 -0
- package/dist/types/src/capabilities/operation-handler.d.ts.map +1 -0
- package/dist/types/src/capabilities/react-surface.d.ts +5 -0
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -0
- package/dist/types/src/capabilities/undo-mappings.d.ts +5 -0
- package/dist/types/src/capabilities/undo-mappings.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts +65 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts +72 -0
- package/dist/types/src/components/KanbanBoard/KanbanBoard.stories.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts +10 -0
- package/dist/types/src/components/KanbanBoard/KanbanCard.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts +9 -0
- package/dist/types/src/components/KanbanBoard/KanbanColumn.d.ts.map +1 -0
- package/dist/types/src/components/KanbanBoard/index.d.ts +2 -0
- package/dist/types/src/components/KanbanBoard/index.d.ts.map +1 -0
- package/dist/types/src/components/index.d.ts +1 -2
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts +6 -0
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.stories.d.ts +79 -0
- package/dist/types/src/containers/KanbanContainer/KanbanContainer.stories.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanContainer/index.d.ts +3 -0
- package/dist/types/src/containers/KanbanContainer/index.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanViewEditor/KanbanViewEditor.d.ts +6 -0
- package/dist/types/src/containers/KanbanViewEditor/KanbanViewEditor.d.ts.map +1 -0
- package/dist/types/src/containers/KanbanViewEditor/index.d.ts +3 -0
- package/dist/types/src/containers/KanbanViewEditor/index.d.ts.map +1 -0
- package/dist/types/src/containers/index.d.ts +4 -0
- package/dist/types/src/containers/index.d.ts.map +1 -0
- package/dist/types/src/hooks/index.d.ts +6 -0
- package/dist/types/src/hooks/index.d.ts.map +1 -0
- package/dist/types/src/hooks/useEchoChangeCallback.d.ts +13 -0
- package/dist/types/src/hooks/useEchoChangeCallback.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanBoardModel.d.ts +16 -0
- package/dist/types/src/hooks/useKanbanBoardModel.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanBoardModel.test.d.ts +2 -0
- package/dist/types/src/hooks/useKanbanBoardModel.test.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts +22 -0
- package/dist/types/src/hooks/useKanbanColumnEventHandler.d.ts.map +1 -0
- package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts +19 -0
- package/dist/types/src/hooks/useKanbanItemEventHandler.d.ts.map +1 -0
- package/dist/types/src/hooks/useProjectionModel.d.ts +15 -0
- package/dist/types/src/hooks/useProjectionModel.d.ts.map +1 -0
- package/dist/types/src/operations/definitions.d.ts +52 -0
- package/dist/types/src/operations/definitions.d.ts.map +1 -0
- package/dist/types/src/operations/delete-card-field.d.ts +5 -0
- package/dist/types/src/operations/delete-card-field.d.ts.map +1 -0
- package/dist/types/src/operations/delete-card.d.ts +5 -0
- package/dist/types/src/operations/delete-card.d.ts.map +1 -0
- package/dist/types/src/operations/index.d.ts +4 -0
- package/dist/types/src/operations/index.d.ts.map +1 -0
- package/dist/types/src/operations/restore-card-field.d.ts +5 -0
- package/dist/types/src/operations/restore-card-field.d.ts.map +1 -0
- package/dist/types/src/operations/restore-card.d.ts +5 -0
- package/dist/types/src/operations/restore-card.d.ts.map +1 -0
- package/dist/types/src/playwright/board-manager.d.ts +5 -0
- package/dist/types/src/playwright/board-manager.d.ts.map +1 -0
- package/dist/types/src/playwright/playwright.config.d.ts +3 -0
- package/dist/types/src/playwright/playwright.config.d.ts.map +1 -0
- package/dist/types/src/playwright/smoke.spec.d.ts +2 -0
- package/dist/types/src/playwright/smoke.spec.d.ts.map +1 -0
- package/dist/types/src/testing/KanbanCardTileSimple.d.ts +7 -0
- package/dist/types/src/testing/KanbanCardTileSimple.d.ts.map +1 -0
- package/dist/types/src/testing/index.d.ts +2 -0
- package/dist/types/src/testing/index.d.ts.map +1 -0
- package/dist/types/src/translations.d.ts +48 -32
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types/Kanban.d.ts +37 -0
- package/dist/types/src/types/Kanban.d.ts.map +1 -0
- package/dist/types/src/types/constants.d.ts +6 -0
- package/dist/types/src/types/constants.d.ts.map +1 -0
- package/dist/types/src/types/index.d.ts +2 -0
- package/dist/types/src/types/index.d.ts.map +1 -1
- package/dist/types/src/types/schema.d.ts +0 -103
- package/dist/types/src/types/schema.d.ts.map +1 -1
- package/dist/types/src/types/types.d.ts +28 -0
- package/dist/types/src/types/types.d.ts.map +1 -1
- package/dist/types/src/util/arrangement.d.ts +68 -0
- package/dist/types/src/util/arrangement.d.ts.map +1 -0
- package/dist/types/src/util/arrangement.test.d.ts +2 -0
- package/dist/types/src/util/arrangement.test.d.ts.map +1 -0
- package/dist/types/src/util/index.d.ts +2 -0
- package/dist/types/src/util/index.d.ts.map +1 -0
- package/dist/types/tsconfig.tsbuildinfo +1 -1
- package/package.json +64 -42
- package/src/KanbanPlugin.tsx +35 -23
- package/src/blueprints/index.ts +1 -1
- package/src/blueprints/kanban-blueprint.ts +12 -8
- package/src/capabilities/{artifact-definition/artifact-definition.ts → artifact-definition.ts} +10 -9
- package/src/capabilities/blueprint-definition.ts +17 -0
- package/src/capabilities/index.ts +10 -3
- package/src/capabilities/operation-handler.ts +14 -0
- package/src/capabilities/{react-surface/react-surface.tsx → react-surface.tsx} +15 -15
- package/src/capabilities/undo-mappings.ts +34 -0
- package/src/components/KanbanBoard/KanbanBoard.stories.tsx +142 -0
- package/src/components/KanbanBoard/KanbanBoard.tsx +193 -0
- package/src/components/KanbanBoard/KanbanCard.tsx +86 -0
- package/src/components/KanbanBoard/KanbanColumn.tsx +69 -0
- package/src/components/KanbanBoard/index.ts +5 -0
- package/src/components/index.ts +1 -2
- package/src/{components → containers/KanbanContainer}/KanbanContainer.stories.tsx +70 -87
- package/src/containers/KanbanContainer/KanbanContainer.tsx +96 -0
- package/src/containers/KanbanContainer/index.ts +7 -0
- package/src/{components → containers/KanbanViewEditor}/KanbanViewEditor.tsx +23 -19
- package/src/containers/KanbanViewEditor/index.ts +7 -0
- package/src/containers/index.ts +8 -0
- package/src/hooks/index.ts +9 -0
- package/src/hooks/useEchoChangeCallback.ts +30 -0
- package/src/hooks/useKanbanBoardModel.test.ts +235 -0
- package/src/hooks/useKanbanBoardModel.ts +143 -0
- package/src/hooks/useKanbanColumnEventHandler.ts +106 -0
- package/src/hooks/useKanbanItemEventHandler.ts +133 -0
- package/src/hooks/useProjectionModel.ts +58 -0
- package/src/meta.ts +1 -1
- package/src/operations/definitions.ts +63 -0
- package/src/operations/delete-card-field.ts +47 -0
- package/src/operations/delete-card.ts +23 -0
- package/src/operations/index.ts +12 -0
- package/src/operations/restore-card-field.ts +41 -0
- package/src/operations/restore-card.ts +21 -0
- package/src/playwright/board-manager.ts +13 -0
- package/src/playwright/playwright.config.ts +19 -0
- package/src/playwright/smoke.spec.ts +107 -0
- package/src/testing/KanbanCardTileSimple.tsx +82 -0
- package/src/testing/index.ts +5 -0
- package/src/translations.ts +26 -18
- package/src/types/Kanban.ts +71 -0
- package/src/types/constants.ts +9 -0
- package/src/types/index.ts +2 -0
- package/src/types/schema.ts +0 -76
- package/src/types/types.ts +35 -0
- package/src/util/arrangement.test.ts +208 -0
- package/src/util/arrangement.ts +167 -0
- package/src/util/index.ts +5 -0
- package/dist/lib/browser/blueprint-definition-T2544VMJ.mjs +0 -17
- package/dist/lib/browser/blueprint-definition-T2544VMJ.mjs.map +0 -7
- package/dist/lib/browser/chunk-L6N4ZDZ7.mjs +0 -35
- package/dist/lib/browser/chunk-L6N4ZDZ7.mjs.map +0 -7
- package/dist/lib/browser/chunk-XYQO4VL7.mjs +0 -150
- package/dist/lib/browser/chunk-XYQO4VL7.mjs.map +0 -7
- package/dist/lib/browser/operation-resolver-UEJHX42A.mjs +0 -162
- package/dist/lib/browser/operation-resolver-UEJHX42A.mjs.map +0 -7
- package/dist/lib/browser/react-surface-LFUJAPRL.mjs +0 -236
- package/dist/lib/browser/react-surface-LFUJAPRL.mjs.map +0 -7
- package/dist/lib/node-esm/blueprint-definition-APJQFSHJ.mjs +0 -18
- package/dist/lib/node-esm/blueprint-definition-APJQFSHJ.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-NN6JMKIT.mjs +0 -152
- package/dist/lib/node-esm/chunk-NN6JMKIT.mjs.map +0 -7
- package/dist/lib/node-esm/chunk-ZHRMUKTF.mjs +0 -36
- package/dist/lib/node-esm/chunk-ZHRMUKTF.mjs.map +0 -7
- package/dist/lib/node-esm/operation-resolver-5RPWHZCF.mjs +0 -163
- package/dist/lib/node-esm/operation-resolver-5RPWHZCF.mjs.map +0 -7
- package/dist/lib/node-esm/react-surface-7TSGBRJL.mjs +0 -237
- package/dist/lib/node-esm/react-surface-7TSGBRJL.mjs.map +0 -7
- package/dist/types/src/capabilities/artifact-definition/artifact-definition.d.ts.map +0 -1
- package/dist/types/src/capabilities/artifact-definition/index.d.ts +0 -3
- package/dist/types/src/capabilities/artifact-definition/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts +0 -9
- package/dist/types/src/capabilities/blueprint-definition/blueprint-definition.d.ts.map +0 -1
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts +0 -3
- package/dist/types/src/capabilities/blueprint-definition/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/index.d.ts +0 -3
- package/dist/types/src/capabilities/operation-resolver/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts +0 -5
- package/dist/types/src/capabilities/operation-resolver/operation-resolver.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/index.d.ts +0 -3
- package/dist/types/src/capabilities/react-surface/index.d.ts.map +0 -1
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts +0 -5
- package/dist/types/src/capabilities/react-surface/react-surface.d.ts.map +0 -1
- package/dist/types/src/components/KanbanContainer.d.ts +0 -6
- package/dist/types/src/components/KanbanContainer.d.ts.map +0 -1
- package/dist/types/src/components/KanbanContainer.stories.d.ts +0 -75
- package/dist/types/src/components/KanbanContainer.stories.d.ts.map +0 -1
- package/dist/types/src/components/KanbanViewEditor.d.ts +0 -8
- package/dist/types/src/components/KanbanViewEditor.d.ts.map +0 -1
- package/src/capabilities/artifact-definition/index.ts +0 -7
- package/src/capabilities/blueprint-definition/blueprint-definition.ts +0 -23
- package/src/capabilities/blueprint-definition/index.ts +0 -7
- package/src/capabilities/operation-resolver/index.ts +0 -7
- package/src/capabilities/operation-resolver/operation-resolver.ts +0 -133
- package/src/capabilities/react-surface/index.ts +0 -7
- package/src/components/KanbanContainer.tsx +0 -86
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import React, { forwardRef, useCallback, useMemo, useState } from 'react';
|
|
6
|
+
|
|
7
|
+
import { Obj } from '@dxos/echo';
|
|
8
|
+
import { Card, Toolbar, useTranslation } from '@dxos/react-ui';
|
|
9
|
+
import { Menu, createMenuAction } from '@dxos/react-ui-menu';
|
|
10
|
+
import { Focus, Mosaic, useBoard } from '@dxos/react-ui-mosaic';
|
|
11
|
+
|
|
12
|
+
import { type KanbanCardProps, useKanbanBoard } from '#components';
|
|
13
|
+
import { meta } from '#meta';
|
|
14
|
+
|
|
15
|
+
const KANBAN_CARD_TILE_SIMPLE_NAME = 'KanbanCardTileSimple';
|
|
16
|
+
|
|
17
|
+
/**
|
|
18
|
+
* Card tile without Surface; for stories and tests when plugin manager is not available.
|
|
19
|
+
*/
|
|
20
|
+
export const KanbanCardTileSimple = forwardRef<HTMLDivElement, KanbanCardProps>(
|
|
21
|
+
({ data, location, debug }, forwardedRef) => {
|
|
22
|
+
const { t } = useTranslation(meta.id);
|
|
23
|
+
const { model } = useBoard(KANBAN_CARD_TILE_SIMPLE_NAME);
|
|
24
|
+
const { onCardRemove } = useKanbanBoard(KANBAN_CARD_TILE_SIMPLE_NAME);
|
|
25
|
+
const [dragHandle, setDragHandle] = useState<HTMLButtonElement | null>(null);
|
|
26
|
+
const dragHandleRef = useCallback((el: HTMLButtonElement | null) => setDragHandle(el), []);
|
|
27
|
+
|
|
28
|
+
const menuItems = useMemo(
|
|
29
|
+
() =>
|
|
30
|
+
onCardRemove
|
|
31
|
+
? [
|
|
32
|
+
createMenuAction('remove', () => onCardRemove(data), {
|
|
33
|
+
label: t('remove-card.label'),
|
|
34
|
+
icon: 'ph--trash--regular',
|
|
35
|
+
}),
|
|
36
|
+
]
|
|
37
|
+
: [],
|
|
38
|
+
[onCardRemove, data, t],
|
|
39
|
+
);
|
|
40
|
+
|
|
41
|
+
return (
|
|
42
|
+
<Menu.Root>
|
|
43
|
+
<Mosaic.Tile
|
|
44
|
+
asChild
|
|
45
|
+
id={model.getItemId(data)}
|
|
46
|
+
data={data}
|
|
47
|
+
location={location}
|
|
48
|
+
debug={debug}
|
|
49
|
+
dragHandle={dragHandle}
|
|
50
|
+
>
|
|
51
|
+
<Focus.Item asChild>
|
|
52
|
+
<Card.Root ref={forwardedRef} data-testid='board-item'>
|
|
53
|
+
<Card.Toolbar>
|
|
54
|
+
<Card.DragHandle ref={dragHandleRef} />
|
|
55
|
+
<Card.Title>{Obj.getLabel(data)}</Card.Title>
|
|
56
|
+
{/* TODO(wittjosiah): Reconcile with Card.Menu. */}
|
|
57
|
+
<Menu.Trigger asChild disabled={!menuItems?.length}>
|
|
58
|
+
<Toolbar.IconButton
|
|
59
|
+
iconOnly
|
|
60
|
+
variant='ghost'
|
|
61
|
+
icon='ph--dots-three-vertical--regular'
|
|
62
|
+
label={t('action-menu.label')}
|
|
63
|
+
/>
|
|
64
|
+
</Menu.Trigger>
|
|
65
|
+
<Menu.Content items={menuItems} />
|
|
66
|
+
</Card.Toolbar>
|
|
67
|
+
<Card.Content>
|
|
68
|
+
<Card.Section>
|
|
69
|
+
<pre className='p-2 text-xs text-description whitespace-pre-wrap'>
|
|
70
|
+
{JSON.stringify(data, null, 2)}
|
|
71
|
+
</pre>
|
|
72
|
+
</Card.Section>
|
|
73
|
+
</Card.Content>
|
|
74
|
+
</Card.Root>
|
|
75
|
+
</Focus.Item>
|
|
76
|
+
</Mosaic.Tile>
|
|
77
|
+
</Menu.Root>
|
|
78
|
+
);
|
|
79
|
+
},
|
|
80
|
+
);
|
|
81
|
+
|
|
82
|
+
KanbanCardTileSimple.displayName = KANBAN_CARD_TILE_SIMPLE_NAME;
|
package/src/translations.ts
CHANGED
|
@@ -4,32 +4,40 @@
|
|
|
4
4
|
|
|
5
5
|
import { Type } from '@dxos/echo';
|
|
6
6
|
import { type Resource } from '@dxos/react-ui';
|
|
7
|
-
import { Kanban } from '@dxos/react-ui-kanban/types';
|
|
8
7
|
|
|
9
|
-
import { meta } from '
|
|
8
|
+
import { meta } from '#meta';
|
|
9
|
+
import { Kanban } from '#types';
|
|
10
10
|
|
|
11
11
|
export const translations = [
|
|
12
12
|
{
|
|
13
13
|
'en-US': {
|
|
14
14
|
[Type.getTypename(Kanban.Kanban)]: {
|
|
15
|
-
'typename
|
|
16
|
-
'typename
|
|
17
|
-
'typename
|
|
18
|
-
'typename
|
|
19
|
-
'object
|
|
20
|
-
'
|
|
21
|
-
'
|
|
22
|
-
'object
|
|
15
|
+
'typename.label': 'Kanban',
|
|
16
|
+
'typename.label_zero': 'Kanbans',
|
|
17
|
+
'typename.label_one': 'Kanban',
|
|
18
|
+
'typename.label_other': 'Kanbans',
|
|
19
|
+
'object-name.placeholder': 'New kanban',
|
|
20
|
+
'add-object.label': 'Add kanban',
|
|
21
|
+
'rename-object.label': 'Rename kanban',
|
|
22
|
+
'delete-object.label': 'Delete kanban',
|
|
23
|
+
'object-deleted.label': 'Kanban deleted',
|
|
23
24
|
},
|
|
24
25
|
[meta.id]: {
|
|
25
|
-
'
|
|
26
|
-
'
|
|
27
|
-
'
|
|
28
|
-
'column
|
|
29
|
-
'
|
|
30
|
-
'
|
|
31
|
-
'card
|
|
32
|
-
'
|
|
26
|
+
'action-menu.label': 'Actions',
|
|
27
|
+
'plugin.name': 'Kanban',
|
|
28
|
+
'kanban-title.label': 'Title',
|
|
29
|
+
'column-title.label': 'Column title',
|
|
30
|
+
'column-title.placeholder': 'New column',
|
|
31
|
+
'add-column.label': 'Add column',
|
|
32
|
+
'add-card.label': 'Add card',
|
|
33
|
+
'new-column-name.label': 'New column name',
|
|
34
|
+
'remove-card.label': 'Remove card',
|
|
35
|
+
'remove-empty-column.label': 'Remove empty column',
|
|
36
|
+
'column-drag-handle.label': 'Drag to rearrange',
|
|
37
|
+
'delete-column.label': 'Delete column',
|
|
38
|
+
'card-field-deleted.label': 'Card field deleted',
|
|
39
|
+
'card-deleted.label': 'Card deleted',
|
|
40
|
+
'select-pivot.placeholder': 'Select a pivot column in board settings to display columns.',
|
|
33
41
|
},
|
|
34
42
|
},
|
|
35
43
|
},
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2024 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
|
+
|
|
7
|
+
import { Annotation, Obj, Ref, Type } from '@dxos/echo';
|
|
8
|
+
import { View } from '@dxos/echo';
|
|
9
|
+
import { FormInputAnnotation, LabelAnnotation } from '@dxos/echo/internal';
|
|
10
|
+
import { ViewAnnotation } from '@dxos/schema';
|
|
11
|
+
|
|
12
|
+
/** Per-column entry (ids order, optional hidden). */
|
|
13
|
+
const ArrangementColumnEntry = Schema.Struct({
|
|
14
|
+
ids: Schema.Array(Obj.ID),
|
|
15
|
+
hidden: Schema.optional(Schema.Boolean),
|
|
16
|
+
});
|
|
17
|
+
|
|
18
|
+
/** Keyed by columnValue. */
|
|
19
|
+
const ArrangementColumns = Schema.Record({
|
|
20
|
+
key: Schema.String,
|
|
21
|
+
value: ArrangementColumnEntry,
|
|
22
|
+
}).pipe(FormInputAnnotation.set(false));
|
|
23
|
+
|
|
24
|
+
/** Column order and per-column card ids. */
|
|
25
|
+
export const Arrangement = Schema.Struct({
|
|
26
|
+
order: Schema.Array(Schema.String).pipe(FormInputAnnotation.set(false)),
|
|
27
|
+
columns: ArrangementColumns,
|
|
28
|
+
}).pipe(FormInputAnnotation.set(false));
|
|
29
|
+
|
|
30
|
+
export type Arrangement = Schema.Schema.Type<typeof Arrangement>;
|
|
31
|
+
|
|
32
|
+
export const Kanban = Schema.Struct({
|
|
33
|
+
name: Schema.optional(Schema.String),
|
|
34
|
+
|
|
35
|
+
view: Ref.Ref(View.View).pipe(FormInputAnnotation.set(false)),
|
|
36
|
+
|
|
37
|
+
/** Column display order and per-column card ids. */
|
|
38
|
+
arrangement: Arrangement,
|
|
39
|
+
}).pipe(
|
|
40
|
+
Type.object({
|
|
41
|
+
typename: 'org.dxos.type.kanban',
|
|
42
|
+
version: '0.1.0',
|
|
43
|
+
}),
|
|
44
|
+
LabelAnnotation.set(['name']),
|
|
45
|
+
ViewAnnotation.set(true),
|
|
46
|
+
Annotation.IconAnnotation.set({
|
|
47
|
+
icon: 'ph--kanban--regular',
|
|
48
|
+
hue: 'green',
|
|
49
|
+
}),
|
|
50
|
+
);
|
|
51
|
+
|
|
52
|
+
/** Instance type; use Kanban.Kanban in type position so namespace has .Kanban as type and .KanbanSchema as schema. */
|
|
53
|
+
export interface Kanban extends Schema.Schema.Type<typeof Kanban> {}
|
|
54
|
+
|
|
55
|
+
type MakeProps = Omit<Partial<Obj.MakeProps<typeof Kanban>>, 'view'> & {
|
|
56
|
+
view: View.View;
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
/**
|
|
60
|
+
* Make a kanban as a view of a data set.
|
|
61
|
+
*/
|
|
62
|
+
export const make = (props: MakeProps): Kanban => {
|
|
63
|
+
const { name, view, arrangement } = props;
|
|
64
|
+
const order = arrangement?.order ?? [];
|
|
65
|
+
const columns = arrangement?.columns ?? {};
|
|
66
|
+
return Obj.make(Kanban, {
|
|
67
|
+
name,
|
|
68
|
+
view: Ref.make(view),
|
|
69
|
+
arrangement: { order, columns },
|
|
70
|
+
});
|
|
71
|
+
};
|
package/src/types/index.ts
CHANGED
package/src/types/schema.ts
CHANGED
|
@@ -4,12 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
import * as Schema from 'effect/Schema';
|
|
6
6
|
|
|
7
|
-
import { Capability } from '@dxos/app-framework';
|
|
8
|
-
import { Operation } from '@dxos/operation';
|
|
9
7
|
import { TypeInputOptionsAnnotation } from '@dxos/plugin-space/types';
|
|
10
|
-
import { FieldSchema, View } from '@dxos/schema';
|
|
11
|
-
|
|
12
|
-
import { meta } from '../meta';
|
|
13
8
|
|
|
14
9
|
/**
|
|
15
10
|
* Kanban data model.
|
|
@@ -37,7 +32,6 @@ export const CreateKanbanSchema = Schema.Struct({
|
|
|
37
32
|
TypeInputOptionsAnnotation.set({
|
|
38
33
|
location: ['database', 'runtime'],
|
|
39
34
|
kind: ['user'],
|
|
40
|
-
registered: ['registered'],
|
|
41
35
|
}),
|
|
42
36
|
Schema.optional,
|
|
43
37
|
),
|
|
@@ -48,73 +42,3 @@ export const CreateKanbanSchema = Schema.Struct({
|
|
|
48
42
|
}),
|
|
49
43
|
),
|
|
50
44
|
});
|
|
51
|
-
|
|
52
|
-
const KANBAN_OPERATION = `${meta.id}/operation`;
|
|
53
|
-
|
|
54
|
-
export namespace KanbanOperation {
|
|
55
|
-
export const DeleteCardFieldOutput = Schema.Struct({
|
|
56
|
-
field: FieldSchema.annotations({ description: 'The deleted field schema.' }),
|
|
57
|
-
props: Schema.Any.annotations({ description: 'The deleted field properties.' }),
|
|
58
|
-
index: Schema.Number.annotations({ description: 'The index the field was at.' }),
|
|
59
|
-
});
|
|
60
|
-
|
|
61
|
-
export type DeleteCardFieldOutput = Schema.Schema.Type<typeof DeleteCardFieldOutput>;
|
|
62
|
-
|
|
63
|
-
export const DeleteCardField = Operation.make({
|
|
64
|
-
meta: { key: `${KANBAN_OPERATION}/delete-card-field`, name: 'Delete Card Field' },
|
|
65
|
-
services: [Capability.Service],
|
|
66
|
-
schema: {
|
|
67
|
-
input: Schema.Struct({
|
|
68
|
-
view: View.View,
|
|
69
|
-
fieldId: Schema.String,
|
|
70
|
-
}),
|
|
71
|
-
output: DeleteCardFieldOutput,
|
|
72
|
-
},
|
|
73
|
-
});
|
|
74
|
-
|
|
75
|
-
export const DeleteCardOutput = Schema.Struct({
|
|
76
|
-
card: Schema.Any.annotations({ description: 'The deleted card.' }),
|
|
77
|
-
});
|
|
78
|
-
|
|
79
|
-
export type DeleteCardOutput = Schema.Schema.Type<typeof DeleteCardOutput>;
|
|
80
|
-
|
|
81
|
-
export const DeleteCard = Operation.make({
|
|
82
|
-
meta: { key: `${KANBAN_OPERATION}/delete-card`, name: 'Delete Card' },
|
|
83
|
-
schema: {
|
|
84
|
-
input: Schema.Struct({
|
|
85
|
-
card: Schema.Any,
|
|
86
|
-
}),
|
|
87
|
-
output: DeleteCardOutput,
|
|
88
|
-
},
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* Restore a deleted card field (inverse of DeleteCardField).
|
|
93
|
-
*/
|
|
94
|
-
export const RestoreCardField = Operation.make({
|
|
95
|
-
meta: { key: `${KANBAN_OPERATION}/restore-card-field`, name: 'Restore Card Field' },
|
|
96
|
-
services: [Capability.Service],
|
|
97
|
-
schema: {
|
|
98
|
-
input: Schema.Struct({
|
|
99
|
-
view: View.View.annotations({ description: 'The view to restore the field to.' }),
|
|
100
|
-
field: FieldSchema.annotations({ description: 'The field schema to restore.' }),
|
|
101
|
-
props: Schema.Any.annotations({ description: 'The field properties to restore.' }),
|
|
102
|
-
index: Schema.Number.annotations({ description: 'The index to restore the field at.' }),
|
|
103
|
-
}),
|
|
104
|
-
output: Schema.Void,
|
|
105
|
-
},
|
|
106
|
-
});
|
|
107
|
-
|
|
108
|
-
/**
|
|
109
|
-
* Restore a deleted card (inverse of DeleteCard).
|
|
110
|
-
*/
|
|
111
|
-
export const RestoreCard = Operation.make({
|
|
112
|
-
meta: { key: `${KANBAN_OPERATION}/restore-card`, name: 'Restore Card' },
|
|
113
|
-
schema: {
|
|
114
|
-
input: Schema.Struct({
|
|
115
|
-
card: Schema.Any.annotations({ description: 'The card to restore.' }),
|
|
116
|
-
}),
|
|
117
|
-
output: Schema.Void,
|
|
118
|
-
},
|
|
119
|
-
});
|
|
120
|
-
}
|
package/src/types/types.ts
CHANGED
|
@@ -2,6 +2,41 @@
|
|
|
2
2
|
// Copyright 2025 DXOS.org
|
|
3
3
|
//
|
|
4
4
|
|
|
5
|
+
import { type Obj } from '@dxos/echo';
|
|
6
|
+
|
|
7
|
+
import { type Kanban } from './Kanban';
|
|
8
|
+
|
|
5
9
|
export type Location = {
|
|
6
10
|
idx?: number;
|
|
7
11
|
};
|
|
12
|
+
|
|
13
|
+
/** Snapshot shape used when reading kanban arrangement from atoms. */
|
|
14
|
+
export type KanbanArrangementSnapshot = Kanban | Obj.Snapshot<Kanban>;
|
|
15
|
+
|
|
16
|
+
/** Minimal item shape for arrangement; Obj.Unknown satisfies this. */
|
|
17
|
+
export type BaseKanbanItem = { id: string };
|
|
18
|
+
|
|
19
|
+
/** Column structure without cards; used for board model column type and derived atoms. */
|
|
20
|
+
export type ColumnStructure = {
|
|
21
|
+
columnValue: string;
|
|
22
|
+
ids: string[];
|
|
23
|
+
};
|
|
24
|
+
|
|
25
|
+
export type KanbanColumn<T extends BaseKanbanItem = BaseKanbanItem> = {
|
|
26
|
+
columnValue: string;
|
|
27
|
+
cards: T[];
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export type ArrangedCards<T extends BaseKanbanItem = BaseKanbanItem> = KanbanColumn<T>[];
|
|
31
|
+
|
|
32
|
+
/**
|
|
33
|
+
* Callback type for wrapping mutations in Obj.change().
|
|
34
|
+
* Contains separate callbacks for kanban object and item mutations.
|
|
35
|
+
*/
|
|
36
|
+
export type KanbanChangeCallback<T extends BaseKanbanItem> = {
|
|
37
|
+
/** Callback to wrap kanban object mutations. */
|
|
38
|
+
kanban: (mutate: (mutableKanban: Obj.Mutable<Kanban>) => void) => void;
|
|
39
|
+
|
|
40
|
+
/** Sets a field on an item, wrapping in Obj.change() if needed. */
|
|
41
|
+
setItemField: (item: T, field: string, value: unknown) => void;
|
|
42
|
+
};
|
|
@@ -0,0 +1,208 @@
|
|
|
1
|
+
//
|
|
2
|
+
// Copyright 2025 DXOS.org
|
|
3
|
+
//
|
|
4
|
+
|
|
5
|
+
import * as Schema from 'effect/Schema';
|
|
6
|
+
import { beforeEach, describe, test } from 'vitest';
|
|
7
|
+
|
|
8
|
+
import { Filter, JsonSchema, Query, Type } from '@dxos/echo';
|
|
9
|
+
import { type View } from '@dxos/echo';
|
|
10
|
+
import { ObjectId } from '@dxos/keys';
|
|
11
|
+
import { ViewModel } from '@dxos/schema';
|
|
12
|
+
|
|
13
|
+
import { Kanban, UNCATEGORIZED_VALUE } from '#types';
|
|
14
|
+
|
|
15
|
+
import {
|
|
16
|
+
computeColumnStructure,
|
|
17
|
+
computeItemArrangement,
|
|
18
|
+
getOrderByColumnFromArrangement,
|
|
19
|
+
getOrderFromArrangement,
|
|
20
|
+
} from './arrangement';
|
|
21
|
+
|
|
22
|
+
const selectOptions = [
|
|
23
|
+
{ id: UNCATEGORIZED_VALUE, title: 'Uncategorized', color: 'neutral' },
|
|
24
|
+
{ id: 'a', title: 'A', color: 'blue' },
|
|
25
|
+
{ id: 'b', title: 'B', color: 'green' },
|
|
26
|
+
];
|
|
27
|
+
|
|
28
|
+
const MinimalSchema = Schema.Struct({ id: Schema.String }).pipe(
|
|
29
|
+
Type.object({ typename: 'test/Minimal', version: '0.1.0' }),
|
|
30
|
+
);
|
|
31
|
+
|
|
32
|
+
describe('arrangement utils', () => {
|
|
33
|
+
let view: View.View;
|
|
34
|
+
|
|
35
|
+
beforeEach(() => {
|
|
36
|
+
view = ViewModel.make({
|
|
37
|
+
query: Query.select(Filter.type(MinimalSchema)),
|
|
38
|
+
jsonSchema: JsonSchema.toJsonSchema(MinimalSchema),
|
|
39
|
+
});
|
|
40
|
+
});
|
|
41
|
+
|
|
42
|
+
describe('getOrderFromArrangement', () => {
|
|
43
|
+
test('returns copy of order when present', ({ expect }) => {
|
|
44
|
+
const arrangement = { order: ['a', 'b'], columns: {} };
|
|
45
|
+
expect(getOrderFromArrangement(arrangement)).toEqual(['a', 'b']);
|
|
46
|
+
});
|
|
47
|
+
|
|
48
|
+
test('returns copy of order from kanban arrangement', ({ expect }) => {
|
|
49
|
+
const kanban = Kanban.make({
|
|
50
|
+
view,
|
|
51
|
+
arrangement: { order: ['b', 'a'], columns: {} },
|
|
52
|
+
});
|
|
53
|
+
const order = getOrderFromArrangement(kanban.arrangement);
|
|
54
|
+
expect(order).toEqual(['b', 'a']);
|
|
55
|
+
order.push('x');
|
|
56
|
+
expect(getOrderFromArrangement(kanban.arrangement)).toEqual(['b', 'a']);
|
|
57
|
+
});
|
|
58
|
+
|
|
59
|
+
test('returns empty when arrangement or order missing or empty', ({ expect }) => {
|
|
60
|
+
expect(getOrderFromArrangement(undefined)).toEqual([]);
|
|
61
|
+
expect(getOrderFromArrangement({ order: [], columns: {} })).toEqual([]);
|
|
62
|
+
const kanbanEmptyOrder = Kanban.make({
|
|
63
|
+
view,
|
|
64
|
+
arrangement: { order: [], columns: {} },
|
|
65
|
+
});
|
|
66
|
+
expect(getOrderFromArrangement(kanbanEmptyOrder.arrangement)).toEqual([]);
|
|
67
|
+
});
|
|
68
|
+
});
|
|
69
|
+
|
|
70
|
+
describe('getOrderByColumnFromArrangement', () => {
|
|
71
|
+
test('returns per-column data with mutable id arrays', ({ expect }) => {
|
|
72
|
+
const arrangement = {
|
|
73
|
+
order: [],
|
|
74
|
+
columns: { a: { ids: ['i1'] } },
|
|
75
|
+
};
|
|
76
|
+
const byColumn = getOrderByColumnFromArrangement(arrangement);
|
|
77
|
+
expect(byColumn.a.ids).toEqual(['i1']);
|
|
78
|
+
byColumn.a.ids.push('i2');
|
|
79
|
+
expect(getOrderByColumnFromArrangement(arrangement).a.ids).toEqual(['i1']);
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
test('returns per-column ids and preserves hidden from kanban arrangement', ({ expect }) => {
|
|
83
|
+
const id1 = ObjectId.random();
|
|
84
|
+
const id2 = ObjectId.random();
|
|
85
|
+
const id3 = ObjectId.random();
|
|
86
|
+
const kanban = Kanban.make({
|
|
87
|
+
view,
|
|
88
|
+
arrangement: {
|
|
89
|
+
order: [],
|
|
90
|
+
columns: {
|
|
91
|
+
a: { ids: [id1, id2], hidden: true },
|
|
92
|
+
b: { ids: [id3] },
|
|
93
|
+
},
|
|
94
|
+
},
|
|
95
|
+
});
|
|
96
|
+
const byColumn = getOrderByColumnFromArrangement(kanban.arrangement);
|
|
97
|
+
expect(byColumn.a).toEqual({ ids: [id1, id2], hidden: true });
|
|
98
|
+
expect(byColumn.b).toEqual({ ids: [id3] });
|
|
99
|
+
expect(byColumn.b.hidden).toBeUndefined();
|
|
100
|
+
});
|
|
101
|
+
|
|
102
|
+
test('returns mutable copies', ({ expect }) => {
|
|
103
|
+
const idX = ObjectId.random();
|
|
104
|
+
const kanban = Kanban.make({
|
|
105
|
+
view,
|
|
106
|
+
arrangement: { order: [], columns: { a: { ids: [idX] } } },
|
|
107
|
+
});
|
|
108
|
+
const byColumn = getOrderByColumnFromArrangement(kanban.arrangement);
|
|
109
|
+
byColumn.a.ids.push(ObjectId.random());
|
|
110
|
+
expect(getOrderByColumnFromArrangement(kanban.arrangement).a.ids).toEqual([idX]);
|
|
111
|
+
});
|
|
112
|
+
|
|
113
|
+
test('returns empty object when arrangement or columns missing', ({ expect }) => {
|
|
114
|
+
expect(getOrderByColumnFromArrangement(undefined)).toEqual({});
|
|
115
|
+
expect(getOrderByColumnFromArrangement({ order: [], columns: {} })).toEqual({});
|
|
116
|
+
const kanbanEmpty = Kanban.make({
|
|
117
|
+
view,
|
|
118
|
+
arrangement: { order: [], columns: {} },
|
|
119
|
+
});
|
|
120
|
+
expect(getOrderByColumnFromArrangement(kanbanEmpty.arrangement)).toEqual({});
|
|
121
|
+
});
|
|
122
|
+
});
|
|
123
|
+
|
|
124
|
+
describe('computeColumnStructure', () => {
|
|
125
|
+
test('uncategorized first, then effectiveOrder, then missing selectOptions', ({ expect }) => {
|
|
126
|
+
const effectiveOrder = ['b'];
|
|
127
|
+
const effectiveByColumn = { [UNCATEGORIZED_VALUE]: { ids: ['x'] }, b: { ids: ['y'] } };
|
|
128
|
+
const result = computeColumnStructure(effectiveOrder, effectiveByColumn, selectOptions);
|
|
129
|
+
expect(result.map((col) => col.columnValue)).toEqual([UNCATEGORIZED_VALUE, 'b', 'a']);
|
|
130
|
+
expect(result[0].ids).toEqual(['x']);
|
|
131
|
+
expect(result[1].ids).toEqual(['y']);
|
|
132
|
+
expect(result[2].ids).toEqual([]);
|
|
133
|
+
});
|
|
134
|
+
|
|
135
|
+
test('does not duplicate uncategorized when already in effectiveOrder', ({ expect }) => {
|
|
136
|
+
const effectiveOrder = [UNCATEGORIZED_VALUE, 'a'];
|
|
137
|
+
const effectiveByColumn = {};
|
|
138
|
+
const result = computeColumnStructure(effectiveOrder, effectiveByColumn, selectOptions);
|
|
139
|
+
expect(result.map((col) => col.columnValue)).toEqual([UNCATEGORIZED_VALUE, 'a', 'b']);
|
|
140
|
+
});
|
|
141
|
+
});
|
|
142
|
+
|
|
143
|
+
describe('computeItemArrangement', () => {
|
|
144
|
+
test('distributes items by pivotPath and preserves saved order within column', ({ expect }) => {
|
|
145
|
+
const idUc1 = ObjectId.random();
|
|
146
|
+
const idA1 = ObjectId.random();
|
|
147
|
+
const idA2 = ObjectId.random();
|
|
148
|
+
const idA3 = ObjectId.random();
|
|
149
|
+
const kanban = Kanban.make({
|
|
150
|
+
view,
|
|
151
|
+
arrangement: {
|
|
152
|
+
order: ['a', 'b'],
|
|
153
|
+
columns: {
|
|
154
|
+
[UNCATEGORIZED_VALUE]: { ids: [idUc1] },
|
|
155
|
+
a: { ids: [idA2, idA1] },
|
|
156
|
+
b: { ids: [] },
|
|
157
|
+
},
|
|
158
|
+
},
|
|
159
|
+
});
|
|
160
|
+
const items = [{ id: idA1, status: 'a' }, { id: idA2, status: 'a' }, { id: idA3, status: 'a' }, { id: idUc1 }];
|
|
161
|
+
const result = computeItemArrangement({
|
|
162
|
+
object: kanban,
|
|
163
|
+
items,
|
|
164
|
+
pivotPath: 'status',
|
|
165
|
+
selectOptions,
|
|
166
|
+
});
|
|
167
|
+
const colUncat = result.find((c) => c.columnValue === UNCATEGORIZED_VALUE);
|
|
168
|
+
const colA = result.find((c) => c.columnValue === 'a');
|
|
169
|
+
const colB = result.find((c) => c.columnValue === 'b');
|
|
170
|
+
expect(colUncat?.cards.map((c) => c.id)).toEqual([idUc1]);
|
|
171
|
+
expect(colA?.cards.map((c) => c.id)).toEqual([idA2, idA1, idA3]);
|
|
172
|
+
expect(colB?.cards.map((c) => c.id)).toEqual([]);
|
|
173
|
+
});
|
|
174
|
+
|
|
175
|
+
test('when pivotPath undefined all items go to uncategorized', ({ expect }) => {
|
|
176
|
+
const kanban = Kanban.make({
|
|
177
|
+
view,
|
|
178
|
+
arrangement: { order: ['a', 'b'], columns: { a: { ids: [] }, b: { ids: [] } } },
|
|
179
|
+
});
|
|
180
|
+
const items = [
|
|
181
|
+
{ id: '1', status: 'a' },
|
|
182
|
+
{ id: '2', status: 'b' },
|
|
183
|
+
];
|
|
184
|
+
const result = computeItemArrangement({
|
|
185
|
+
object: kanban,
|
|
186
|
+
items,
|
|
187
|
+
selectOptions,
|
|
188
|
+
});
|
|
189
|
+
const colUncat = result.find((c) => c.columnValue === UNCATEGORIZED_VALUE);
|
|
190
|
+
const colA = result.find((c) => c.columnValue === 'a');
|
|
191
|
+
expect(colUncat?.cards.length).toBe(2);
|
|
192
|
+
expect(colA?.cards.length).toBe(0);
|
|
193
|
+
});
|
|
194
|
+
|
|
195
|
+
test('column order is uncategorized then selectOptions', ({ expect }) => {
|
|
196
|
+
const kanban = Kanban.make({
|
|
197
|
+
view,
|
|
198
|
+
arrangement: { order: ['a', 'b'], columns: {} },
|
|
199
|
+
});
|
|
200
|
+
const result = computeItemArrangement({
|
|
201
|
+
object: kanban,
|
|
202
|
+
items: [],
|
|
203
|
+
selectOptions,
|
|
204
|
+
});
|
|
205
|
+
expect(result.map((c) => c.columnValue)).toEqual([UNCATEGORIZED_VALUE, 'a', 'b']);
|
|
206
|
+
});
|
|
207
|
+
});
|
|
208
|
+
});
|