@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.
Files changed (43) hide show
  1. package/dist/subsystem/SubsystemComponentGraph.d.ts +106 -2
  2. package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
  3. package/dist/subsystem/SubsystemComponentGraph.js +454 -70
  4. package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
  5. package/dist/subsystem/TrailStepsNav.d.ts +4 -2
  6. package/dist/subsystem/TrailStepsNav.d.ts.map +1 -1
  7. package/dist/subsystem/TrailStepsNav.js +14 -4
  8. package/dist/subsystem/TrailStepsNav.js.map +1 -1
  9. package/dist/subsystem/TrailsPanel.d.ts +18 -2
  10. package/dist/subsystem/TrailsPanel.d.ts.map +1 -1
  11. package/dist/subsystem/TrailsPanel.js +40 -18
  12. package/dist/subsystem/TrailsPanel.js.map +1 -1
  13. package/dist/subsystem/model.d.ts +27 -6
  14. package/dist/subsystem/model.d.ts.map +1 -1
  15. package/dist/subsystem/model.js +48 -45
  16. package/dist/subsystem/model.js.map +1 -1
  17. package/dist/subsystem/nodeIconography.d.ts +25 -0
  18. package/dist/subsystem/nodeIconography.d.ts.map +1 -0
  19. package/dist/subsystem/nodeIconography.js +55 -0
  20. package/dist/subsystem/nodeIconography.js.map +1 -0
  21. package/dist/subsystem/nodes.d.ts +4 -3
  22. package/dist/subsystem/nodes.d.ts.map +1 -1
  23. package/dist/subsystem/nodes.js +149 -153
  24. package/dist/subsystem/nodes.js.map +1 -1
  25. package/dist/subsystem/stepEmphasis.d.ts +5 -0
  26. package/dist/subsystem/stepEmphasis.d.ts.map +1 -1
  27. package/dist/subsystem/stepEmphasis.js +7 -0
  28. package/dist/subsystem/stepEmphasis.js.map +1 -1
  29. package/package.json +1 -1
  30. package/src/stories/Canvases/Subsystem/AgentDrivenWalkthrough.stories.tsx +2079 -0
  31. package/src/stories/Canvases/Subsystem/Deprecated.stories.tsx +1 -1
  32. package/src/stories/Canvases/Subsystem/NodeAnatomy.stories.tsx +17 -21
  33. package/src/stories/Canvases/Subsystem/NodeIconography.stories.tsx +960 -0
  34. package/src/stories/Canvases/Subsystem/Spotlights.stories.tsx +1 -1
  35. package/src/subsystem/SubsystemComponentGraph.tsx +609 -70
  36. package/src/subsystem/TrailStepsNav.tsx +16 -4
  37. package/src/subsystem/TrailsPanel.tsx +86 -12
  38. package/src/subsystem/model.test.ts +17 -13
  39. package/src/subsystem/model.ts +66 -48
  40. package/src/subsystem/nodeIconography.ts +88 -0
  41. package/src/subsystem/nodes.component.test.tsx +177 -0
  42. package/src/subsystem/nodes.tsx +256 -174
  43. package/src/subsystem/stepEmphasis.ts +8 -0
@@ -38,7 +38,7 @@ function nodeProps(c: SubsystemComponent): NodeProps<SubsystemGraphNode> {
38
38
  data: { component: c },
39
39
  selected: false,
40
40
  width: 230,
41
- height: 84,
41
+ height: 96,
42
42
  } as unknown as NodeProps<SubsystemGraphNode>;
43
43
  }
44
44
 
@@ -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 already spends (border, corners,
18
- * left badge, right badge cluster, fill) so an added channel can be chosen
19
- * against it. Section 2 shows the diagnostics layer (dotted border +
20
- * earliest-rung corner chip) composed over real nodes — now wired into the
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 = 84;
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); left badge = construct.',
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: 'top-right badge = role.',
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 beside the role 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: 'left badge prefers "framework · stereotype"; border stays construct.',
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: 'left badge wears the entityKind.',
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; dotted when the node has findings'],
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
- ['left badge (top edge)', 'construct / framework stereotype / entityKind'],
210
- ['right badge (top edge)', 'role; storage sits beside it'],
211
- ['bottom strip (bottom edge)', 'filename — hover only, or while that file is open'],
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-left · top-right · bottom-center · border · fill'],
214
- ['FREE', 'an outer ring/halo, and the bottom-left / bottom-right corners'],
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. */