@principal-ai/subsystems-react 0.56.34 → 0.56.36
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/subsystem/SubsystemComponentGraph.d.ts +106 -2
- package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
- package/dist/subsystem/SubsystemComponentGraph.js +454 -70
- package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
- package/dist/subsystem/TrailStepsNav.d.ts +4 -2
- package/dist/subsystem/TrailStepsNav.d.ts.map +1 -1
- package/dist/subsystem/TrailStepsNav.js +14 -4
- package/dist/subsystem/TrailStepsNav.js.map +1 -1
- package/dist/subsystem/TrailsPanel.d.ts +18 -2
- package/dist/subsystem/TrailsPanel.d.ts.map +1 -1
- package/dist/subsystem/TrailsPanel.js +40 -18
- package/dist/subsystem/TrailsPanel.js.map +1 -1
- package/dist/subsystem/model.d.ts +27 -6
- package/dist/subsystem/model.d.ts.map +1 -1
- package/dist/subsystem/model.js +48 -45
- package/dist/subsystem/model.js.map +1 -1
- package/dist/subsystem/nodeIconography.d.ts +25 -0
- package/dist/subsystem/nodeIconography.d.ts.map +1 -0
- package/dist/subsystem/nodeIconography.js +55 -0
- package/dist/subsystem/nodeIconography.js.map +1 -0
- package/dist/subsystem/nodes.d.ts +4 -3
- package/dist/subsystem/nodes.d.ts.map +1 -1
- package/dist/subsystem/nodes.js +149 -153
- package/dist/subsystem/nodes.js.map +1 -1
- package/dist/subsystem/stepEmphasis.d.ts +5 -0
- package/dist/subsystem/stepEmphasis.d.ts.map +1 -1
- package/dist/subsystem/stepEmphasis.js +7 -0
- package/dist/subsystem/stepEmphasis.js.map +1 -1
- package/package.json +1 -1
- package/src/stories/Canvases/Subsystem/AgentDrivenWalkthrough.stories.tsx +2079 -0
- package/src/stories/Canvases/Subsystem/Deprecated.stories.tsx +1 -1
- package/src/stories/Canvases/Subsystem/NodeAnatomy.stories.tsx +17 -21
- package/src/stories/Canvases/Subsystem/NodeIconography.stories.tsx +960 -0
- package/src/stories/Canvases/Subsystem/Spotlights.stories.tsx +1 -1
- package/src/subsystem/SubsystemComponentGraph.tsx +609 -70
- package/src/subsystem/TrailStepsNav.tsx +16 -4
- package/src/subsystem/TrailsPanel.tsx +86 -12
- package/src/subsystem/model.test.ts +17 -13
- package/src/subsystem/model.ts +66 -48
- package/src/subsystem/nodeIconography.ts +88 -0
- package/src/subsystem/nodes.component.test.tsx +177 -0
- package/src/subsystem/nodes.tsx +256 -174
- package/src/subsystem/stepEmphasis.ts +8 -0
|
@@ -14,14 +14,10 @@ import type {
|
|
|
14
14
|
/**
|
|
15
15
|
* NodeAnatomy — a dissection of the component node's visual language.
|
|
16
16
|
*
|
|
17
|
-
* Section 1 lays out every channel the node
|
|
18
|
-
*
|
|
19
|
-
*
|
|
20
|
-
*
|
|
21
|
-
* production node as `data.issue` (see `NodeIssueOverlay` in `nodes.tsx` and
|
|
22
|
-
* `issueBadgeByAlias` in `SubsystemComponentGraph`); this story stays the
|
|
23
|
-
* visual reference. Sections 3–4 (verification ladder, diagnostic hover) are
|
|
24
|
-
* still proposals.
|
|
17
|
+
* Section 1 lays out every channel the node spends (border, corners, primary
|
|
18
|
+
* icon row, secondary badge cluster, state markers, fill). Section 2 shows the
|
|
19
|
+
* diagnostics marker composed over real nodes via `data.issue`. Sections 3–4
|
|
20
|
+
* (verification ladder, diagnostic hover) remain proposals.
|
|
25
21
|
*/
|
|
26
22
|
const meta = {
|
|
27
23
|
title: 'Canvases/Subsystem/UI Isolation/NodeAnatomy',
|
|
@@ -43,7 +39,7 @@ type Story = StoryObj<typeof meta>;
|
|
|
43
39
|
|
|
44
40
|
const PURL = 'pkg:github/principal-ai/subsystem-modeling';
|
|
45
41
|
const NODE_W = 230;
|
|
46
|
-
const NODE_H =
|
|
42
|
+
const NODE_H = 96;
|
|
47
43
|
const MONO = 'ui-monospace, SFMono-Regular, Menlo, monospace';
|
|
48
44
|
|
|
49
45
|
function nodeProps(
|
|
@@ -82,7 +78,7 @@ const storeDetail: GraphifyComponentDetail = {
|
|
|
82
78
|
const CHANNELS: Channel[] = [
|
|
83
79
|
{
|
|
84
80
|
label: 'baseline — function',
|
|
85
|
-
note: 'border color = construct (function-indigo);
|
|
81
|
+
note: 'border color = construct (function-indigo); primary row = icon + construct.',
|
|
86
82
|
component: {
|
|
87
83
|
alias: 'fn',
|
|
88
84
|
name: 'auditSubsystemModel',
|
|
@@ -118,7 +114,7 @@ const CHANNELS: Channel[] = [
|
|
|
118
114
|
},
|
|
119
115
|
{
|
|
120
116
|
label: 'role badge',
|
|
121
|
-
note: '
|
|
117
|
+
note: 'bottom-center secondary badge = role.',
|
|
122
118
|
component: {
|
|
123
119
|
alias: 'role',
|
|
124
120
|
name: 'handleRequest',
|
|
@@ -131,7 +127,7 @@ const CHANNELS: Channel[] = [
|
|
|
131
127
|
},
|
|
132
128
|
{
|
|
133
129
|
label: 'store + storage badge',
|
|
134
|
-
note: 'store backs a storage badge
|
|
130
|
+
note: 'store backs a storage badge in the secondary cluster.',
|
|
135
131
|
component: {
|
|
136
132
|
alias: 'store',
|
|
137
133
|
name: 'sessionCache',
|
|
@@ -144,7 +140,7 @@ const CHANNELS: Channel[] = [
|
|
|
144
140
|
},
|
|
145
141
|
{
|
|
146
142
|
label: 'framework stereotype',
|
|
147
|
-
note: '
|
|
143
|
+
note: 'primary row prefers the framework mark + stereotype; border stays construct.',
|
|
148
144
|
component: {
|
|
149
145
|
alias: 'react',
|
|
150
146
|
name: 'SubsystemComponentNode',
|
|
@@ -158,7 +154,7 @@ const CHANNELS: Channel[] = [
|
|
|
158
154
|
},
|
|
159
155
|
{
|
|
160
156
|
label: 'custom entity',
|
|
161
|
-
note: '
|
|
157
|
+
note: 'primary row wears the entity kind glyph + label.',
|
|
162
158
|
component: {
|
|
163
159
|
alias: 'entity',
|
|
164
160
|
name: 'WorkRequester',
|
|
@@ -203,15 +199,15 @@ function ChannelCell({ channel }: { channel: Channel }) {
|
|
|
203
199
|
|
|
204
200
|
const LEGEND: Array<[string, string]> = [
|
|
205
201
|
['border color', 'construct kind (Pierre palette) — or primary when a file is open (spotlight)'],
|
|
206
|
-
['border style', 'solid normally;
|
|
207
|
-
['border width', '2px; 4px when selected or file-matched'],
|
|
202
|
+
['border style', 'solid normally; dashed for proposed / removed ghosts'],
|
|
203
|
+
['border width', '2px; 3px proposed; 4px when selected or file-matched'],
|
|
208
204
|
['corners', '8px rounded; square for `external`'],
|
|
209
|
-
['
|
|
210
|
-
['
|
|
211
|
-
['
|
|
205
|
+
['primary row (top)', 'construct / framework / entity icon + label'],
|
|
206
|
+
['secondary cluster (bottom)', 'role; storage; deprecation'],
|
|
207
|
+
['state markers', 'working / proposed / removed top-right; issue bottom-right'],
|
|
212
208
|
['fill', 'backgroundSecondary; opacity 0.18 when dimmed'],
|
|
213
|
-
['OCCUPIED', 'top-
|
|
214
|
-
['FREE', 'an outer ring/halo, and the bottom-left
|
|
209
|
+
['OCCUPIED', 'top-center · top-right · bottom-center · bottom-right · border · fill'],
|
|
210
|
+
['FREE', 'an outer ring/halo, and the bottom-left corner'],
|
|
215
211
|
];
|
|
216
212
|
|
|
217
213
|
/** The node's existing channels, one per cell, with a legend. */
|