feat: stage evaluation and conclusion evidence
This commit is contained in:
@@ -48,6 +48,7 @@ describe("ConclusionScene", () => {
|
||||
expect(nonClaims).toHaveTextContent("Not a scheduler");
|
||||
expect(nonClaims).toHaveTextContent("Not a broad agent benchmark");
|
||||
expect(nonClaims).toHaveAttribute("data-emphasis", "limits");
|
||||
expect(nonClaims).toHaveAttribute("data-conclusion-support", "primary");
|
||||
});
|
||||
|
||||
it("exposes five labelled future-work icon branches", () => {
|
||||
@@ -69,12 +70,14 @@ describe("ConclusionScene", () => {
|
||||
]) {
|
||||
expect(future).toHaveTextContent(text);
|
||||
}
|
||||
expect(future).toHaveAttribute("data-conclusion-support", "primary");
|
||||
});
|
||||
|
||||
it("states the closing boundary and recedes future branches", () => {
|
||||
render(<ConclusionScene scene={scene} beat={beat("conclusion")} />);
|
||||
expect(screen.getByText("Planner proposes; runtime executes.")).toBeInTheDocument();
|
||||
expect(screen.getByRole("list", { name: "future work layers" })).toHaveAttribute("data-state", "receded");
|
||||
expect(screen.getByText("Planner proposes; runtime executes.")).toHaveAttribute("data-conclusion-support", "primary");
|
||||
});
|
||||
|
||||
it("attaches evidence vertically beneath the typed substrate rather than extending the contribution line", () => {
|
||||
|
||||
@@ -80,11 +80,17 @@ export const ConclusionScene: FC<ConclusionSceneProps> = ({ scene, beat }) => {
|
||||
className="conclusion-map__non-claims"
|
||||
aria-label="explicit non-claims"
|
||||
data-emphasis={beatId === "limits" ? "limits" : "neutral"}
|
||||
data-conclusion-support={beatId === "limits" ? "primary" : "receded"}
|
||||
>
|
||||
{nonClaims.map((claim) => <li key={claim}>{claim}</li>)}
|
||||
</ul>
|
||||
|
||||
<ul className="conclusion-map__future" aria-label="future work layers" data-state={futureState}>
|
||||
<ul
|
||||
className="conclusion-map__future"
|
||||
aria-label="future work layers"
|
||||
data-state={futureState}
|
||||
data-conclusion-support={beatId === "future" ? "primary" : "receded"}
|
||||
>
|
||||
{futureWorkBranches.map((branch) => {
|
||||
const Icon = futureWorkIcons[branch.icon];
|
||||
return (
|
||||
@@ -99,7 +105,7 @@ export const ConclusionScene: FC<ConclusionSceneProps> = ({ scene, beat }) => {
|
||||
})}
|
||||
</ul>
|
||||
|
||||
<p className="conclusion-map__statement">Planner proposes; runtime executes.</p>
|
||||
<p className="conclusion-map__statement" data-conclusion-support={beatId === "conclusion" ? "primary" : "receded"}>Planner proposes; runtime executes.</p>
|
||||
</section>
|
||||
<p className="scene-body__evidence">{scene.evidencePointer}</p>
|
||||
</>
|
||||
|
||||
Reference in New Issue
Block a user