IF Commons GitHub

trust/html

Written to: 1 requirement: 1 proved, 0 partly, 0 failing, 0 with no test recorded. 0001-quality-evidence FR-052

The Trust page as one self-contained HTML file (commons 0001-quality-evidence FR-052 to FR-056, FR-059): embedded CSS (light and dark), no script, no external resource, no clock, made from a TrustView and nothing else, so that the same view gives the same bytes. Failures come first (open nonconformances with their age, open CAPA, failed cases, cases that did not run), then the figures, the objectives with their budgets, every requirement with its grade, freshness and last proof, what people and plans recorded, and the scope with what the page does not cover.

Every value is escaped for HTML where it is written; the page's own sentences state evidence and never conformity (FR-055), and a test reads the generated text for the words a claim would use, outside the one sentence that denies one.

Source: commons/quality/src/trust/html.ts

0 of 3 exports are imported by a test of the run. A test that imports an export may not call it or check what it returns.

escfunctionno test imports it
function esc(text: string): string

Text escaped for HTML.

trustHtmlfunctionno test imports it
function trustHtml(v: TrustView): string

The page for a view: the HTML document, one file (FR-052).

audienceWordsfunctionno test imports it
function audienceWords(a: Audience): string

The audience's name as the page shows it, kept here so that a switch over audiences stays exhaustive in one place.

Titles, headings, exports, tables, columns and requirements. Esc closes.