fix: improve presentation evidence and architecture figure

This commit is contained in:
lda
2026-07-08 01:41:59 +07:00 Verified
parent 0c2b23ffd3
commit eb40c951d0
15 changed files with 169 additions and 60 deletions
@@ -81,6 +81,12 @@ describe("ArchitectureScene", () => {
expect(onFocusPathChange).toHaveBeenCalledWith(["runtime-providers"]);
});
it("uses the wide figure presentation for the defense architecture scene", () => {
renderArchitecture({ focusPath: [] });
expect(screen.getByRole("group", { name: /architecture/i })).toHaveAttribute("data-figure-size", "wide");
expect(screen.getByTestId("architecture-scene")).toBeInTheDocument();
});
it("renders a directly linked nested provider view", () => {
renderArchitecture({
focusPath: ["runtime-providers", "configured-providers"],
@@ -20,7 +20,7 @@ export const ArchitectureScene = ({
onFocusPathChange,
motionDisabled,
}: ArchitectureSceneProps) => (
<>
<section className="architecture-scene" data-testid="architecture-scene">
<StageCaption eyebrow={`Act II · ${scene.claimClass}`} title={scene.title}>
<p>{beat.caption}</p>
</StageCaption>
@@ -30,6 +30,7 @@ export const ArchitectureScene = ({
activeNodeId={activeNodeId}
onFocusPathChange={onFocusPathChange}
motionDisabled={motionDisabled}
size="wide"
/>
</>
</section>
);