docs: report evaluation evidence task
This commit is contained in:
@@ -19,6 +19,7 @@ const findingIcons: Record<EvaluationFindingIcon, FC<LucideProps>> = {
|
||||
};
|
||||
|
||||
export const EvaluationEvidenceScene: FC<EvaluationEvidenceSceneProps> = ({ scene, beat }) => {
|
||||
// Unknown beat ids keep the evidence board visible rather than dropping the scene.
|
||||
const beatId = isEvaluationBeatId(beat.id) ? beat.id : "cohort";
|
||||
|
||||
return (
|
||||
|
||||
@@ -3,6 +3,12 @@ import { evaluationEvidence, isEvaluationBeatId } from "./evaluation-evidence.js
|
||||
|
||||
describe("evaluationEvidence", () => {
|
||||
it("preserves the exact audited trial projection", () => {
|
||||
expect(evaluationEvidence.cohortFactors).toEqual([
|
||||
{ value: "2", label: "challenges" },
|
||||
{ value: "2", label: "hosted models" },
|
||||
{ value: "3", label: "profiles" },
|
||||
{ value: "3", label: "waves" },
|
||||
]);
|
||||
expect(evaluationEvidence.totalTrials).toBe(36);
|
||||
expect(evaluationEvidence.outcomes).toEqual([
|
||||
{ value: 27, label: "clean product-path passes", kind: "pass" },
|
||||
|
||||
@@ -15,4 +15,10 @@ describe("presentation.css", () => {
|
||||
expect(css).toContain(".presentation-stage__primary::-webkit-scrollbar");
|
||||
expect(css).toContain("display: none");
|
||||
});
|
||||
|
||||
it("stacks evaluation audit rows at the 1080px container breakpoint", () => {
|
||||
const breakpointBlock = css.match(/@media \(max-width: 1080px\) \{(?<body>[\s\S]*?)\n\}/)?.groups?.body;
|
||||
|
||||
expect(breakpointBlock).toMatch(/\.evaluation-board__audit-row\s*\{\s*grid-template-columns: 1fr;/);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -101,7 +101,7 @@
|
||||
.evaluation-board__audit,
|
||||
.evaluation-board__findings,
|
||||
.evaluation-board__boundary {
|
||||
transition: opacity 180ms ease, transform 180ms ease;
|
||||
transition: transform 180ms ease;
|
||||
}
|
||||
|
||||
.evaluation-board[data-evaluation-beat="cohort"] .evaluation-board__cohort,
|
||||
@@ -221,7 +221,7 @@
|
||||
.evaluation-board__cohort { border-right: 0; }
|
||||
.evaluation-board__outcomes,
|
||||
.evaluation-board__findings { grid-column: auto; }
|
||||
.evaluation-board__audit-row { grid-template-columns: 1fr auto 1fr; }
|
||||
.evaluation-board__audit-row { grid-template-columns: 1fr; }
|
||||
}
|
||||
|
||||
.stage-caption__eyebrow {
|
||||
|
||||
Reference in New Issue
Block a user