@dxos/plugin-debug 0.8.0 → 0.8.1-main.013e445
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/{DebugApp-LQHFFK3Y.mjs → DebugApp-7PFYN52J.mjs} +30 -23
- package/dist/lib/browser/{DebugApp-LQHFFK3Y.mjs.map → DebugApp-7PFYN52J.mjs.map} +4 -4
- package/dist/lib/browser/{SpaceGenerator-SPEJBGP7.mjs → SpaceGenerator-XMWQDHXY.mjs} +3 -3
- package/dist/lib/browser/{SpaceGenerator-SPEJBGP7.mjs.map → SpaceGenerator-XMWQDHXY.mjs.map} +1 -1
- package/dist/lib/browser/{app-graph-builder-5STXPSZJ.mjs → app-graph-builder-EJHONTKA.mjs} +87 -29
- package/dist/lib/browser/{app-graph-builder-5STXPSZJ.mjs.map → app-graph-builder-EJHONTKA.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-Y4ZZEHUN.mjs → chunk-F2R7TJCJ.mjs} +2 -2
- package/dist/lib/browser/{chunk-Y4ZZEHUN.mjs.map → chunk-F2R7TJCJ.mjs.map} +3 -3
- package/dist/lib/browser/{chunk-EF3UVAVI.mjs → chunk-RORUXVAC.mjs} +1 -1
- package/dist/lib/browser/chunk-RORUXVAC.mjs.map +7 -0
- package/dist/lib/browser/index.mjs +7 -6
- package/dist/lib/browser/index.mjs.map +2 -2
- package/dist/lib/browser/meta.json +1 -1
- package/dist/lib/browser/{react-context-TCD3MNIT.mjs → react-context-ZRLN5KUI.mjs} +2 -2
- package/dist/lib/browser/{react-surface-GLOHHHOD.mjs → react-surface-5NDFGKVB.mjs} +41 -24
- package/dist/lib/browser/react-surface-5NDFGKVB.mjs.map +7 -0
- package/dist/lib/browser/{settings-XWFV3P44.mjs → settings-R47ZDKXO.mjs} +5 -5
- package/dist/types/src/capabilities/app-graph-builder.d.ts.map +1 -1
- package/dist/types/src/capabilities/index.d.ts.map +1 -1
- package/dist/types/src/capabilities/react-surface.d.ts.map +1 -1
- package/dist/types/src/components/Container.d.ts +2 -2
- package/dist/types/src/components/Container.d.ts.map +1 -1
- package/dist/types/src/components/DebugObjectPanel.d.ts +2 -1
- package/dist/types/src/components/DebugObjectPanel.d.ts.map +1 -1
- package/dist/types/src/components/DebugSettings.d.ts +2 -1
- package/dist/types/src/components/DebugSettings.d.ts.map +1 -1
- package/dist/types/src/components/DebugStatus.d.ts +2 -1
- package/dist/types/src/components/DebugStatus.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts +2 -1
- package/dist/types/src/components/SpaceGenerator/SchemaTable.d.ts.map +1 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts +2 -1
- package/dist/types/src/components/SpaceGenerator/SpaceGenerator.d.ts.map +1 -1
- package/dist/types/src/components/Wireframe.d.ts +2 -1
- package/dist/types/src/components/Wireframe.d.ts.map +1 -1
- package/dist/types/src/components/index.d.ts +1 -5
- package/dist/types/src/components/index.d.ts.map +1 -1
- package/dist/types/src/meta.d.ts +2 -9
- package/dist/types/src/meta.d.ts.map +1 -1
- package/dist/types/src/translations.d.ts +1 -0
- package/dist/types/src/translations.d.ts.map +1 -1
- package/dist/types/src/types.d.ts +1 -0
- package/dist/types/src/types.d.ts.map +1 -1
- package/package.json +49 -49
- package/src/capabilities/app-graph-builder.ts +53 -15
- package/src/capabilities/react-surface.tsx +31 -25
- package/src/components/SpaceGenerator/SchemaTable.tsx +1 -1
- package/src/components/SpaceGenerator/SpaceGenerator.tsx +1 -1
- package/src/components/index.ts +0 -1
- package/src/meta.ts +2 -2
- package/src/translations.ts +1 -0
- package/src/types.ts +1 -0
- package/dist/lib/browser/DebugSpace-EBJYT5JG.mjs +0 -277
- package/dist/lib/browser/DebugSpace-EBJYT5JG.mjs.map +0 -7
- package/dist/lib/browser/chunk-EF3UVAVI.mjs.map +0 -7
- package/dist/lib/browser/chunk-GSJS3HEM.mjs +0 -15
- package/dist/lib/browser/chunk-GSJS3HEM.mjs.map +0 -7
- package/dist/lib/browser/react-surface-GLOHHHOD.mjs.map +0 -7
- package/dist/types/src/components/DebugSpace/DebugSpace.d.ts +0 -8
- package/dist/types/src/components/DebugSpace/DebugSpace.d.ts.map +0 -1
- package/dist/types/src/components/DebugSpace/DebugSpace.stories.d.ts +0 -6
- package/dist/types/src/components/DebugSpace/DebugSpace.stories.d.ts.map +0 -1
- package/dist/types/src/components/DebugSpace/ObjectCreator.d.ts +0 -14
- package/dist/types/src/components/DebugSpace/ObjectCreator.d.ts.map +0 -1
- package/dist/types/src/components/DebugSpace/ObjectCreator.stories.d.ts +0 -6
- package/dist/types/src/components/DebugSpace/ObjectCreator.stories.d.ts.map +0 -1
- package/dist/types/src/components/DebugSpace/index.d.ts +0 -3
- package/dist/types/src/components/DebugSpace/index.d.ts.map +0 -1
- package/src/components/DebugSpace/DebugSpace.stories.tsx +0 -46
- package/src/components/DebugSpace/DebugSpace.tsx +0 -183
- package/src/components/DebugSpace/ObjectCreator.stories.tsx +0 -51
- package/src/components/DebugSpace/ObjectCreator.tsx +0 -100
- package/src/components/DebugSpace/index.ts +0 -7
- /package/dist/lib/browser/{react-context-TCD3MNIT.mjs.map → react-context-ZRLN5KUI.mjs.map} +0 -0
- /package/dist/lib/browser/{settings-XWFV3P44.mjs.map → settings-R47ZDKXO.mjs.map} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@dxos/plugin-debug",
|
|
3
|
-
"version": "0.8.
|
|
3
|
+
"version": "0.8.1-main.013e445",
|
|
4
4
|
"description": "DXOS Surface plugin for testing.",
|
|
5
5
|
"homepage": "https://dxos.org",
|
|
6
6
|
"bugs": "https://github.com/dxos/dxos/issues",
|
|
@@ -28,52 +28,52 @@
|
|
|
28
28
|
"@preact/signals-core": "^1.6.0",
|
|
29
29
|
"@tldraw/tldraw": "^3.0.0",
|
|
30
30
|
"date-fns": "^3.3.1",
|
|
31
|
-
"effect": "
|
|
31
|
+
"effect": "3.13.3",
|
|
32
32
|
"lodash.get": "^4.4.2",
|
|
33
33
|
"react-json-tree": "^0.18.0",
|
|
34
34
|
"react-resize-detector": "^11.0.1",
|
|
35
35
|
"workerize-loader": "^2.0.2",
|
|
36
|
-
"@dxos/app-framework": "0.8.
|
|
37
|
-
"@dxos/
|
|
38
|
-
"@dxos/
|
|
39
|
-
"@dxos/
|
|
40
|
-
"@dxos/
|
|
41
|
-
"@dxos/
|
|
42
|
-
"@dxos/
|
|
43
|
-
"@dxos/
|
|
44
|
-
"@dxos/
|
|
45
|
-
"@dxos/echo-
|
|
46
|
-
"@dxos/
|
|
47
|
-
"@dxos/
|
|
48
|
-
"@dxos/
|
|
49
|
-
"@dxos/keys": "0.8.
|
|
50
|
-
"@dxos/
|
|
51
|
-
"@dxos/
|
|
52
|
-
"@dxos/
|
|
53
|
-
"@dxos/plugin-
|
|
54
|
-
"@dxos/plugin-
|
|
55
|
-
"@dxos/plugin-graph": "0.8.
|
|
56
|
-
"@dxos/plugin-
|
|
57
|
-
"@dxos/plugin-
|
|
58
|
-
"@dxos/plugin-
|
|
59
|
-
"@dxos/plugin-space": "0.8.
|
|
60
|
-
"@dxos/plugin-status-bar": "0.8.
|
|
61
|
-
"@dxos/plugin-
|
|
62
|
-
"@dxos/plugin-
|
|
63
|
-
"@dxos/
|
|
64
|
-
"@dxos/
|
|
65
|
-
"@dxos/react-client": "0.8.
|
|
66
|
-
"@dxos/react-hooks": "0.8.
|
|
67
|
-
"@dxos/react-ui-canvas-compute": "0.8.
|
|
68
|
-
"@dxos/react-ui-attention": "0.8.
|
|
69
|
-
"@dxos/react-ui-canvas-editor": "0.8.
|
|
70
|
-
"@dxos/react-ui-
|
|
71
|
-
"@dxos/react-ui-
|
|
72
|
-
"@dxos/react-ui-
|
|
73
|
-
"@dxos/react-ui-
|
|
74
|
-
"@dxos/react-ui-table": "0.8.
|
|
75
|
-
"@dxos/schema": "0.8.
|
|
76
|
-
"@dxos/util": "0.8.
|
|
36
|
+
"@dxos/app-framework": "0.8.1-main.013e445",
|
|
37
|
+
"@dxos/client-services": "0.8.1-main.013e445",
|
|
38
|
+
"@dxos/async": "0.8.1-main.013e445",
|
|
39
|
+
"@dxos/compute": "0.8.1-main.013e445",
|
|
40
|
+
"@dxos/automerge": "0.8.1-main.013e445",
|
|
41
|
+
"@dxos/conductor": "0.8.1-main.013e445",
|
|
42
|
+
"@dxos/config": "0.8.1-main.013e445",
|
|
43
|
+
"@dxos/devtools": "0.8.1-main.013e445",
|
|
44
|
+
"@dxos/echo-generator": "0.8.1-main.013e445",
|
|
45
|
+
"@dxos/echo-pipeline": "0.8.1-main.013e445",
|
|
46
|
+
"@dxos/echo-schema": "0.8.1-main.013e445",
|
|
47
|
+
"@dxos/invariant": "0.8.1-main.013e445",
|
|
48
|
+
"@dxos/functions": "0.8.1-main.013e445",
|
|
49
|
+
"@dxos/keys": "0.8.1-main.013e445",
|
|
50
|
+
"@dxos/local-storage": "0.8.1-main.013e445",
|
|
51
|
+
"@dxos/log": "0.8.1-main.013e445",
|
|
52
|
+
"@dxos/live-object": "0.8.1-main.013e445",
|
|
53
|
+
"@dxos/plugin-client": "0.8.1-main.013e445",
|
|
54
|
+
"@dxos/plugin-deck": "0.8.1-main.013e445",
|
|
55
|
+
"@dxos/plugin-graph": "0.8.1-main.013e445",
|
|
56
|
+
"@dxos/plugin-sheet": "0.8.1-main.013e445",
|
|
57
|
+
"@dxos/plugin-markdown": "0.8.1-main.013e445",
|
|
58
|
+
"@dxos/plugin-sketch": "0.8.1-main.013e445",
|
|
59
|
+
"@dxos/plugin-space": "0.8.1-main.013e445",
|
|
60
|
+
"@dxos/plugin-status-bar": "0.8.1-main.013e445",
|
|
61
|
+
"@dxos/plugin-table": "0.8.1-main.013e445",
|
|
62
|
+
"@dxos/plugin-theme": "0.8.1-main.013e445",
|
|
63
|
+
"@dxos/random": "0.8.1-main.013e445",
|
|
64
|
+
"@dxos/protocols": "0.8.1-main.013e445",
|
|
65
|
+
"@dxos/react-client": "0.8.1-main.013e445",
|
|
66
|
+
"@dxos/react-hooks": "0.8.1-main.013e445",
|
|
67
|
+
"@dxos/react-ui-canvas-compute": "0.8.1-main.013e445",
|
|
68
|
+
"@dxos/react-ui-attention": "0.8.1-main.013e445",
|
|
69
|
+
"@dxos/react-ui-canvas-editor": "0.8.1-main.013e445",
|
|
70
|
+
"@dxos/react-ui-kanban": "0.8.1-main.013e445",
|
|
71
|
+
"@dxos/react-ui-form": "0.8.1-main.013e445",
|
|
72
|
+
"@dxos/react-ui-syntax-highlighter": "0.8.1-main.013e445",
|
|
73
|
+
"@dxos/react-ui-stack": "0.8.1-main.013e445",
|
|
74
|
+
"@dxos/react-ui-table": "0.8.1-main.013e445",
|
|
75
|
+
"@dxos/schema": "0.8.1-main.013e445",
|
|
76
|
+
"@dxos/util": "0.8.1-main.013e445"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
79
|
"@phosphor-icons/react": "^2.1.5",
|
|
@@ -83,17 +83,17 @@
|
|
|
83
83
|
"react": "~18.2.0",
|
|
84
84
|
"react-dom": "~18.2.0",
|
|
85
85
|
"vite": "5.4.7",
|
|
86
|
-
"@dxos/react-ui": "0.8.
|
|
87
|
-
"@dxos/react-ui-theme": "0.8.
|
|
88
|
-
"@dxos/storybook-utils": "0.8.
|
|
86
|
+
"@dxos/react-ui": "0.8.1-main.013e445",
|
|
87
|
+
"@dxos/react-ui-theme": "0.8.1-main.013e445",
|
|
88
|
+
"@dxos/storybook-utils": "0.8.1-main.013e445"
|
|
89
89
|
},
|
|
90
90
|
"peerDependencies": {
|
|
91
91
|
"@phosphor-icons/react": "^2.1.5",
|
|
92
92
|
"react": "~18.2.0",
|
|
93
93
|
"react-dom": "~18.2.0",
|
|
94
|
-
"@dxos/
|
|
95
|
-
"@dxos/react-ui": "0.8.
|
|
96
|
-
"@dxos/
|
|
94
|
+
"@dxos/react-ui": "0.8.1-main.013e445",
|
|
95
|
+
"@dxos/react-ui-theme": "0.8.1-main.013e445",
|
|
96
|
+
"@dxos/random": "0.8.1-main.013e445"
|
|
97
97
|
},
|
|
98
98
|
"publishConfig": {
|
|
99
99
|
"access": "public"
|
|
@@ -272,15 +272,6 @@ export default (context: PluginsContext) =>
|
|
|
272
272
|
icon: 'ph--computer-tower--regular',
|
|
273
273
|
},
|
|
274
274
|
},
|
|
275
|
-
{
|
|
276
|
-
id: Devtools.Agent.Search,
|
|
277
|
-
data: Devtools.Agent.Search,
|
|
278
|
-
type: DEVTOOLS_TYPE,
|
|
279
|
-
properties: {
|
|
280
|
-
label: ['search label', { ns: DEBUG_PLUGIN }],
|
|
281
|
-
icon: 'ph--magnifying-glass--regular',
|
|
282
|
-
},
|
|
283
|
-
},
|
|
284
275
|
],
|
|
285
276
|
},
|
|
286
277
|
{
|
|
@@ -310,6 +301,15 @@ export default (context: PluginsContext) =>
|
|
|
310
301
|
icon: 'ph--function--regular',
|
|
311
302
|
},
|
|
312
303
|
},
|
|
304
|
+
{
|
|
305
|
+
id: Devtools.Edge.Traces,
|
|
306
|
+
data: Devtools.Edge.Traces,
|
|
307
|
+
type: DEVTOOLS_TYPE,
|
|
308
|
+
properties: {
|
|
309
|
+
label: ['traces label', { ns: DEBUG_PLUGIN }],
|
|
310
|
+
icon: 'ph--line-segments--regular',
|
|
311
|
+
},
|
|
312
|
+
},
|
|
313
313
|
],
|
|
314
314
|
},
|
|
315
315
|
],
|
|
@@ -379,14 +379,52 @@ export default (context: PluginsContext) =>
|
|
|
379
379
|
|
|
380
380
|
return [
|
|
381
381
|
{
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
type:
|
|
385
|
-
data: { space, type: 'dxos.org/plugin/debug/space' },
|
|
382
|
+
id: `${space.id}-${Devtools.id}`,
|
|
383
|
+
data: null,
|
|
384
|
+
type: DEVTOOLS_TYPE,
|
|
386
385
|
properties: {
|
|
387
|
-
label: ['
|
|
388
|
-
icon: 'ph--
|
|
386
|
+
label: ['devtools label', { ns: DEBUG_PLUGIN }],
|
|
387
|
+
icon: 'ph--hammer--regular',
|
|
389
388
|
},
|
|
389
|
+
nodes: [
|
|
390
|
+
{
|
|
391
|
+
// TODO(wittjosiah): Cannot use slashes in ids until we have a router which decouples ids from url paths.
|
|
392
|
+
id: `${space.id}-debug`,
|
|
393
|
+
type: 'dxos.org/plugin/debug/space',
|
|
394
|
+
data: { space, type: 'dxos.org/plugin/debug/space' },
|
|
395
|
+
properties: {
|
|
396
|
+
label: ['debug label', { ns: DEBUG_PLUGIN }],
|
|
397
|
+
icon: 'ph--bug--regular',
|
|
398
|
+
},
|
|
399
|
+
},
|
|
400
|
+
{
|
|
401
|
+
id: `${space.id}-${Devtools.Echo.Space}`,
|
|
402
|
+
data: Devtools.Echo.Space,
|
|
403
|
+
type: DEVTOOLS_TYPE,
|
|
404
|
+
properties: {
|
|
405
|
+
label: ['space label', { ns: DEBUG_PLUGIN }],
|
|
406
|
+
icon: 'ph--planet--regular',
|
|
407
|
+
},
|
|
408
|
+
},
|
|
409
|
+
{
|
|
410
|
+
id: `${space.id}-${Devtools.Echo.Objects}`,
|
|
411
|
+
data: Devtools.Echo.Objects,
|
|
412
|
+
type: DEVTOOLS_TYPE,
|
|
413
|
+
properties: {
|
|
414
|
+
label: ['objects label', { ns: DEBUG_PLUGIN }],
|
|
415
|
+
icon: 'ph--database--regular',
|
|
416
|
+
},
|
|
417
|
+
},
|
|
418
|
+
{
|
|
419
|
+
id: `${space.id}-${Devtools.Edge.Traces}`,
|
|
420
|
+
data: Devtools.Edge.Traces,
|
|
421
|
+
type: DEVTOOLS_TYPE,
|
|
422
|
+
properties: {
|
|
423
|
+
label: ['traces label', { ns: DEBUG_PLUGIN }],
|
|
424
|
+
icon: 'ph--line-segments--regular',
|
|
425
|
+
},
|
|
426
|
+
},
|
|
427
|
+
],
|
|
390
428
|
},
|
|
391
429
|
];
|
|
392
430
|
},
|
|
@@ -10,6 +10,7 @@ import {
|
|
|
10
10
|
createIntent,
|
|
11
11
|
createSurface,
|
|
12
12
|
LayoutAction,
|
|
13
|
+
useCapability,
|
|
13
14
|
type PluginsContext,
|
|
14
15
|
} from '@dxos/app-framework';
|
|
15
16
|
import {
|
|
@@ -33,12 +34,13 @@ import {
|
|
|
33
34
|
TracingPanel,
|
|
34
35
|
DashboardPanel,
|
|
35
36
|
EdgeDashboardPanel,
|
|
36
|
-
SearchPanel,
|
|
37
37
|
AutomergePanel,
|
|
38
38
|
WorkflowPanel,
|
|
39
39
|
QueuesPanel,
|
|
40
|
+
InvocationTracePanel,
|
|
40
41
|
} from '@dxos/devtools';
|
|
41
42
|
import { SettingsStore } from '@dxos/local-storage';
|
|
43
|
+
import { ClientCapabilities } from '@dxos/plugin-client';
|
|
42
44
|
import { Graph } from '@dxos/plugin-graph';
|
|
43
45
|
import { SpaceAction, CollectionType } from '@dxos/plugin-space/types';
|
|
44
46
|
import {
|
|
@@ -48,17 +50,10 @@ import {
|
|
|
48
50
|
type ReactiveEchoObject,
|
|
49
51
|
type ReactiveObject,
|
|
50
52
|
type Space,
|
|
53
|
+
parseId,
|
|
51
54
|
} from '@dxos/react-client/echo';
|
|
52
55
|
|
|
53
|
-
import {
|
|
54
|
-
DebugApp,
|
|
55
|
-
DebugObjectPanel,
|
|
56
|
-
DebugSettings,
|
|
57
|
-
DebugSpace,
|
|
58
|
-
DebugStatus,
|
|
59
|
-
SpaceGenerator,
|
|
60
|
-
Wireframe,
|
|
61
|
-
} from '../components';
|
|
56
|
+
import { DebugApp, DebugObjectPanel, DebugSettings, DebugStatus, SpaceGenerator, Wireframe } from '../components';
|
|
62
57
|
import { DEBUG_PLUGIN } from '../meta';
|
|
63
58
|
import { type DebugSettingsProps, Devtools } from '../types';
|
|
64
59
|
|
|
@@ -74,6 +69,15 @@ type GraphDebug = {
|
|
|
74
69
|
const isSpaceDebug = (data: any): data is SpaceDebug => data?.type === `${DEBUG_PLUGIN}/space` && isSpace(data.space);
|
|
75
70
|
const isGraphDebug = (data: any): data is GraphDebug => data?.graph instanceof Graph;
|
|
76
71
|
|
|
72
|
+
// TODO(wittjosiah): Factor out?
|
|
73
|
+
const useCurrentSpace = () => {
|
|
74
|
+
const layout = useCapability(Capabilities.Layout);
|
|
75
|
+
const client = useCapability(ClientCapabilities.Client);
|
|
76
|
+
const { spaceId } = parseId(layout.workspace);
|
|
77
|
+
const space = spaceId ? client.spaces.get(spaceId) : undefined;
|
|
78
|
+
return space;
|
|
79
|
+
};
|
|
80
|
+
|
|
77
81
|
export default (context: PluginsContext) =>
|
|
78
82
|
contributes(Capabilities.ReactSurface, [
|
|
79
83
|
createSurface({
|
|
@@ -109,12 +113,7 @@ export default (context: PluginsContext) =>
|
|
|
109
113
|
[data.subject.space],
|
|
110
114
|
);
|
|
111
115
|
|
|
112
|
-
|
|
113
|
-
return deprecated ? (
|
|
114
|
-
<DebugSpace space={data.subject.space} onAddObjects={handleCreateObject} />
|
|
115
|
-
) : (
|
|
116
|
-
<SpaceGenerator space={data.subject.space} onCreateObjects={handleCreateObject} />
|
|
117
|
-
);
|
|
116
|
+
return <SpaceGenerator space={data.subject.space} onCreateObjects={handleCreateObject} />;
|
|
118
117
|
},
|
|
119
118
|
}),
|
|
120
119
|
createSurface({
|
|
@@ -157,7 +156,7 @@ export default (context: PluginsContext) =>
|
|
|
157
156
|
id: `${DEBUG_PLUGIN}/client/config`,
|
|
158
157
|
role: 'article',
|
|
159
158
|
filter: (data): data is any => data.subject === Devtools.Client.Config,
|
|
160
|
-
component: () => <ConfigPanel />,
|
|
159
|
+
component: () => <ConfigPanel vaultSelector={false} />,
|
|
161
160
|
}),
|
|
162
161
|
createSurface({
|
|
163
162
|
id: `${DEBUG_PLUGIN}/client/storage`,
|
|
@@ -225,12 +224,13 @@ export default (context: PluginsContext) =>
|
|
|
225
224
|
role: 'article',
|
|
226
225
|
filter: (data): data is any => data.subject === Devtools.Echo.Space,
|
|
227
226
|
component: () => {
|
|
227
|
+
const space = useCurrentSpace();
|
|
228
228
|
const { dispatchPromise: dispatch } = context.requestCapability(Capabilities.IntentDispatcher);
|
|
229
229
|
const handleSelect = useCallback(
|
|
230
230
|
() => dispatch(createIntent(LayoutAction.Open, { part: 'main', subject: [Devtools.Echo.Feeds] })),
|
|
231
231
|
[dispatch],
|
|
232
232
|
);
|
|
233
|
-
return <SpaceInfoPanel onSelectFeed={handleSelect} onSelectPipeline={handleSelect} />;
|
|
233
|
+
return <SpaceInfoPanel space={space} onSelectFeed={handleSelect} onSelectPipeline={handleSelect} />;
|
|
234
234
|
},
|
|
235
235
|
}),
|
|
236
236
|
createSurface({
|
|
@@ -243,7 +243,10 @@ export default (context: PluginsContext) =>
|
|
|
243
243
|
id: `${DEBUG_PLUGIN}/echo/objects`,
|
|
244
244
|
role: 'article',
|
|
245
245
|
filter: (data): data is any => data.subject === Devtools.Echo.Objects,
|
|
246
|
-
component: () =>
|
|
246
|
+
component: () => {
|
|
247
|
+
const space = useCurrentSpace();
|
|
248
|
+
return <ObjectsPanel space={space} />;
|
|
249
|
+
},
|
|
247
250
|
}),
|
|
248
251
|
createSurface({
|
|
249
252
|
id: `${DEBUG_PLUGIN}/echo/automerge`,
|
|
@@ -293,12 +296,6 @@ export default (context: PluginsContext) =>
|
|
|
293
296
|
filter: (data): data is any => data.subject === Devtools.Agent.Dashboard,
|
|
294
297
|
component: () => <DashboardPanel />,
|
|
295
298
|
}),
|
|
296
|
-
createSurface({
|
|
297
|
-
id: `${DEBUG_PLUGIN}/agent/search`,
|
|
298
|
-
role: 'article',
|
|
299
|
-
filter: (data): data is any => data.subject === Devtools.Agent.Search,
|
|
300
|
-
component: () => <SearchPanel />,
|
|
301
|
-
}),
|
|
302
299
|
createSurface({
|
|
303
300
|
id: `${DEBUG_PLUGIN}/edge/dashboard`,
|
|
304
301
|
role: 'article',
|
|
@@ -311,4 +308,13 @@ export default (context: PluginsContext) =>
|
|
|
311
308
|
filter: (data): data is any => data.subject === Devtools.Edge.Workflows,
|
|
312
309
|
component: () => <WorkflowPanel />,
|
|
313
310
|
}),
|
|
311
|
+
createSurface({
|
|
312
|
+
id: `${DEBUG_PLUGIN}/edge/traces`,
|
|
313
|
+
role: 'article',
|
|
314
|
+
filter: (data): data is any => data.subject === Devtools.Edge.Traces,
|
|
315
|
+
component: () => {
|
|
316
|
+
const space = useCurrentSpace();
|
|
317
|
+
return <InvocationTracePanel space={space} />;
|
|
318
|
+
},
|
|
319
|
+
}),
|
|
314
320
|
]);
|
|
@@ -15,7 +15,7 @@ export type SchemaTableProps = {
|
|
|
15
15
|
|
|
16
16
|
export const SchemaTable = ({ types, objects = {}, label, onClick }: SchemaTableProps) => {
|
|
17
17
|
return (
|
|
18
|
-
<div className='grid grid-cols-[1fr_80px_40px] gap-1 overflow-
|
|
18
|
+
<div className='grid grid-cols-[1fr_80px_40px] gap-1 overflow-none'>
|
|
19
19
|
<div className='grid grid-cols-subgrid col-span-3'>
|
|
20
20
|
<div className='px-2 text-sm text-primary-500'>{label}</div>
|
|
21
21
|
<div className='px-2 text-xs text-subdued text-right'>count</div>
|
|
@@ -145,7 +145,7 @@ export const SpaceGenerator = ({ space, onCreateObjects }: SpaceGeneratorProps)
|
|
|
145
145
|
}, []);
|
|
146
146
|
|
|
147
147
|
return (
|
|
148
|
-
<div role='none' className='flex flex-col divide-y divide-separator'>
|
|
148
|
+
<div role='none' className='flex flex-col divide-y divide-separator overflow-y-auto'>
|
|
149
149
|
<Toolbar.Root classNames='p-1'>
|
|
150
150
|
<IconButton icon='ph--arrow-clockwise--regular' iconOnly label='Refresh' onClick={updateInfo} />
|
|
151
151
|
<IconButton
|
package/src/components/index.ts
CHANGED
|
@@ -5,7 +5,6 @@
|
|
|
5
5
|
import { lazy } from 'react';
|
|
6
6
|
|
|
7
7
|
export const DebugApp = lazy(() => import('./DebugApp'));
|
|
8
|
-
export const DebugSpace = lazy(() => import('./DebugSpace'));
|
|
9
8
|
export const SpaceGenerator = lazy(() => import('./SpaceGenerator'));
|
|
10
9
|
|
|
11
10
|
export * from './DebugObjectPanel';
|
package/src/meta.ts
CHANGED
|
@@ -6,7 +6,7 @@ import { type PluginMeta } from '@dxos/app-framework';
|
|
|
6
6
|
|
|
7
7
|
export const DEBUG_PLUGIN = 'dxos.org/plugin/debug';
|
|
8
8
|
|
|
9
|
-
export const meta = {
|
|
9
|
+
export const meta: PluginMeta = {
|
|
10
10
|
id: DEBUG_PLUGIN,
|
|
11
11
|
name: 'Debug',
|
|
12
12
|
description:
|
|
@@ -15,4 +15,4 @@ export const meta = {
|
|
|
15
15
|
source: 'https://github.com/dxos/dxos/tree/main/packages/plugins/plugin-debug',
|
|
16
16
|
tags: ['experimental'],
|
|
17
17
|
screenshots: ['https://dxos.network/plugin-details-debug-dark.png'],
|
|
18
|
-
}
|
|
18
|
+
};
|
package/src/translations.ts
CHANGED
package/src/types.ts
CHANGED