@principal-ai/subsystems-react 0.55.0 → 0.55.2
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/README.md +2 -1
- package/dist/graphify/index.d.ts +2 -0
- package/dist/graphify/index.d.ts.map +1 -1
- package/dist/graphify/index.js +1 -0
- package/dist/graphify/index.js.map +1 -1
- package/dist/graphify/symbolFocus.d.ts +49 -0
- package/dist/graphify/symbolFocus.d.ts.map +1 -0
- package/dist/graphify/symbolFocus.js +139 -0
- package/dist/graphify/symbolFocus.js.map +1 -0
- package/dist/index.d.ts +7 -5
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/pierre/PierreTrailCodeView.d.ts +1 -1
- package/dist/pierre/PierreTrailCodeView.d.ts.map +1 -1
- package/dist/stories/Canvases/Aggregate/aggregateViewFixture.d.ts.map +1 -0
- package/dist/stories/Canvases/Aggregate/aggregateViewFixture.js.map +1 -0
- package/dist/stories/Canvases/Subsystem/fixtures.d.ts.map +1 -0
- package/dist/stories/Canvases/Subsystem/fixtures.js.map +1 -0
- package/dist/subsystem/ComponentDeclaration.d.ts +1 -1
- package/dist/subsystem/ComponentDeclaration.d.ts.map +1 -1
- package/dist/subsystem/ComponentDeclaration.js +1 -1
- package/dist/subsystem/ComponentDeclaration.js.map +1 -1
- package/dist/subsystem/ConstructsCatalog.d.ts +1 -1
- package/dist/subsystem/ConstructsCatalog.d.ts.map +1 -1
- package/dist/subsystem/SubsystemComponentGraph.d.ts +36 -2
- package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
- package/dist/subsystem/SubsystemComponentGraph.js +250 -35
- package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
- package/dist/subsystem/SymbolFocusedView.d.ts +30 -0
- package/dist/subsystem/SymbolFocusedView.d.ts.map +1 -0
- package/dist/subsystem/SymbolFocusedView.js +24 -0
- package/dist/subsystem/SymbolFocusedView.js.map +1 -0
- package/dist/subsystem/SymbolInspectionCard.d.ts +1 -1
- package/dist/subsystem/SymbolInspectionCard.d.ts.map +1 -1
- package/dist/subsystem/SymbolInspectionCard.js +1 -1
- package/dist/subsystem/SymbolInspectionCard.js.map +1 -1
- package/dist/subsystem/TrailsPanel.d.ts +16 -1
- package/dist/subsystem/TrailsPanel.d.ts.map +1 -1
- package/dist/subsystem/TrailsPanel.js +71 -9
- package/dist/subsystem/TrailsPanel.js.map +1 -1
- package/dist/subsystem/graphChrome.d.ts +13 -0
- package/dist/subsystem/graphChrome.d.ts.map +1 -1
- package/dist/subsystem/graphChrome.js +19 -1
- package/dist/subsystem/graphChrome.js.map +1 -1
- package/dist/subsystem/model.d.ts +40 -4
- package/dist/subsystem/model.d.ts.map +1 -1
- package/dist/subsystem/model.js +38 -7
- package/dist/subsystem/model.js.map +1 -1
- package/dist/subsystem/{declarationRef.d.ts → sourceSpan.d.ts} +1 -1
- package/dist/subsystem/sourceSpan.d.ts.map +1 -0
- package/dist/subsystem/{declarationRef.js → sourceSpan.js} +1 -1
- package/dist/subsystem/sourceSpan.js.map +1 -0
- package/package.json +2 -2
- package/src/graphify/index.ts +6 -0
- package/src/graphify/symbolFocus.test.ts +163 -0
- package/src/graphify/symbolFocus.ts +190 -0
- package/src/index.ts +9 -2
- package/src/pierre/PierreTrailCodeView.tsx +1 -1
- package/src/stories/{Subsystem/AggregateGraph → Canvases/Aggregate}/AggregateFrameGraph.stories.tsx +1 -1
- package/src/stories/{Subsystem/C4Graph → Canvases/C4}/C4CardGrow.stories.tsx +1 -1
- package/src/stories/{Subsystem/C4Graph → Canvases/C4}/C4Component.stories.tsx +1 -1
- package/src/stories/{Subsystem/C4Graph → Canvases/C4}/C4Container.stories.tsx +1 -1
- package/src/stories/{Subsystem/C4Graph → Canvases/C4}/C4NodeGallery.stories.tsx +1 -1
- package/src/stories/{Subsystem/C4Graph → Canvases/C4}/C4ToComponentDrill.stories.tsx +1 -1
- package/src/stories/{Subsystem/C4Graph → Canvases/C4}/C4Transition.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/AnimatedProgression.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Appearance.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Basics.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Captures.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Constructs.stories.tsx +2 -2
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/CustomEntities.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Deprecated.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/DetailPanel.stories.tsx +2 -2
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Diagnostics.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/EdgeViews.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/FrameworkStereotype.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/GraphTitle.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Issues.stories.tsx +1 -1
- package/src/stories/Canvases/Subsystem/LayoutDirection.stories.tsx +122 -0
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/ModuleBadges.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/ModulePathNesting.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Modules.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/NodeAnatomy.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Packages.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Processes.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Proposed.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/ProposedTrails.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Reorder.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Scenarios.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Spotlights.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/StoreValueType.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/TrailAutoplay.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/Trails.stories.tsx +78 -2
- package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/WorkspacePackageFrames.stories.tsx +1 -1
- package/src/stories/Canvases/SymbolFocusedView/SymbolFocusedView.stories.tsx +163 -0
- package/src/stories/{Subsystem → Components}/AgentsPanel.stories.tsx +1 -1
- package/src/stories/{Subsystem/ComponentDeclarationAudit.stories.tsx → Components/ComponentDeclaration/Audit.stories.tsx} +4 -4
- package/src/stories/{Subsystem/ComponentDeclarationSymbols.stories.tsx → Components/ComponentDeclaration/Symbols.stories.tsx} +5 -5
- package/src/stories/{Subsystem → Components}/ConstructsCatalog.stories.tsx +2 -2
- package/src/stories/{Subsystem/Sidebar → Components}/GraphSidebar.stories.tsx +4 -4
- package/src/stories/{Subsystem/IssueIcons.stories.tsx → Components/IssueList.stories.tsx} +1 -1
- package/src/stories/{Subsystem/StoreValueTypeDeclaration.stories.tsx → Components/StoreValueType.stories.tsx} +1 -1
- package/src/subsystem/ComponentDeclaration.tsx +2 -2
- package/src/subsystem/ConstructsCatalog.tsx +1 -1
- package/src/subsystem/SubsystemComponentGraph.tsx +334 -28
- package/src/subsystem/SymbolFocusedView.tsx +80 -0
- package/src/subsystem/SymbolInspectionCard.tsx +2 -2
- package/src/subsystem/TrailsPanel.tsx +114 -5
- package/src/subsystem/graphChrome.tsx +22 -1
- package/src/subsystem/layoutDirection.test.ts +26 -0
- package/src/subsystem/model.test.ts +17 -0
- package/src/subsystem/model.ts +70 -10
- package/src/subsystem/{declarationRef.test.ts → sourceSpan.test.ts} +1 -1
- package/dist/stories/Subsystem/AggregateGraph/aggregateViewFixture.d.ts.map +0 -1
- package/dist/stories/Subsystem/AggregateGraph/aggregateViewFixture.js.map +0 -1
- package/dist/stories/Subsystem/ComponentGraph/fixtures.d.ts.map +0 -1
- package/dist/stories/Subsystem/ComponentGraph/fixtures.js.map +0 -1
- package/dist/subsystem/declarationRef.d.ts.map +0 -1
- package/dist/subsystem/declarationRef.js.map +0 -1
- package/src/stories/Subsystem/EgoGraph/EgoGraph.stories.tsx +0 -351
- /package/dist/stories/{Subsystem/AggregateGraph → Canvases/Aggregate}/aggregateViewFixture.d.ts +0 -0
- /package/dist/stories/{Subsystem/AggregateGraph → Canvases/Aggregate}/aggregateViewFixture.js +0 -0
- /package/dist/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/fixtures.d.ts +0 -0
- /package/dist/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/fixtures.js +0 -0
- /package/src/graphify/__fixtures__/{ego-samples.json → symbol-focused-samples.json} +0 -0
- /package/src/stories/{Subsystem/AggregateGraph → Canvases/Aggregate}/aggregateViewFixture.ts +0 -0
- /package/src/stories/{Subsystem/ComponentGraph → Canvases/Subsystem}/fixtures.ts +0 -0
- /package/src/subsystem/{declarationRef.ts → sourceSpan.ts} +0 -0
|
@@ -6,7 +6,7 @@ import type { SubsystemComponent } from '../../../subsystem/model';
|
|
|
6
6
|
import { graphSpecFromSteps } from './fixtures';
|
|
7
7
|
|
|
8
8
|
const meta = {
|
|
9
|
-
title: 'Subsystem/
|
|
9
|
+
title: 'Canvases/Subsystem/WorkspacePackages',
|
|
10
10
|
component: SubsystemComponentGraph,
|
|
11
11
|
parameters: { layout: 'fullscreen' },
|
|
12
12
|
tags: ['autodocs'],
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Symbol-focused view — one graphify symbol at the center plus its real
|
|
3
|
+
* connections, drawn on the shared subsystem canvas.
|
|
4
|
+
*
|
|
5
|
+
* The center + neighbors come from
|
|
6
|
+
* `graphify/__fixtures__/symbol-focused-samples.json` (extracted from this
|
|
7
|
+
* repo's cached graph). The stories only supply the focal node and its
|
|
8
|
+
* neighborhood; `SymbolFocusedView` projects them onto component-graph inputs
|
|
9
|
+
* and keeps the raw graphify verbs, so relations draw from the separate
|
|
10
|
+
* `GRAPHIFY_RELATION_COLOR` palette — visually distinct from authored
|
|
11
|
+
* subsystem mechanisms.
|
|
12
|
+
*/
|
|
13
|
+
import React from 'react';
|
|
14
|
+
import '@xyflow/react/dist/style.css';
|
|
15
|
+
import type { Meta, StoryObj } from '@storybook/react';
|
|
16
|
+
import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
|
|
17
|
+
import { SymbolFocusedView } from '../../../subsystem/SymbolFocusedView';
|
|
18
|
+
import { SubsystemComponentGraph } from '../../../subsystem/SubsystemComponentGraph';
|
|
19
|
+
import type { GraphifyEdge, GraphifyNode } from '../../../graphify';
|
|
20
|
+
import type {
|
|
21
|
+
SubsystemComponent,
|
|
22
|
+
SubsystemComponentConstruct,
|
|
23
|
+
} from '../../../subsystem/model';
|
|
24
|
+
import symbolSamples from '../../../graphify/__fixtures__/symbol-focused-samples.json';
|
|
25
|
+
|
|
26
|
+
const meta = {
|
|
27
|
+
title: 'Canvases/SymbolFocusedView',
|
|
28
|
+
component: SymbolFocusedView,
|
|
29
|
+
parameters: { layout: 'fullscreen' },
|
|
30
|
+
tags: ['autodocs'],
|
|
31
|
+
decorators: [
|
|
32
|
+
(Story) => (
|
|
33
|
+
<ThemeProvider theme={defaultEditorTheme}>
|
|
34
|
+
<Story />
|
|
35
|
+
</ThemeProvider>
|
|
36
|
+
),
|
|
37
|
+
],
|
|
38
|
+
} satisfies Meta<typeof SymbolFocusedView>;
|
|
39
|
+
|
|
40
|
+
export default meta;
|
|
41
|
+
type Story = StoryObj<typeof meta>;
|
|
42
|
+
|
|
43
|
+
// ---------------------------------------------------------------------------
|
|
44
|
+
// Fixture shape
|
|
45
|
+
// ---------------------------------------------------------------------------
|
|
46
|
+
|
|
47
|
+
type FixtureCategory = {
|
|
48
|
+
center?: GraphifyNode;
|
|
49
|
+
degree?: number;
|
|
50
|
+
neighborCount?: number;
|
|
51
|
+
neighbors?: GraphifyNode[];
|
|
52
|
+
edges?: GraphifyEdge[];
|
|
53
|
+
};
|
|
54
|
+
|
|
55
|
+
type Category = 'class' | 'function' | 'method' | 'type' | 'module';
|
|
56
|
+
|
|
57
|
+
const categories = symbolSamples.categories as unknown as Record<Category, FixtureCategory>;
|
|
58
|
+
const authoredCategories = symbolSamples.authoredCategories as unknown as Record<
|
|
59
|
+
string,
|
|
60
|
+
{ component: SubsystemComponent }
|
|
61
|
+
>;
|
|
62
|
+
|
|
63
|
+
const REPO_PURL = 'pkg:github/principal-ai/subsystem-modeling';
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Constructs graphify's structural inference cannot resolve. Inference reads
|
|
67
|
+
* labels and incident edges only, so a bare type node with no `implements`
|
|
68
|
+
* edge comes back `unknown`; the fixture knows better.
|
|
69
|
+
*/
|
|
70
|
+
const CENTER_CONSTRUCT_OVERRIDE: Partial<Record<Category, SubsystemComponentConstruct>> = {
|
|
71
|
+
type: 'interface',
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
function SymbolFocusDemo({
|
|
75
|
+
category,
|
|
76
|
+
orderByLine,
|
|
77
|
+
}: {
|
|
78
|
+
category: Category;
|
|
79
|
+
orderByLine: boolean;
|
|
80
|
+
}) {
|
|
81
|
+
const cat = categories[category];
|
|
82
|
+
if (!cat.center) return null;
|
|
83
|
+
return (
|
|
84
|
+
<div style={{ width: '100%', height: '100vh', display: 'flex', flexDirection: 'column' }}>
|
|
85
|
+
<SymbolFocusedView
|
|
86
|
+
center={cat.center}
|
|
87
|
+
neighbors={cat.neighbors ?? []}
|
|
88
|
+
edges={cat.edges ?? []}
|
|
89
|
+
repoPurl={REPO_PURL}
|
|
90
|
+
centerConstruct={CENTER_CONSTRUCT_OVERRIDE[category]}
|
|
91
|
+
orderByLine={orderByLine}
|
|
92
|
+
showSingletonFrames
|
|
93
|
+
showEdgeLabels
|
|
94
|
+
title={`Symbol focused view — ${category}`}
|
|
95
|
+
description={`graphify center ${cat.center.label} · ${cat.degree ?? 0} edges · ${cat.neighborCount ?? 0} neighbors${orderByLine ? ' · ordered by call-site line' : ''}`}
|
|
96
|
+
/>
|
|
97
|
+
</div>
|
|
98
|
+
);
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/** Everything on disk for the center: node + neighbor nodes + raw edges. */
|
|
102
|
+
function RawDump({ category }: { category: Category }) {
|
|
103
|
+
const cat = categories[category];
|
|
104
|
+
return (
|
|
105
|
+
<pre
|
|
106
|
+
style={{
|
|
107
|
+
margin: 0,
|
|
108
|
+
padding: 12,
|
|
109
|
+
fontSize: 12,
|
|
110
|
+
lineHeight: 1.5,
|
|
111
|
+
fontFamily: 'monospace',
|
|
112
|
+
color: '#ddd',
|
|
113
|
+
background: '#111',
|
|
114
|
+
height: '100vh',
|
|
115
|
+
overflow: 'auto',
|
|
116
|
+
boxSizing: 'border-box',
|
|
117
|
+
}}
|
|
118
|
+
>
|
|
119
|
+
{JSON.stringify({ category, ...cat }, null, 2)}
|
|
120
|
+
</pre>
|
|
121
|
+
);
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
// ---------------------------------------------------------------------------
|
|
125
|
+
// Stories — one per graphify node category
|
|
126
|
+
// ---------------------------------------------------------------------------
|
|
127
|
+
|
|
128
|
+
export const Class: Story = { render: () => <SymbolFocusDemo category="class" orderByLine /> };
|
|
129
|
+
export const Function: Story = { render: () => <SymbolFocusDemo category="function" orderByLine /> };
|
|
130
|
+
export const Method: Story = { render: () => <SymbolFocusDemo category="method" orderByLine /> };
|
|
131
|
+
export const Type: Story = { render: () => <SymbolFocusDemo category="type" orderByLine /> };
|
|
132
|
+
export const Module: Story = { render: () => <SymbolFocusDemo category="module" orderByLine /> };
|
|
133
|
+
|
|
134
|
+
/** Same centers, ELK's default ordering — compare against the line-ordered set. */
|
|
135
|
+
export const MethodReorderOff: Story = {
|
|
136
|
+
render: () => <SymbolFocusDemo category="method" orderByLine={false} />,
|
|
137
|
+
};
|
|
138
|
+
|
|
139
|
+
/** The raw extracted data behind each center — no rendering involved. */
|
|
140
|
+
export const Raw: Story = { render: () => <RawDump category="class" /> };
|
|
141
|
+
|
|
142
|
+
// ---------------------------------------------------------------------------
|
|
143
|
+
// Authored-only constructs (no graphify node) pulled from the model store
|
|
144
|
+
// ---------------------------------------------------------------------------
|
|
145
|
+
|
|
146
|
+
const authoredComponents: SubsystemComponent[] = [
|
|
147
|
+
authoredCategories.store?.component,
|
|
148
|
+
authoredCategories.external?.component,
|
|
149
|
+
authoredCategories.custom_entity?.component,
|
|
150
|
+
].filter(Boolean) as SubsystemComponent[];
|
|
151
|
+
|
|
152
|
+
/** store / external / custom_entity — authored nodes, no graphify anchor. */
|
|
153
|
+
export const AuthoredConstructs: Story = {
|
|
154
|
+
render: () => (
|
|
155
|
+
<div style={{ width: '100%', height: '100vh' }}>
|
|
156
|
+
<SubsystemComponentGraph
|
|
157
|
+
components={authoredComponents}
|
|
158
|
+
title="Authored-only constructs"
|
|
159
|
+
description="store / external / custom_entity — reused cast from stored subsystem models (no graphify node, no edges)."
|
|
160
|
+
/>
|
|
161
|
+
</div>
|
|
162
|
+
),
|
|
163
|
+
};
|
|
@@ -2,12 +2,12 @@ import React from 'react';
|
|
|
2
2
|
import '@xyflow/react/dist/style.css';
|
|
3
3
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
4
|
import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
|
|
5
|
-
import { ComponentDeclaration } from '
|
|
6
|
-
import type { SubsystemComponent } from '
|
|
7
|
-
import type { GraphifyComponentDetail } from '
|
|
5
|
+
import { ComponentDeclaration } from '../../../subsystem/ComponentDeclaration';
|
|
6
|
+
import type { SubsystemComponent } from '../../../subsystem/model';
|
|
7
|
+
import type { GraphifyComponentDetail } from '../../../graphify';
|
|
8
8
|
|
|
9
9
|
const meta = {
|
|
10
|
-
title: '
|
|
10
|
+
title: 'Components/ComponentDeclaration/Audit',
|
|
11
11
|
component: ComponentDeclaration,
|
|
12
12
|
parameters: { layout: 'padded' },
|
|
13
13
|
tags: ['autodocs'],
|
|
@@ -2,13 +2,13 @@ import React, { useState } from 'react';
|
|
|
2
2
|
import '@xyflow/react/dist/style.css';
|
|
3
3
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
4
4
|
import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
|
|
5
|
-
import { ComponentDeclaration } from '
|
|
6
|
-
import type { SubsystemComponent } from '
|
|
7
|
-
import type { GraphifyComponentDetail } from '
|
|
8
|
-
import type { SymbolInspection } from '
|
|
5
|
+
import { ComponentDeclaration } from '../../../subsystem/ComponentDeclaration';
|
|
6
|
+
import type { SubsystemComponent } from '../../../subsystem/model';
|
|
7
|
+
import type { GraphifyComponentDetail } from '../../../graphify';
|
|
8
|
+
import type { SymbolInspection } from '../../../subsystem/symbolRefs';
|
|
9
9
|
|
|
10
10
|
const meta = {
|
|
11
|
-
title: '
|
|
11
|
+
title: 'Components/ComponentDeclaration/Symbols',
|
|
12
12
|
component: ComponentDeclaration,
|
|
13
13
|
parameters: { layout: 'padded' },
|
|
14
14
|
tags: ['autodocs'],
|
|
@@ -4,12 +4,12 @@ import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme
|
|
|
4
4
|
import { ConstructsCatalog } from '../../subsystem/ConstructsCatalog';
|
|
5
5
|
import { PierreFileView, PierreSnippetView } from '../../pierre';
|
|
6
6
|
import type { SubsystemComponent } from '../../subsystem/model';
|
|
7
|
-
import type { SubsystemOpenFileOptions } from '../../subsystem/
|
|
7
|
+
import type { SubsystemOpenFileOptions } from '../../subsystem/sourceSpan';
|
|
8
8
|
import type { SymbolInspection } from '../../subsystem/symbolRefs';
|
|
9
9
|
import type { GraphifyComponentDetail } from '../../graphify';
|
|
10
10
|
|
|
11
11
|
const meta = {
|
|
12
|
-
title: '
|
|
12
|
+
title: 'Components/ConstructsCatalog',
|
|
13
13
|
component: ConstructsCatalog,
|
|
14
14
|
parameters: { layout: 'fullscreen' },
|
|
15
15
|
tags: ['autodocs'],
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
import React, { useMemo, useState } from 'react';
|
|
2
2
|
import type { Meta, StoryObj } from '@storybook/react';
|
|
3
3
|
import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
|
|
4
|
-
import { GraphSidebar } from '
|
|
5
|
-
import { TrailsPanel } from '
|
|
4
|
+
import { GraphSidebar } from '../../subsystem/GraphSidebar';
|
|
5
|
+
import { TrailsPanel } from '../../subsystem/TrailsPanel';
|
|
6
6
|
import {
|
|
7
7
|
DRILLDOWN_COMPONENTS,
|
|
8
8
|
DRILLDOWN_DOC,
|
|
9
9
|
DRILLDOWN_TRAILS,
|
|
10
|
-
} from '
|
|
10
|
+
} from '../../subsystem/__fixtures__/c4Drilldown';
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
13
|
* `GraphSidebar` — the side panel extracted out of `SubsystemComponentGraph`,
|
|
@@ -176,7 +176,7 @@ function PanelDemo({ controlled = false }: { controlled?: boolean }) {
|
|
|
176
176
|
}
|
|
177
177
|
|
|
178
178
|
const meta = {
|
|
179
|
-
title: '
|
|
179
|
+
title: 'Components/GraphSidebar',
|
|
180
180
|
component: GraphSidebar,
|
|
181
181
|
parameters: { layout: 'fullscreen' },
|
|
182
182
|
tags: ['autodocs'],
|
|
@@ -17,7 +17,7 @@ import type { SubsystemComponent } from '../../subsystem/model';
|
|
|
17
17
|
* storage backing. The value type is panel-only.
|
|
18
18
|
*/
|
|
19
19
|
const meta = {
|
|
20
|
-
title: '
|
|
20
|
+
title: 'Components/StoreValueType',
|
|
21
21
|
parameters: { layout: 'padded' },
|
|
22
22
|
tags: ['autodocs'],
|
|
23
23
|
decorators: [
|
|
@@ -16,8 +16,8 @@ import {
|
|
|
16
16
|
type SubsystemComponent,
|
|
17
17
|
type SubsystemDeclTokenKind,
|
|
18
18
|
} from './model';
|
|
19
|
-
import type { SpanFreshness, SubsystemOpenFileOptions } from './
|
|
20
|
-
import { parseSourceLocation } from './
|
|
19
|
+
import type { SpanFreshness, SubsystemOpenFileOptions } from './sourceSpan';
|
|
20
|
+
import { parseSourceLocation } from './sourceSpan';
|
|
21
21
|
import { resolveComponentDeclaration } from './formatDeclaration';
|
|
22
22
|
import { tokenizeComponent } from './tokenizeComponent';
|
|
23
23
|
import { componentColor } from '../pierre/constructColors';
|
|
@@ -30,7 +30,7 @@ import {
|
|
|
30
30
|
formatPurl,
|
|
31
31
|
type SubsystemComponent,
|
|
32
32
|
} from './model';
|
|
33
|
-
import type { SubsystemOpenFileOptions } from './
|
|
33
|
+
import type { SubsystemOpenFileOptions } from './sourceSpan';
|
|
34
34
|
import { ComponentDeclaration } from './ComponentDeclaration';
|
|
35
35
|
import type { ComponentVerificationState } from './ComponentDeclaration';
|
|
36
36
|
import type { DeclarationSymbolRef, SymbolInspection } from './symbolRefs';
|