@principal-ai/subsystems-react 0.28.4 → 0.28.6
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/pierre/PierreFileView.d.ts.map +1 -1
- package/dist/pierre/PierreFileView.js +11 -1
- package/dist/pierre/PierreFileView.js.map +1 -1
- package/dist/pierre/PierreWalkthroughCodeView.d.ts +6 -1
- package/dist/pierre/PierreWalkthroughCodeView.d.ts.map +1 -1
- package/dist/pierre/PierreWalkthroughCodeView.js +83 -30
- package/dist/pierre/PierreWalkthroughCodeView.js.map +1 -1
- package/dist/pierre/fileAvailability.d.ts +17 -0
- package/dist/pierre/fileAvailability.d.ts.map +1 -0
- package/dist/pierre/fileAvailability.js +31 -0
- package/dist/pierre/fileAvailability.js.map +1 -0
- package/dist/subsystem/IssueList.d.ts +3 -0
- package/dist/subsystem/IssueList.d.ts.map +1 -1
- package/dist/subsystem/IssueList.js +22 -7
- package/dist/subsystem/IssueList.js.map +1 -1
- package/dist/subsystem/SubsystemComponentGraph.d.ts +5 -0
- package/dist/subsystem/SubsystemComponentGraph.d.ts.map +1 -1
- package/dist/subsystem/SubsystemComponentGraph.js +3 -3
- package/dist/subsystem/SubsystemComponentGraph.js.map +1 -1
- package/package.json +1 -1
- package/src/pierre/PierreFileView.tsx +22 -0
- package/src/pierre/PierreWalkthroughCodeView.tsx +125 -39
- package/src/pierre/fileAvailability.test.ts +40 -0
- package/src/pierre/fileAvailability.ts +37 -0
- package/src/stories/Subsystem/ComponentGraph/Flows.stories.tsx +131 -16
- package/src/subsystem/IssueList.tsx +38 -6
- package/src/subsystem/SubsystemComponentGraph.tsx +9 -1
|
@@ -78,6 +78,11 @@ export interface WalkthroughViewerContext {
|
|
|
78
78
|
stepIndex: number | null;
|
|
79
79
|
/** Open a step's full source file over the walkthrough drawer (keeps snippets mounted). */
|
|
80
80
|
onOpenFile: (path: string, opts?: SubsystemOpenFileOptions) => void;
|
|
81
|
+
/**
|
|
82
|
+
* Aliases of components marked `proposed`. A step whose file can't be read
|
|
83
|
+
* but whose endpoint is proposed can be labelled as planned, not missing.
|
|
84
|
+
*/
|
|
85
|
+
proposedAliases: ReadonlySet<string>;
|
|
81
86
|
}
|
|
82
87
|
|
|
83
88
|
type DrawerTarget =
|
|
@@ -355,13 +360,15 @@ const WalkthroughDrawerContent = memo(function WalkthroughDrawerContent({
|
|
|
355
360
|
walkthrough,
|
|
356
361
|
stepIndex,
|
|
357
362
|
onOpenFile,
|
|
363
|
+
proposedAliases,
|
|
358
364
|
}: {
|
|
359
365
|
render: (ctx: WalkthroughViewerContext) => ReactNode;
|
|
360
366
|
walkthrough: SubsystemWalkthrough;
|
|
361
367
|
stepIndex: number | null;
|
|
362
368
|
onOpenFile: (path: string, opts?: SubsystemOpenFileOptions) => void;
|
|
369
|
+
proposedAliases: ReadonlySet<string>;
|
|
363
370
|
}) {
|
|
364
|
-
return <>{render({ walkthrough, stepIndex, onOpenFile })}</>;
|
|
371
|
+
return <>{render({ walkthrough, stepIndex, onOpenFile, proposedAliases })}</>;
|
|
365
372
|
});
|
|
366
373
|
|
|
367
374
|
interface InnerProps extends SubsystemComponentGraphProps {
|
|
@@ -2152,6 +2159,7 @@ function Inner({ components, relations, walkthroughs, initialWalkthroughId, onRe
|
|
|
2152
2159
|
walkthrough={focusedWalkthrough}
|
|
2153
2160
|
stepIndex={drawerTarget.stepIndex}
|
|
2154
2161
|
onOpenFile={onOpenFileFromWalkthrough}
|
|
2162
|
+
proposedAliases={proposedAliases}
|
|
2155
2163
|
/>
|
|
2156
2164
|
) : drawerTarget?.kind === 'file' ? (
|
|
2157
2165
|
<FileDrawerContent
|