@principal-ai/subsystems-react 0.56.24 → 0.56.25

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 (125) hide show
  1. package/dist/index.d.ts +7 -0
  2. package/dist/index.d.ts.map +1 -1
  3. package/dist/index.js +4 -0
  4. package/dist/index.js.map +1 -1
  5. package/dist/stories/Canvases/Subsystem/issuesFixtures.d.ts +4 -0
  6. package/dist/stories/Canvases/Subsystem/issuesFixtures.d.ts.map +1 -0
  7. package/dist/stories/Canvases/Subsystem/issuesFixtures.js +189 -0
  8. package/dist/stories/Canvases/Subsystem/issuesFixtures.js.map +1 -0
  9. package/dist/stories/Canvases/Subsystem/reorderFixtures.d.ts +8 -0
  10. package/dist/stories/Canvases/Subsystem/reorderFixtures.d.ts.map +1 -0
  11. package/dist/stories/Canvases/Subsystem/reorderFixtures.js +103 -0
  12. package/dist/stories/Canvases/Subsystem/reorderFixtures.js.map +1 -0
  13. package/dist/subsystem/C4ContainersPanel.d.ts +35 -0
  14. package/dist/subsystem/C4ContainersPanel.d.ts.map +1 -0
  15. package/dist/subsystem/C4ContainersPanel.js +165 -0
  16. package/dist/subsystem/C4ContainersPanel.js.map +1 -0
  17. package/dist/subsystem/C4NodeCard.d.ts.map +1 -1
  18. package/dist/subsystem/C4NodeCard.js +10 -4
  19. package/dist/subsystem/C4NodeCard.js.map +1 -1
  20. package/dist/subsystem/C4ProjectionView.d.ts.map +1 -1
  21. package/dist/subsystem/C4ProjectionView.js +81 -27
  22. package/dist/subsystem/C4ProjectionView.js.map +1 -1
  23. package/dist/subsystem/C4SketchView.d.ts.map +1 -1
  24. package/dist/subsystem/C4SketchView.js +53 -34
  25. package/dist/subsystem/C4SketchView.js.map +1 -1
  26. package/dist/subsystem/DescriptionOverlay.d.ts +10 -2
  27. package/dist/subsystem/DescriptionOverlay.d.ts.map +1 -1
  28. package/dist/subsystem/DescriptionOverlay.js +4 -4
  29. package/dist/subsystem/DescriptionOverlay.js.map +1 -1
  30. package/dist/subsystem/DescriptionPreview.d.ts +31 -0
  31. package/dist/subsystem/DescriptionPreview.d.ts.map +1 -0
  32. package/dist/subsystem/DescriptionPreview.js +31 -0
  33. package/dist/subsystem/DescriptionPreview.js.map +1 -0
  34. package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
  35. package/dist/subsystem/SubsystemComponentGraph.js +3 -19
  36. package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
  37. package/dist/subsystem/__fixtures__/c4Sketch.d.ts.map +1 -1
  38. package/dist/subsystem/__fixtures__/c4Sketch.js +1 -0
  39. package/dist/subsystem/__fixtures__/c4Sketch.js.map +1 -1
  40. package/dist/subsystem/__fixtures__/c4SketchGallery.d.ts +27 -0
  41. package/dist/subsystem/__fixtures__/c4SketchGallery.d.ts.map +1 -0
  42. package/dist/subsystem/__fixtures__/c4SketchGallery.js +312 -0
  43. package/dist/subsystem/__fixtures__/c4SketchGallery.js.map +1 -0
  44. package/dist/subsystem/__fixtures__/c4Sketches/maintenance-bridge.json +777 -0
  45. package/dist/subsystem/__fixtures__/c4Sketches/openbot.json +886 -0
  46. package/dist/subsystem/c4Sketch.d.ts +12 -0
  47. package/dist/subsystem/c4Sketch.d.ts.map +1 -1
  48. package/dist/subsystem/c4Sketch.js +2 -1
  49. package/dist/subsystem/c4Sketch.js.map +1 -1
  50. package/dist/subsystem/containerCard.d.ts +3 -1
  51. package/dist/subsystem/containerCard.d.ts.map +1 -1
  52. package/dist/subsystem/containerCard.js +2 -2
  53. package/dist/subsystem/containerCard.js.map +1 -1
  54. package/dist/subsystem/techIcons/index.d.ts +3 -1
  55. package/dist/subsystem/techIcons/index.d.ts.map +1 -1
  56. package/dist/subsystem/techIcons/index.js +2 -2
  57. package/dist/subsystem/techIcons/index.js.map +1 -1
  58. package/package.json +1 -1
  59. package/src/index.ts +10 -0
  60. package/src/stories/Canvases/C4/C4CardGrow.stories.tsx +1 -1
  61. package/src/stories/Canvases/C4/C4Component.stories.tsx +1 -1
  62. package/src/stories/Canvases/C4/C4Container.stories.tsx +1 -1
  63. package/src/stories/Canvases/C4/C4Draft.stories.tsx +1 -1
  64. package/src/stories/Canvases/C4/C4NodeGallery.stories.tsx +1 -1
  65. package/src/stories/Canvases/C4/C4Sketch.stories.tsx +56 -4
  66. package/src/stories/Canvases/C4/C4ToComponentDrill.stories.tsx +1 -1
  67. package/src/stories/Canvases/C4/C4Transition.stories.tsx +1 -1
  68. package/src/stories/Canvases/Subsystem/AnimatedProgression.stories.tsx +1 -1
  69. package/src/stories/Canvases/Subsystem/Appearance.stories.tsx +1 -1
  70. package/src/stories/Canvases/Subsystem/Basics.stories.tsx +1 -1
  71. package/src/stories/Canvases/Subsystem/Captures.stories.tsx +1 -1
  72. package/src/stories/Canvases/Subsystem/Constructs.stories.tsx +3 -7
  73. package/src/stories/Canvases/Subsystem/ConstructsEmbed.stories.tsx +27 -0
  74. package/src/stories/Canvases/Subsystem/ContainerFrames.stories.tsx +1 -1
  75. package/src/stories/Canvases/Subsystem/CustomEntities.stories.tsx +1 -1
  76. package/src/stories/Canvases/Subsystem/Deprecated.stories.tsx +2 -100
  77. package/src/stories/Canvases/Subsystem/DeprecatedGraph.stories.tsx +124 -0
  78. package/src/stories/Canvases/Subsystem/DetailPanel.stories.tsx +1 -1
  79. package/src/stories/Canvases/Subsystem/Diagnostics.stories.tsx +1 -43
  80. package/src/stories/Canvases/Subsystem/DiagnosticsStates.stories.tsx +63 -0
  81. package/src/stories/Canvases/Subsystem/EdgeViews.stories.tsx +1 -1
  82. package/src/stories/Canvases/Subsystem/FrameworkStereotype.stories.tsx +1 -1
  83. package/src/stories/Canvases/Subsystem/GraphTitle.stories.tsx +1 -19
  84. package/src/stories/Canvases/Subsystem/GraphTitleGraph.stories.tsx +51 -0
  85. package/src/stories/Canvases/Subsystem/Issues.stories.tsx +3 -228
  86. package/src/stories/Canvases/Subsystem/IssuesList.stories.tsx +60 -0
  87. package/src/stories/Canvases/Subsystem/LayoutDirection.stories.tsx +1 -1
  88. package/src/stories/Canvases/Subsystem/ModuleBadges.stories.tsx +3 -61
  89. package/src/stories/Canvases/Subsystem/ModuleBadgesNode.stories.tsx +81 -0
  90. package/src/stories/Canvases/Subsystem/ModulePathNesting.stories.tsx +1 -1
  91. package/src/stories/Canvases/Subsystem/Modules.stories.tsx +1 -1
  92. package/src/stories/Canvases/Subsystem/NodeAnatomy.stories.tsx +1 -1
  93. package/src/stories/Canvases/Subsystem/Packages.stories.tsx +1 -1
  94. package/src/stories/Canvases/Subsystem/Presentation.stories.tsx +1 -1
  95. package/src/stories/Canvases/Subsystem/Processes.stories.tsx +1 -1
  96. package/src/stories/Canvases/Subsystem/Reorder.stories.tsx +3 -153
  97. package/src/stories/Canvases/Subsystem/ReorderPanel.stories.tsx +75 -0
  98. package/src/stories/Canvases/Subsystem/Scenarios.stories.tsx +1 -1
  99. package/src/stories/Canvases/Subsystem/Spotlights.stories.tsx +1 -1
  100. package/src/stories/Canvases/Subsystem/StepEmphasis.stories.tsx +1 -1
  101. package/src/stories/Canvases/Subsystem/StoreValueType.stories.tsx +1 -1
  102. package/src/stories/Canvases/Subsystem/TrailAutoplay.stories.tsx +1 -1
  103. package/src/stories/Canvases/Subsystem/TrailSidebarViews.stories.tsx +1 -1
  104. package/src/stories/Canvases/Subsystem/Trails.stories.tsx +1 -1
  105. package/src/stories/Canvases/Subsystem/WorkspacePackageFrames.stories.tsx +1 -1
  106. package/src/stories/Canvases/Subsystem/issuesFixtures.ts +192 -0
  107. package/src/stories/Canvases/Subsystem/reorderFixtures.tsx +125 -0
  108. package/src/subsystem/C4ContainersPanel.test.tsx +151 -0
  109. package/src/subsystem/C4ContainersPanel.tsx +315 -0
  110. package/src/subsystem/C4NodeCard.tsx +12 -4
  111. package/src/subsystem/C4ProjectionView.tsx +107 -37
  112. package/src/subsystem/C4SketchView.tsx +96 -74
  113. package/src/subsystem/DescriptionOverlay.test.tsx +2 -0
  114. package/src/subsystem/DescriptionOverlay.tsx +20 -5
  115. package/src/subsystem/DescriptionPreview.tsx +96 -0
  116. package/src/subsystem/SubsystemComponentGraph.sidebar.test.tsx +1 -1
  117. package/src/subsystem/SubsystemComponentGraph.tsx +14 -43
  118. package/src/subsystem/__fixtures__/c4Sketch.ts +2 -0
  119. package/src/subsystem/__fixtures__/c4SketchGallery.test.ts +65 -0
  120. package/src/subsystem/__fixtures__/c4SketchGallery.ts +351 -0
  121. package/src/subsystem/__fixtures__/c4Sketches/maintenance-bridge.json +777 -0
  122. package/src/subsystem/__fixtures__/c4Sketches/openbot.json +886 -0
  123. package/src/subsystem/c4Sketch.ts +13 -0
  124. package/src/subsystem/containerCard.tsx +4 -1
  125. package/src/subsystem/techIcons/index.tsx +11 -2
@@ -6,6 +6,8 @@
6
6
  * can use them without importing Studio's cross-process contract.
7
7
  */
8
8
  import type { C4Model } from './c4';
9
+ /** Maximum length of an authored sketch description (short sidebar blurb). */
10
+ export declare const C4_SKETCH_DESCRIPTION_MAX = 200;
9
11
  /**
10
12
  * A C4 sketch — an authored, unverified architecture hypothesis.
11
13
  *
@@ -20,9 +22,19 @@ export interface C4Sketch {
20
22
  title: string;
21
23
  /** Repos the sketch claims to describe; can be empty for greenfield. */
22
24
  repoKeys: string[];
25
+ /**
26
+ * Short description shown at the top of the sidebar. At most
27
+ * {@link C4_SKETCH_DESCRIPTION_MAX} characters; hosts reject longer values.
28
+ */
29
+ description?: string;
23
30
  /** Authored nodes + edges. */
24
31
  model: C4Model;
25
32
  author?: string;
33
+ /**
34
+ * Extended Markdown notes about the sketch. The sidebar shows the short
35
+ * `description` (or a clamped preview of these notes when it is absent);
36
+ * `More` opens the full document in an Overview overlay.
37
+ */
26
38
  notes?: string;
27
39
  createdAt: string;
28
40
  updatedAt: string;
@@ -1 +1 @@
1
- {"version":3,"file":"c4Sketch.d.ts","sourceRoot":"","sources":["../../src/subsystem/c4Sketch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAEH,OAAO,KAAK,EAAE,OAAO,EAAE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B,GAAG,MAAM,GAAG,UAAU,GAAG,OAAO,CAAC;AAE9D;;;;;;;GAOG;AACH,MAAM,WAAW,qBAAqB;IACpC,KAAK,EAAE,OAAO,CAAC;IACf,MAAM,EAAE,UAAU,GAAG,OAAO,CAAC;IAC7B,WAAW,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC;IACtC,MAAM,EAAE;QACN,UAAU,EAAE,MAAM,CAAC;QACnB,SAAS,EAAE,MAAM,CAAC;QAClB,KAAK,EAAE,MAAM,CAAC;QACd,UAAU,EAAE,MAAM,CAAC;QACnB,oBAAoB,EAAE,MAAM,CAAC;QAC7B,iBAAiB,EAAE,MAAM,CAAC;KAC3B,CAAC;IACF,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,qDAAqD;IACrD,oBAAoB,EAAE,MAAM,EAAE,CAAC;IAC/B,yFAAyF;IACzF,iBAAiB,EAAE,MAAM,EAAE,CAAC;CAC7B"}
@@ -5,5 +5,6 @@
5
5
  * These live in `subsystems-react` so the pure view and its Storybook fixtures
6
6
  * can use them without importing Studio's cross-process contract.
7
7
  */
8
- export {};
8
+ /** Maximum length of an authored sketch description (short sidebar blurb). */
9
+ export const C4_SKETCH_DESCRIPTION_MAX = 200;
9
10
  //# sourceMappingURL=c4Sketch.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"c4Sketch.js","sourceRoot":"","sources":["../../src/subsystem/c4Sketch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG"}
1
+ {"version":3,"file":"c4Sketch.js","sourceRoot":"","sources":["../../src/subsystem/c4Sketch.ts"],"names":[],"mappings":"AAAA;;;;;;GAMG;AAIH,8EAA8E;AAC9E,MAAM,CAAC,MAAM,yBAAyB,GAAG,GAAG,CAAC"}
@@ -103,6 +103,8 @@ export interface ContainerCardHeaderProps {
103
103
  iconLabel?: string;
104
104
  /** The border colour; the glyph takes it so the two read as one accent. */
105
105
  color: string;
106
+ /** Override for the kind glyph colour; defaults to `color`. */
107
+ iconColor?: string;
106
108
  /** The technology row's text. Empty hides the text but not the row. */
107
109
  topLabel?: string;
108
110
  /** The official technology mark, when we hold one. */
@@ -128,5 +130,5 @@ export interface ContainerCardHeaderProps {
128
130
  * y on every card and the chrome below them can be reserved exactly — see
129
131
  * `OPEN_HEADER_PAD`.
130
132
  */
131
- export declare function ContainerCardHeader({ label, Icon, iconLabel, color, topLabel, brand, hasTechRow, count, centered, }: ContainerCardHeaderProps): import("react").JSX.Element;
133
+ export declare function ContainerCardHeader({ label, Icon, iconLabel, color, iconColor, topLabel, brand, hasTechRow, count, centered, }: ContainerCardHeaderProps): import("react").JSX.Element;
132
134
  //# sourceMappingURL=containerCard.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"containerCard.d.ts","sourceRoot":"","sources":["../../src/subsystem/containerCard.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;;AAGH,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAE/C,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,aAAa,CAAC;AAE7C;;;;GAIG;AACH,eAAO,MAAM,MAAM,MAAM,CAAC;AAC1B,eAAO,MAAM,MAAM,MAAM,CAAC;AAE1B;;;GAGG;AACH,eAAO,MAAM,YAAY,KAAK,CAAC;AAE/B;;;;;;;GAOG;AACH,eAAO,MAAM,WAAW,KAAK,CAAC;AAE9B,gEAAgE;AAChE,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B,yCAAyC;AACzC,eAAO,MAAM,UAAU,KAAK,CAAC;AAE7B,uDAAuD;AACvD,eAAO,MAAM,QAAQ,IAAI,CAAC;AAE1B;;;;;;;;;GASG;AACH,eAAO,MAAM,eAAe,KAAK,CAAC;AAElC;;;;;;;;;;;;;;GAcG;AACH,eAAO,MAAM,eAAe,QACyD,CAAC;AAEtF;;;;GAIG;AACH,eAAO,MAAM,WAAW,KAAK,CAAC;AAC9B,eAAO,MAAM,YAAY,IAAI,CAAC;AAE9B;;;;;;;;;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102,7 @@ export const OPEN_SIDE_PAD = OPEN_FOOTER_PAD;
102
102
  * y on every card and the chrome below them can be reserved exactly — see
103
103
  * `OPEN_HEADER_PAD`.
104
104
  */
105
- export function ContainerCardHeader({ label, Icon, iconLabel, color, topLabel, brand, hasTechRow, count, centered = false, }) {
105
+ export function ContainerCardHeader({ label, Icon, iconLabel, color, iconColor, topLabel, brand, hasTechRow, count, centered = false, }) {
106
106
  const { theme } = useTheme();
107
107
  const muted = theme.colors.textMuted ?? theme.colors.textSecondary;
108
108
  return (_jsxs(_Fragment, { children: [_jsxs("span", { style: {
@@ -132,7 +132,7 @@ export function ContainerCardHeader({ label, Icon, iconLabel, color, topLabel, b
132
132
  }, children: label }), Icon && (_jsx("span", { "aria-label": iconLabel, style: {
133
133
  display: 'inline-flex',
134
134
  flexShrink: 0,
135
- color,
135
+ color: iconColor ?? color,
136
136
  // Nudge down so the glyph optically centres on the first text line.
137
137
  marginTop: 3,
138
138
  }, children: _jsx(Icon, { size: 16, strokeWidth: 2.25 }) }))] }), _jsxs("span", { style: {
@@ -1 +1 @@
1
- {"version":3,"file":"containerCard.js","sourceRoot":"","sources":["../../src/subsystem/containerCard.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;GASG;AAEH,OAAO,EAAE,QAAQ,EAAE,MAAM,+BAA+B,CAAC;AAEzD,OAAO,EAAE,QAAQ,EAAE,MAAM,aAAa,CAAC;AAGvC;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;AAC1B,MAAM,CAAC,MAAM,MAAM,GAAG,GAAG,CAAC;AAE1B;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,EAAE,CAAC;AAE/B;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,WAAW,GAAG,EAAE,CAAC;AAE9B,gEAAgE;AAChE,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,CAAC;AAE7B,yCAAyC;AACzC,MAAM,CAAC,MAAM,UAAU,GAAG,EAAE,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AAwE;oBACxE,yEAAyE;oBACzE,wEAAwE;oBACxE,GAAG,CAAC,UAAU,CAAC,CAAC,CAAC,EAAE,MAAM,EAAE,WAAW,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC;iBAC9D,aAEA,QAAQ,IAAI,CACX,gBAAM,KAAK,EAAE,EAAE,OAAO,EAAE,MAAM,EAAE,UAAU,EAAE,QAAQ,EAAE,GAAG,EAAE,CAAC,EAAE,QAAQ,EAAE,CAAC,EAAE,aACxE,KAAK,IAAI,KAAC,QAAQ,IAAC,KAAK,EAAE,KAAK,GAAI,EACpC,eACE,KAAK,EAAE;oCACL,UAAU,EAAE,GAAG;oCACf,UAAU,EAAE,QAAQ;oCACpB,QAAQ,EAAE,QAAQ;oCAClB,YAAY,EAAE,UAAU;oCACxB,QAAQ,EAAE,CAAC;iCACZ,YAEA,QAAQ,GACJ,IACF,CACR,EACA,KAAK,IAAI,CACR,gBACE,KAAK,EAAE;4BACL,UAAU,EAAE,CAAC;4BACb,aAAa,EAAE,CAAC;4BAChB,OAAO,EAAE,aAAa;4BACtB,UAAU,EAAE,QAAQ;4BACpB,GAAG,EAAE,CAAC;yBACP,aAEA,KAAK,CAAC,KAAK,EACZ,KAAC,KAAK,CAAC,IAAI,IAAC,IAAI,EAAE,EAAE,EAAE,WAAW,EAAE,IAAI,GAAI,IACtC,CACR,IACI,IACN,CACJ,CAAC;AACJ,CAAC"}
@@ -34,8 +34,10 @@ export declare const TECH_BRANDS: readonly TechBrand[];
34
34
  /** The official mark for a technology string, or undefined when we hold none. */
35
35
  export declare function technologyBrand(technology: string | undefined): TechBrand | undefined;
36
36
  /** A brand mark sized to the top row. Full-colour, not tinted by state. */
37
- export declare function TechMark({ brand, size }: {
37
+ export declare function TechMark({ brand, size, showTitle, }: {
38
38
  brand: TechBrand;
39
39
  size?: number;
40
+ /** Render the attribution tooltip. Off inside rows that already explain themselves. */
41
+ showTitle?: boolean;
40
42
  }): import("react").JSX.Element;
41
43
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/subsystem/techIcons/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;;AAMH,MAAM,WAAW,SAAS;IACxB,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,SAAS,SAAS,EAwB3C,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAGrF;AAED,2EAA2E;AAC3E,wBAAgB,QAAQ,CAAC,EAAE,KAAK,EAAE,IAAS,EAAE,EAAE;IAAE,KAAK,EAAE,SAAS,CAAC;IAAC,IAAI,CAAC,EAAE,MAAM,CAAA;CAAE,+BAUjF"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/subsystem/techIcons/index.tsx"],"names":[],"mappings":"AAAA;;;;;;;;;;;GAWG;;AAMH,MAAM,WAAW,SAAS;IACxB,2DAA2D;IAC3D,IAAI,EAAE,MAAM,CAAC;IACb,wCAAwC;IACxC,MAAM,EAAE,MAAM,CAAC;IACf,qDAAqD;IACrD,GAAG,EAAE,MAAM,CAAC;IACZ,gFAAgF;IAChF,KAAK,EAAE,MAAM,CAAC;IACd;;;OAGG;IACH,KAAK,EAAE,MAAM,CAAC;CACf;AAED;;;GAGG;AACH,eAAO,MAAM,WAAW,EAAE,SAAS,SAAS,EAwB3C,CAAC;AAEF,iFAAiF;AACjF,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,SAAS,GAAG,SAAS,GAAG,SAAS,CAGrF;AAED,2EAA2E;AAC3E,wBAAgB,QAAQ,CAAC,EACvB,KAAK,EACL,IAAS,EACT,SAAgB,GACjB,EAAE;IACD,KAAK,EAAE,SAAS,CAAC;IACjB,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,uFAAuF;IACvF,SAAS,CAAC,EAAE,OAAO,CAAC;CACrB,+BAUA"}
@@ -50,8 +50,8 @@ export function technologyBrand(technology) {
50
50
  return TECH_BRANDS.find((brand) => brand.match.test(technology));
51
51
  }
52
52
  /** A brand mark sized to the top row. Full-colour, not tinted by state. */
53
- export function TechMark({ brand, size = 14 }) {
54
- return (_jsx("span", { title: `${brand.name} — ${brand.source}`, "aria-label": brand.name, style: { display: 'inline-flex', width: size, height: size, flexShrink: 0 },
53
+ export function TechMark({ brand, size = 14, showTitle = true, }) {
54
+ return (_jsx("span", { ...(showTitle ? { title: `${brand.name} — ${brand.source}` } : {}), "aria-label": brand.name, style: { display: 'inline-flex', width: size, height: size, flexShrink: 0 },
55
55
  // The SVG is a static, vendored string — never user input.
56
56
  dangerouslySetInnerHTML: { __html: brand.svg } }));
57
57
  }
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/subsystem/techIcons/index.tsx"],"names":[],"mappings":";AAAA;;;;;;;;;;;GAWG;AAEH,OAAO,EAAE,MAAM,EAAE,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAE,OAAO,EAAE,MAAM,QAAQ,CAAC;AACjC,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AAkBnC;;;GAGG;AACH,MAAM,CAAC,MAAM,WAAW,GAAyB;IAC/C;QACE,IAAI,EAAE,OAAO;QACb,MAAM,EAAE,mBAAmB;QAC3B,GAAG,EAAE,QAAQ;QACb,KAAK,EAAE,YAAY;QACnB,KAAK,EAAE,SAAS;KACjB;IACD;QACE,IAAI,EAAE,KAAK;QACX,MAAM,EAAE,yBAAyB;QACjC,GAAG,EAAE,MA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@principal-ai/subsystems-react",
3
- "version": "0.56.24",
3
+ "version": "0.56.25",
4
4
  "description": "React UI for Subsystem Models — graph, Pierre code views, and session-event feeds",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
package/src/index.ts CHANGED
@@ -311,12 +311,22 @@ export { C4ProjectionView } from './subsystem/C4ProjectionView';
311
311
  export type { C4ProjectionViewProps } from './subsystem/C4ProjectionView';
312
312
  export { C4SketchView } from './subsystem/C4SketchView';
313
313
  export type { C4SketchViewProps } from './subsystem/C4SketchView';
314
+ export { C4ContainersPanel } from './subsystem/C4ContainersPanel';
315
+ export type {
316
+ C4ContainerListItem,
317
+ C4ContainersPanelProps,
318
+ } from './subsystem/C4ContainersPanel';
319
+ export { DescriptionPreview } from './subsystem/DescriptionPreview';
320
+ export type { DescriptionPreviewProps } from './subsystem/DescriptionPreview';
321
+ export { DescriptionOverlay } from './subsystem/DescriptionOverlay';
322
+ export type { DescriptionOverlayProps } from './subsystem/DescriptionOverlay';
314
323
  export type {
315
324
  C4Sketch,
316
325
  C4SketchSummary,
317
326
  SubsystemC4Source,
318
327
  SubsystemC4Projection,
319
328
  } from './subsystem/c4Sketch';
329
+ export { C4_SKETCH_DESCRIPTION_MAX } from './subsystem/c4Sketch';
320
330
  export {
321
331
  deriveLitC4Edges,
322
332
  deriveTrailPlayerElements,
@@ -5,7 +5,7 @@ import { C4NodeCard, NODE_W, NODE_H } from '../../../subsystem/C4NodeCard';
5
5
  import type { C4Container, C4Component } from '../../../subsystem/c4';
6
6
 
7
7
  const meta = {
8
- title: 'Canvases/C4/C4CardGrow',
8
+ title: 'Canvases/C4/UI Isolation/C4CardGrow',
9
9
  parameters: { layout: 'fullscreen' },
10
10
  tags: ['autodocs'],
11
11
  decorators: [
@@ -6,7 +6,7 @@ import { C4Graph } from '../../../subsystem/C4Graph';
6
6
  import type { C4Edge, C4Model, C4Element, C4Component, C4Container } from '../../../subsystem/c4';
7
7
 
8
8
  const meta = {
9
- title: 'Canvases/C4/C4Component',
9
+ title: 'Canvases/C4/Graphs/C4Component',
10
10
  component: C4Graph,
11
11
  parameters: { layout: 'fullscreen' },
12
12
  tags: ['autodocs'],
@@ -6,7 +6,7 @@ import { C4Graph } from '../../../subsystem/C4Graph';
6
6
  import type { C4Edge, C4Model, C4Element, C4Container } from '../../../subsystem/c4';
7
7
 
8
8
  const meta = {
9
- title: 'Canvases/C4/C4Container',
9
+ title: 'Canvases/C4/Graphs/C4Container',
10
10
  component: C4Graph,
11
11
  parameters: { layout: 'fullscreen' },
12
12
  tags: ['autodocs'],
@@ -12,7 +12,7 @@ import {
12
12
  } from '../../../subsystem/__fixtures__/c4Drilldown';
13
13
 
14
14
  const meta = {
15
- title: 'Canvases/C4/C4Draft',
15
+ title: 'Canvases/C4/Graphs/C4Draft',
16
16
  component: C4Graph,
17
17
  parameters: { layout: 'fullscreen' },
18
18
  tags: ['autodocs'],
@@ -31,7 +31,7 @@ import type { C4Element } from '../../../subsystem/c4';
31
31
  // ---------------------------------------------------------------------------
32
32
 
33
33
  const meta = {
34
- title: 'Canvases/C4/C4NodeGallery',
34
+ title: 'Canvases/C4/UI Isolation/C4NodeGallery',
35
35
  parameters: { layout: 'fullscreen' },
36
36
  tags: ['autodocs'],
37
37
  decorators: [
@@ -3,10 +3,18 @@ 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
5
  import { C4SketchView } from '../../../subsystem/C4SketchView';
6
+ import type { C4Sketch } from '../../../subsystem/c4Sketch';
6
7
  import { SKETCH_FIXTURE } from '../../../subsystem/__fixtures__/c4Sketch';
8
+ import {
9
+ CONTAINER_MATRIX_SKETCH,
10
+ DESCRIPTION_BOUNDARY_SKETCH,
11
+ MAINTENANCE_BRIDGE_SKETCH,
12
+ OPENBOT_SKETCH,
13
+ STUDIO_SKETCH,
14
+ } from '../../../subsystem/__fixtures__/c4SketchGallery';
7
15
 
8
16
  const meta = {
9
- title: 'Canvases/C4/C4Sketch',
17
+ title: 'Canvases/C4/Views/C4Sketch',
10
18
  component: C4SketchView,
11
19
  parameters: { layout: 'fullscreen' },
12
20
  tags: ['autodocs'],
@@ -22,15 +30,59 @@ const meta = {
22
30
  export default meta;
23
31
  type Story = StoryObj<typeof meta>;
24
32
 
25
- function Demo() {
33
+ function Demo({ sketch }: { sketch: C4Sketch }) {
26
34
  return (
27
35
  <div style={{ width: '100%', height: '100vh' }}>
28
- <C4SketchView sketch={SKETCH_FIXTURE} />
36
+ <C4SketchView sketch={sketch} />
29
37
  </div>
30
38
  );
31
39
  }
32
40
 
33
41
  /** A standalone authored sketch: no model, no grounding, no promotion. */
34
42
  export const Sketch: Story = {
35
- render: () => <Demo />,
43
+ render: () => <Demo sketch={SKETCH_FIXTURE} />,
44
+ };
45
+
46
+ /**
47
+ * This repo's own system at the container level: Studio host + renderer,
48
+ * Principal CLI, site, and the shared JSON model store. The realistic set for
49
+ * reviewing the sidebar rows and the C4 → component drill.
50
+ */
51
+ export const StudioSystem: Story = {
52
+ render: () => <Demo sketch={STUDIO_SKETCH} />,
53
+ };
54
+
55
+ /**
56
+ * The real OpenBot architecture sketch (12 containers, 32 edges): long
57
+ * technology strings, several application containers and one data store,
58
+ * agents as containers, and a sidebar that has to scroll.
59
+ */
60
+ export const OpenBot: Story = {
61
+ render: () => <Demo sketch={OPENBOT_SKETCH} />,
62
+ };
63
+
64
+ /**
65
+ * The real Studio → OpenBot maintenance bridge sketch: two systems in one
66
+ * authored hypothesis, with Studio's renderer/host/store beside OpenBot's
67
+ * app/server/database.
68
+ */
69
+ export const MaintenanceBridge: Story = {
70
+ render: () => <Demo sketch={MAINTENANCE_BRIDGE_SKETCH} />,
71
+ };
72
+
73
+ /**
74
+ * One row per container variant: application/data-store, accepted/proposed,
75
+ * known/missing technology, long labels, and 0 / 1 / 6 members. Use this to
76
+ * review hover, truncation, the proposed chip, and the open/closed control.
77
+ */
78
+ export const ContainerMatrix: Story = {
79
+ render: () => <Demo sketch={CONTAINER_MATRIX_SKETCH} />,
80
+ };
81
+
82
+ /**
83
+ * A 200-character description with long Markdown notes — the header is sized
84
+ * by the short description and **Show more** opens the extended document.
85
+ */
86
+ export const DescriptionBoundary: Story = {
87
+ render: () => <Demo sketch={DESCRIPTION_BOUNDARY_SKETCH} />,
36
88
  };
@@ -12,7 +12,7 @@ import {
12
12
  } from '../../../subsystem/__fixtures__/c4Drilldown';
13
13
 
14
14
  const meta = {
15
- title: 'Canvases/C4/C4ToComponentDrill',
15
+ title: 'Canvases/C4/Views/C4ToComponentDrill',
16
16
  component: C4ProjectionView,
17
17
  parameters: { layout: 'fullscreen' },
18
18
  tags: ['autodocs'],
@@ -6,7 +6,7 @@ import { C4Graph } from '../../../subsystem/C4Graph';
6
6
  import type { C4Edge, C4Model, C4Element, C4Component, C4Container } from '../../../subsystem/c4';
7
7
 
8
8
  const meta = {
9
- title: 'Canvases/C4/C4Transition',
9
+ title: 'Canvases/C4/Graphs/C4Transition',
10
10
  component: C4Graph,
11
11
  parameters: { layout: 'fullscreen' },
12
12
  tags: ['autodocs'],
@@ -14,7 +14,7 @@ import type { SubsystemComponent, SubsystemTrail } from '../../../subsystem/mode
14
14
  */
15
15
 
16
16
  const meta = {
17
- title: 'Canvases/Subsystem/Animated progression',
17
+ title: 'Canvases/Subsystem/Graphs/Animated progression',
18
18
  component: SubsystemComponentGraph,
19
19
  parameters: { layout: 'fullscreen' },
20
20
  } satisfies Meta<typeof SubsystemComponentGraph>;
@@ -8,7 +8,7 @@ import type { GraphifyComponentDetail } from '../../../graphify';
8
8
  import { investigateOnlyComponents, investigateOnlyTrails } from './fixtures';
9
9
 
10
10
  const meta = {
11
- title: 'Canvases/Subsystem/Appearance',
11
+ title: 'Canvases/Subsystem/Views/Appearance',
12
12
  component: SubsystemComponentGraph,
13
13
  parameters: {
14
14
  layout: 'fullscreen',
@@ -7,7 +7,7 @@ import type { SubsystemComponent, SubsystemComponentEdge } from '../../../subsys
7
7
  import { components, graphSpecFromSteps } from './fixtures';
8
8
 
9
9
  const meta = {
10
- title: 'Canvases/Subsystem/Basics',
10
+ title: 'Canvases/Subsystem/Views/Basics',
11
11
  component: SubsystemComponentGraph,
12
12
  parameters: {
13
13
  layout: 'fullscreen',
@@ -8,7 +8,7 @@ import type { GraphifyComponentDetail } from '../../../graphify';
8
8
  import { components, graphSpecFromSteps, readerDetail, investigateOnlyComponents, investigateOnlyTrails } from './fixtures';
9
9
 
10
10
  const meta = {
11
- title: 'Canvases/Subsystem/Captures',
11
+ title: 'Canvases/Subsystem/Views/Captures',
12
12
  component: SubsystemComponentGraph,
13
13
  parameters: {
14
14
  layout: 'fullscreen',
@@ -9,7 +9,8 @@ import type { SubsystemOpenFileOptions } from '../../../subsystem/sourceSpan';
9
9
  import type { GraphifyComponentDetail } from '../../../graphify';
10
10
 
11
11
  const meta = {
12
- title: 'Canvases/Subsystem/Constructs',
12
+ title: 'Canvases/Subsystem/Views/Constructs',
13
+ excludeStories: ['CatalogDemo'],
13
14
  component: SubsystemComponentGraph,
14
15
  parameters: {
15
16
  layout: 'fullscreen',
@@ -248,7 +249,7 @@ function renderFileViewer(file: string, opts?: SubsystemOpenFileOptions) {
248
249
  );
249
250
  }
250
251
 
251
- function CatalogDemo({ hideSidebar = false }: { hideSidebar?: boolean }) {
252
+ export function CatalogDemo({ hideSidebar = false }: { hideSidebar?: boolean }) {
252
253
  const [selected, setSelected] = useState<string | null>(null);
253
254
  return (
254
255
  <div style={{ width: '100%', height: '100vh', display: 'flex', flexDirection: 'column' }}>
@@ -273,8 +274,3 @@ function CatalogDemo({ hideSidebar = false }: { hideSidebar?: boolean }) {
273
274
  export const Catalog: Story = {
274
275
  render: () => <CatalogDemo />,
275
276
  };
276
-
277
- /** Same catalog, no title chrome — the shape the home-page constructs layer uses. */
278
- export const CatalogEmbed: Story = {
279
- render: () => <CatalogDemo hideSidebar />,
280
- };
@@ -0,0 +1,27 @@
1
+ import '@xyflow/react/dist/style.css';
2
+ import React from 'react';
3
+ import type { Meta, StoryObj } from '@storybook/react';
4
+ import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
5
+ import { CatalogDemo } from './Constructs.stories';
6
+
7
+ const meta = {
8
+ title: 'Canvases/Subsystem/Graphs/Constructs',
9
+ parameters: {
10
+ layout: 'fullscreen',
11
+ },
12
+ decorators: [
13
+ (Story) => (
14
+ <ThemeProvider theme={defaultEditorTheme}>
15
+ <Story />
16
+ </ThemeProvider>
17
+ ),
18
+ ],
19
+ } satisfies Meta;
20
+
21
+ export default meta;
22
+ type Story = StoryObj<typeof meta>;
23
+
24
+ /** Same catalog, no title chrome — the shape the home-page constructs layer uses. */
25
+ export const CatalogEmbed: Story = {
26
+ render: () => <CatalogDemo hideSidebar />,
27
+ };
@@ -6,7 +6,7 @@ import type { SubsystemComponent } from '../../../subsystem/model';
6
6
  import { components, graphSpecFromSteps } from './fixtures';
7
7
 
8
8
  const meta = {
9
- title: 'Canvases/Subsystem/ContainerFrames',
9
+ title: 'Canvases/Subsystem/Views/ContainerFrames',
10
10
  component: SubsystemComponentGraph,
11
11
  parameters: { layout: 'fullscreen' },
12
12
  tags: ['autodocs'],
@@ -155,7 +155,7 @@ const entityGraph = graphSpecFromSteps([
155
155
  ]);
156
156
 
157
157
  const meta = {
158
- title: 'Canvases/Subsystem/CustomEntities',
158
+ title: 'Canvases/Subsystem/Views/CustomEntities',
159
159
  component: SubsystemComponentGraph,
160
160
  parameters: { layout: 'fullscreen' },
161
161
  tags: ['autodocs'],
@@ -1,22 +1,20 @@
1
- import React, { useState } from 'react';
1
+ import React from 'react';
2
2
  import '@xyflow/react/dist/style.css';
3
3
  import type { Meta, StoryObj } from '@storybook/react';
4
4
  import { ReactFlowProvider, type NodeProps } from '@xyflow/react';
5
5
  import { ThemeProvider, defaultEditorTheme } from '@principal-ade/industry-theme';
6
- import { SubsystemComponentGraph } from '../../../subsystem/SubsystemComponentGraph';
7
6
  import { SubsystemComponentNode } from '../../../subsystem/nodes';
8
7
  import type {
9
8
  SubsystemComponent,
10
9
  SubsystemGraphNode,
11
10
  } from '../../../subsystem/model';
12
- import { trailFromSteps } from './fixtures';
13
11
 
14
12
  /**
15
13
  * `deprecated` marks a claim whose source is gone upstream. The node keeps a
16
14
  * transitional marker until a cleanup pass removes it.
17
15
  */
18
16
  const meta = {
19
- title: 'Canvases/Subsystem/Deprecated',
17
+ title: 'Canvases/Subsystem/UI Isolation/Deprecated',
20
18
  parameters: { layout: 'fullscreen' },
21
19
  tags: ['autodocs'],
22
20
  decorators: [
@@ -176,102 +174,6 @@ export const Spotlights: Story = {
176
174
  ),
177
175
  };
178
176
 
179
- // ---------------------------------------------------------------------------
180
- // Full graph: live audit calling a deleted topology audit, which called two
181
- // more deleted helpers. Mirrors the real wedged model.
182
- // ---------------------------------------------------------------------------
183
- const deprecatedComponents: SubsystemComponent[] = [
184
- {
185
- alias: 'audit',
186
- name: 'auditSubsystemModel',
187
- construct: 'function',
188
- file: 'src/bun/verify-subsystem-component.ts',
189
- purl: PURL,
190
- symbol: 'auditSubsystemModel',
191
- purpose: 'Deterministic dry-run audit of a stored model',
192
- role: 'entry',
193
- },
194
- {
195
- alias: 'topology',
196
- name: 'auditTopologyRelations',
197
- construct: 'function',
198
- file: 'src/bun/topology-audit.ts',
199
- purl: PURL,
200
- symbol: 'auditTopologyRelations',
201
- purpose: 'Orchestrates relations[] endpoint checks',
202
- deprecated: true,
203
- removedIn: {
204
- commit: 'e168afc',
205
- reason: 'Remove topology relations; nest module boundaries by path',
206
- },
207
- },
208
- {
209
- alias: 'topo-relation',
210
- name: 'graphifyHasRelationBetween',
211
- construct: 'function',
212
- file: 'src/bun/topology-audit.ts',
213
- purl: PURL,
214
- symbol: 'graphifyHasRelationBetween',
215
- purpose: 'True when Graphify records a relation between two nodes',
216
- deprecated: true,
217
- removedIn: {
218
- commit: 'e168afc',
219
- reason: 'Remove topology relations; nest module boundaries by path',
220
- },
221
- },
222
- {
223
- alias: 'topo-hints',
224
- name: 'graphifyHasRelationTowardHints',
225
- construct: 'function',
226
- file: 'src/bun/topology-audit.ts',
227
- purl: PURL,
228
- symbol: 'graphifyHasRelationTowardHints',
229
- purpose: 'Relation hints directed at a component',
230
- deprecated: true,
231
- removedIn: { commit: 'e168afc' },
232
- },
233
- {
234
- alias: 'boundary',
235
- name: 'auditBoundaryFields',
236
- construct: 'function',
237
- file: 'src/bun/boundary-audit.ts',
238
- purl: PURL,
239
- symbol: 'auditBoundaryFields',
240
- purpose: 'Package/module containment + process checks',
241
- },
242
- ];
243
-
244
- const deprecatedTrails = [
245
- trailFromSteps('audit-steps', 'Audit (dry-run, graphify-backed)', [
246
- ['audit', 'topology', 'calls', 'src/bun/verify-subsystem-component.ts', 1],
247
- ['audit', 'boundary', 'calls', 'src/bun/verify-subsystem-component.ts', 1],
248
- ['topology', 'topo-relation', 'calls', 'src/bun/topology-audit.ts', 1],
249
- ['topology', 'topo-hints', 'calls', 'src/bun/topology-audit.ts', 1],
250
- ]),
251
- ];
252
-
253
- function DeprecatedDemo() {
254
- const [selected, setSelected] = useState<string | null>(null);
255
- return (
256
- <div style={{ width: '100%', height: '100vh', display: 'flex', flexDirection: 'column' }}>
257
- <SubsystemComponentGraph
258
- components={deprecatedComponents}
259
- trails={deprecatedTrails}
260
- onSelect={(id) => setSelected(id)}
261
- />
262
- <div style={{ marginTop: 8, padding: '0 12px', fontFamily: 'monospace', fontSize: 12, color: '#aaa' }}>
263
- Click a slate `deprecated` badge to open the removal provenance
264
- {selected ? ` · selected: ${selected}` : ''}
265
- </div>
266
- </div>
267
- );
268
- }
269
-
270
- /** Full graph: the deleted topology subtree still wired into a live audit. */
271
- export const RemovedSubtree: Story = {
272
- render: () => <DeprecatedDemo />,
273
- };
274
-
275
177
  /**
276
178
  * The popover states, isolated — every badge variant the popover can render.
277
179
  * `Spotlights` shows the closed badge only; this is what the click opens.