feat: reweight defense story and presenter notes

This commit is contained in:
lda
2026-07-13 07:55:34 +07:00 Verified
parent ab943deed5
commit 18c930449a
15 changed files with 703 additions and 172 deletions
@@ -122,6 +122,28 @@ describe("GuidedProductMoment", () => {
expect(screen.getByLabelText("workflow.runs.resume operation")).toBeInTheDocument();
});
it("labels a replay revision as a separate prepared recording", () => {
render(
<GuidedProductMoment
beat={findBeat("resume-output-evidence", "resume")!}
demo={demoWithAppliedCount(6)}
contract={contract}
operation={resumeOperation}
approvalActions={{
state: "revision_requested",
canSubmit: false,
canRequestRevision: false,
submit: vi.fn(async () => {}),
requestRevision: vi.fn(async () => {}),
}}
openEvidence={vi.fn()}
/>,
);
expect(screen.getByText(/separate prepared recording/i)).toBeInTheDocument();
expect(screen.queryByText(/same run/i)).not.toBeInTheDocument();
});
it("keeps approval focused on input and decision without pre-resume output", () => {
render(
<GuidedProductMoment