Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0003-headless-output FR-004
The closing block of a run as data (commons headless 0003-headless-outputFR-004): which lines come, in which order, what the verdict says, and the ONE next: command. The surface draws the lines it is given with its own marks and colours; it neither orders nor chooses.
Order: the problems (the first failure is the verdict, so it is not listed twice; then the other failures, then the warnings), what is the person's to do, what is pending, the hints that are due, the steps the command spelled out; then the verdict, then the one next command. The next command is the failure's own, else the first step for the person, else the one the command suggested; a failure whose fix holds no command has none.
typeClosingProblem= {
readonlykind:"problem";
readonlylevel:ProblemLevel;
readonlymessage:string;
readonlycode?:string;
readonlysay?:string;
/** The command, labelled `fix` for a failure or a warning and `run` for what is pending or the person's. */readonlycommand?: { readonlylabel:"fix"|"run"; readonlycommand:string };
readonlyraw?:string;
readonlylogLine?:number;
};
A problem as a line of the block: its text, its code, the instruction and the one command of its fix.
typeClosing= {
readonlylines:readonlyClosingLine[];
readonlyverdict:Verdict;
/** The instruction of the failure that is the verdict, shown before it. */readonlyrootSay?:string;
/** The one next command: only a command, never a sentence. */readonlynext?:string;
readonlycounts:Counts;
/** How many hints the block shows. */readonlyhintsShown:number;
};
typeClosingOptions= {
readonlyfix:FixCommands;
/** The title of a verdict where all is well, over the outcome's own. */readonlytitle?:string;
/** The hints that are due (the cadence is the surface's: `hintsDue`). */readonlyshownHints:readonlyHint[];
};
typeClosingProblem= {
readonlykind:"problem";
readonlylevel:ProblemLevel;
readonlymessage:string;
readonlycode?:string;
readonlysay?:string;
/** The command, labelled `fix` for a failure or a warning and `run` for what is pending or the person's. */readonlycommand?: { readonlylabel:"fix"|"run"; readonlycommand:string };
readonlyraw?:string;
readonlylogLine?:number;
};
A problem as a line of the block: its text, its code, the instruction and the one command of its fix.
typeClosing= {
readonlylines:readonlyClosingLine[];
readonlyverdict:Verdict;
/** The instruction of the failure that is the verdict, shown before it. */readonlyrootSay?:string;
/** The one next command: only a command, never a sentence. */readonlynext?:string;
readonlycounts:Counts;
/** How many hints the block shows. */readonlyhintsShown:number;
};
typeClosingOptions= {
readonlyfix:FixCommands;
/** The title of a verdict where all is well, over the outcome's own. */readonlytitle?:string;
/** The hints that are due (the cadence is the surface's: `hintsDue`). */readonlyshownHints:readonlyHint[];
};