P4 app: Digital text viewer + extraction audit chip on setup page
'Digital text' button opens the digital-replica markdown (stem text, parts, marks, answer-space placeholders, spec refs) in a dialog with download. A 'Marks N/M' chip surfaces the extraction cover-total reconciliation (green=ok / amber=under-read) from extraction_meta.audit. examRepository.getDigitalText + DigitalTextResponse type. Co-Authored-By: Claude Opus 4.8 <[email protected]>
This commit is contained in:
@@ -396,3 +396,13 @@ export interface CorpusResponse {
|
||||
totals: { specs: number; papers: number; sessions: number; QP: number; MS: number; ER: number };
|
||||
boards: CorpusBoard[];
|
||||
}
|
||||
|
||||
// ── Digital-replica markdown (P4) ─────────────────────────────────────────────
|
||||
export interface DigitalTextResponse {
|
||||
slug: string;
|
||||
title: string;
|
||||
n_questions: number;
|
||||
total_marks: number;
|
||||
markdown: string;
|
||||
questions: { label: string; marks: number | null; markdown: string }[];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user