@action-state-group/capsule-viewer 0.12.0 → 0.13.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -0
- package/dist/compliance-view.d.ts +6 -0
- package/dist/compliance-view.js +17 -2
- package/dist/compliance-view.js.map +1 -1
- package/dist/contract-report-wording.d.ts +6 -2
- package/dist/contract-report-wording.js +57 -6
- package/dist/contract-report-wording.js.map +1 -1
- package/dist/contract-report.d.ts +3 -2
- package/dist/contract-report.js +5 -2
- package/dist/contract-report.js.map +1 -1
- package/dist/core-strip.d.ts +1 -1
- package/dist/core-strip.js +80 -25
- package/dist/core-strip.js.map +1 -1
- package/dist/evidence-graph-view.d.ts +2 -2
- package/dist/evidence-graph-view.js +16 -10
- package/dist/evidence-graph-view.js.map +1 -1
- package/dist/evidence-graph.iife.js +2239 -559
- package/dist/generic-report-view.d.ts +36 -0
- package/dist/generic-report-view.js +304 -0
- package/dist/generic-report-view.js.map +1 -0
- package/dist/outcome-report-view.js +26 -0
- package/dist/outcome-report-view.js.map +1 -1
- package/dist/viewer-build.js +2 -2
- package/dist/wording/contract-report-eu-ai-act.en.json +4 -0
- package/dist/wording/contract-report-generic.en.json +460 -0
- package/dist/wording/contract-report-outcomes.en.json +6 -0
- package/package.json +2 -2
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import type { BundleVerificationResult, ResultRoot } from "@action-state-group/agent-action-capsule";
|
|
2
|
+
import type { Words } from "./contract-report-wording.js";
|
|
3
|
+
import { type TierOf } from "./evidence-contract.js";
|
|
4
|
+
/**
|
|
5
|
+
* The `generic` grouping of the contract-report module (contract-report.ts):
|
|
6
|
+
* the view of a Result that opts into `contract-report/v1` and carries
|
|
7
|
+
* neither Outcomes `lines` nor EU `groups` data (contract-report/v1 module
|
|
8
|
+
* spec section 2). It reads the Result alone: a row is one (`contract_ref`,
|
|
9
|
+
* `requirement_ref`) pair with its claims, its group is the part of the
|
|
10
|
+
* `requirement_ref` before the first `.`, and every tally shows its
|
|
11
|
+
* denominator ("2 of 5 claims"), never a percentage. A requirement tier
|
|
12
|
+
* (from the page's contract), a claim not yet in force, and a claim that
|
|
13
|
+
* failed verification keep the places the spec gives them.
|
|
14
|
+
*
|
|
15
|
+
* Every word is the pack's (`generic.*` and the section 3 keys, layered over
|
|
16
|
+
* `wording/contract-report-generic.en.json`); a name no layer has is the raw
|
|
17
|
+
* identifier. Page layout: L0 the title, summary and counts after the core's
|
|
18
|
+
* strip; L1 the rows (a group is a heading, a row is a level-1 toggle);
|
|
19
|
+
* L2 each claim's assurance and "Check this report yourself".
|
|
20
|
+
*/
|
|
21
|
+
/** The `generic` grouping's page wrapper: its element, class, page name and stylesheet. */
|
|
22
|
+
export declare const GENERIC_FRAME: {
|
|
23
|
+
readonly tag: "div";
|
|
24
|
+
readonly className: "gr";
|
|
25
|
+
readonly page: "contract-report";
|
|
26
|
+
readonly css: string;
|
|
27
|
+
};
|
|
28
|
+
/**
|
|
29
|
+
* Draw the `generic` grouping into the three region wrappers
|
|
30
|
+
* (contract-report.ts made them and put the stylesheet in L0).
|
|
31
|
+
*/
|
|
32
|
+
export declare function drawGeneric(levels: {
|
|
33
|
+
readonly L0: HTMLElement;
|
|
34
|
+
readonly L1: HTMLElement;
|
|
35
|
+
readonly L2: HTMLElement;
|
|
36
|
+
}, result: ResultRoot, bundle: unknown, verified: BundleVerificationResult, w: Words, tierOf?: TierOf): Promise<void>;
|
|
@@ -0,0 +1,304 @@
|
|
|
1
|
+
import { COMPLIANCE_FRAME_VARS } from "./frame-tokens.generated.js";
|
|
2
|
+
import { ROW_TIERS } from "./evidence-contract.js";
|
|
3
|
+
import { leadWithProvenance, renderCheckYourself } from "./report-front.js";
|
|
4
|
+
import { frontCss } from "./report-front-styles.js";
|
|
5
|
+
import { assuranceRow, levelCss, levelToggle, proofList, reportSummary, withheldMark, wordPill, } from "./report-levels.js";
|
|
6
|
+
import { tagSource } from "./report-legend.js";
|
|
7
|
+
import { provenanceLines, renderProvenance } from "./report-provenance.js";
|
|
8
|
+
/**
|
|
9
|
+
* The `generic` grouping of the contract-report module (contract-report.ts):
|
|
10
|
+
* the view of a Result that opts into `contract-report/v1` and carries
|
|
11
|
+
* neither Outcomes `lines` nor EU `groups` data (contract-report/v1 module
|
|
12
|
+
* spec section 2). It reads the Result alone: a row is one (`contract_ref`,
|
|
13
|
+
* `requirement_ref`) pair with its claims, its group is the part of the
|
|
14
|
+
* `requirement_ref` before the first `.`, and every tally shows its
|
|
15
|
+
* denominator ("2 of 5 claims"), never a percentage. A requirement tier
|
|
16
|
+
* (from the page's contract), a claim not yet in force, and a claim that
|
|
17
|
+
* failed verification keep the places the spec gives them.
|
|
18
|
+
*
|
|
19
|
+
* Every word is the pack's (`generic.*` and the section 3 keys, layered over
|
|
20
|
+
* `wording/contract-report-generic.en.json`); a name no layer has is the raw
|
|
21
|
+
* identifier. Page layout: L0 the title, summary and counts after the core's
|
|
22
|
+
* strip; L1 the rows (a group is a heading, a row is a level-1 toggle);
|
|
23
|
+
* L2 each claim's assurance and "Check this report yourself".
|
|
24
|
+
*/
|
|
25
|
+
/** The `generic` grouping's page wrapper: its element, class, page name and stylesheet. */
|
|
26
|
+
export const GENERIC_FRAME = {
|
|
27
|
+
tag: "div",
|
|
28
|
+
className: "gr",
|
|
29
|
+
page: "contract-report",
|
|
30
|
+
css: `
|
|
31
|
+
.gr{${COMPLIANCE_FRAME_VARS}
|
|
32
|
+
font:16px/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",Inter,Helvetica,Arial,sans-serif;color:var(--ink);background:#fff;display:block;max-width:1080px;margin:26px auto;padding:0 28px}
|
|
33
|
+
.gr *{box-sizing:border-box}
|
|
34
|
+
.gr h1,.gr h2,.gr h3{font-family:Georgia,"Iowan Old Style",Cambria,serif;color:var(--navy);margin:0}
|
|
35
|
+
.gr h1{font-size:28px;margin:6px 0 4px}
|
|
36
|
+
.gr h2{font-size:21px;margin:0 0 6px}
|
|
37
|
+
.gr h3{font-size:17px;margin:18px 0 6px}
|
|
38
|
+
.gr .rsum,.gr .counts{color:var(--slate);margin:0 0 8px}
|
|
39
|
+
.gr .rnote{font-size:12.5px;color:var(--slate);margin:2px 0 8px}
|
|
40
|
+
.gr .tally{display:flex;flex-wrap:wrap;gap:6px 12px;font-size:13px;margin:4px 0}
|
|
41
|
+
.gr .rname{font-weight:600;color:var(--navy)}
|
|
42
|
+
.gr .rname code,.gr .cid{font-family:ui-monospace,Menlo,monospace;font-size:12.5px;word-break:break-all}
|
|
43
|
+
.gr ul.claims{list-style:none;margin:6px 0 0;padding:0}
|
|
44
|
+
.gr .tier-note{font-size:12.5px;color:var(--slate)}
|
|
45
|
+
` +
|
|
46
|
+
levelCss("gr") +
|
|
47
|
+
frontCss(".gr"),
|
|
48
|
+
};
|
|
49
|
+
const VERDICT_TONE = {
|
|
50
|
+
met: "ok",
|
|
51
|
+
not_met: "bad",
|
|
52
|
+
not_evaluable: "ne",
|
|
53
|
+
out_of_scope: "na",
|
|
54
|
+
failed: "bad",
|
|
55
|
+
unsupported: "ne",
|
|
56
|
+
};
|
|
57
|
+
/** What the claim shows as its verdict: failed verification and unsupported claims are not the producer's stated verdict (ER section 4). */
|
|
58
|
+
function shownVerdict(claim) {
|
|
59
|
+
if (claim.failed)
|
|
60
|
+
return "failed";
|
|
61
|
+
return claim.support === "supported" ? claim.verdict : "unsupported";
|
|
62
|
+
}
|
|
63
|
+
function el(tag, className, text) {
|
|
64
|
+
const node = document.createElement(tag);
|
|
65
|
+
if (className !== "")
|
|
66
|
+
node.className = className;
|
|
67
|
+
if (text !== undefined)
|
|
68
|
+
node.textContent = text;
|
|
69
|
+
return node;
|
|
70
|
+
}
|
|
71
|
+
/** The rows of `claims`, keyed by (contract_ref, requirement_ref), in order of first claim. */
|
|
72
|
+
function rowsOf(claims) {
|
|
73
|
+
const rows = new Map();
|
|
74
|
+
for (const claim of claims) {
|
|
75
|
+
const key = JSON.stringify([claim.contractRef, claim.requirementRef]);
|
|
76
|
+
const row = rows.get(key);
|
|
77
|
+
if (row === undefined)
|
|
78
|
+
rows.set(key, {
|
|
79
|
+
contractRef: claim.contractRef,
|
|
80
|
+
requirementRef: claim.requirementRef,
|
|
81
|
+
claims: [claim],
|
|
82
|
+
});
|
|
83
|
+
else
|
|
84
|
+
row.claims.push(claim);
|
|
85
|
+
}
|
|
86
|
+
return [...rows.values()];
|
|
87
|
+
}
|
|
88
|
+
/** The group a row sits in: the part of its `requirement_ref` before the first `.`, or none. */
|
|
89
|
+
function groupOf(requirementRef) {
|
|
90
|
+
const dot = requirementRef.indexOf(".");
|
|
91
|
+
return dot <= 0 ? undefined : requirementRef.slice(0, dot);
|
|
92
|
+
}
|
|
93
|
+
function verdictPill(verdict, w) {
|
|
94
|
+
const word = w.enumWord("verdict", verdict);
|
|
95
|
+
// `failed` and `unsupported` are this grouping's own verdicts (section 3
|
|
96
|
+
// defines four), so they read through the grouping's key.
|
|
97
|
+
const shown = verdict === "failed" || verdict === "unsupported"
|
|
98
|
+
? w.t(`generic.verdict.${verdict}`)
|
|
99
|
+
: word;
|
|
100
|
+
const pill = wordPill({ word: shown, tone: VERDICT_TONE[verdict] ?? "na" }, verdict);
|
|
101
|
+
pill.dataset.verdict = verdict;
|
|
102
|
+
return pill;
|
|
103
|
+
}
|
|
104
|
+
/** The row's tally: its claims counted by shown verdict, each with its denominator. */
|
|
105
|
+
function tally(row, w, later) {
|
|
106
|
+
const counts = new Map();
|
|
107
|
+
for (const claim of row.claims) {
|
|
108
|
+
const verdict = shownVerdict(claim);
|
|
109
|
+
counts.set(verdict, (counts.get(verdict) ?? 0) + 1);
|
|
110
|
+
}
|
|
111
|
+
const box = el("div", "tally");
|
|
112
|
+
for (const [verdict, n] of counts) {
|
|
113
|
+
const part = el("span", "");
|
|
114
|
+
part.dataset.tally = verdict;
|
|
115
|
+
// A later claim's verdict is readiness only (ER section 4.3): its
|
|
116
|
+
// tally says so, so a later not_met never reads as a violation.
|
|
117
|
+
if (later)
|
|
118
|
+
part.append(w.t("generic.later.readiness"), " ");
|
|
119
|
+
part.append(verdictPill(verdict, w), " ");
|
|
120
|
+
part.append(w.t("generic.tally", {
|
|
121
|
+
n: n.toLocaleString(),
|
|
122
|
+
total: row.claims.length.toLocaleString(),
|
|
123
|
+
}));
|
|
124
|
+
box.append(part);
|
|
125
|
+
}
|
|
126
|
+
return box;
|
|
127
|
+
}
|
|
128
|
+
function claimProofs(claim, w) {
|
|
129
|
+
const body = el("div", "pf-b");
|
|
130
|
+
const rows = [
|
|
131
|
+
[w.t("generic.claim.contract"), claim.contractRef],
|
|
132
|
+
[w.t("generic.claim.requirement"), claim.requirementRef],
|
|
133
|
+
assuranceRow(claim, w),
|
|
134
|
+
];
|
|
135
|
+
if (claim.type !== "requirement")
|
|
136
|
+
rows.push([
|
|
137
|
+
w.t("generic.claim.type"),
|
|
138
|
+
claim.recognized
|
|
139
|
+
? claim.type
|
|
140
|
+
: w.t("generic.claim.unrecognized", { type: claim.type }),
|
|
141
|
+
]);
|
|
142
|
+
if (claim.failed && claim.failure !== undefined)
|
|
143
|
+
rows.push([w.t("generic.claim.failure"), claim.failure]);
|
|
144
|
+
body.append(proofList(rows));
|
|
145
|
+
const mark = withheldMark(claim, w);
|
|
146
|
+
if (mark !== undefined)
|
|
147
|
+
body.append(mark);
|
|
148
|
+
return body;
|
|
149
|
+
}
|
|
150
|
+
function claimItem(claim, w) {
|
|
151
|
+
const item = el("li", "");
|
|
152
|
+
item.dataset.claimRef = claim.id;
|
|
153
|
+
const head = el("span", "");
|
|
154
|
+
const id = tagSource(el("code", "cid", claim.id), "producer");
|
|
155
|
+
head.append(id, " ", verdictPill(shownVerdict(claim), w));
|
|
156
|
+
item.append(levelToggle(2, head, () => claimProofs(claim, w), { className: "claim" }));
|
|
157
|
+
return item;
|
|
158
|
+
}
|
|
159
|
+
function rowItem(row, w, later, tierOf) {
|
|
160
|
+
const label = w.row(row.requirementRef, "label");
|
|
161
|
+
const name = el("span", "rname");
|
|
162
|
+
if (label !== undefined)
|
|
163
|
+
name.append(tagSource(el("span", "", label), "pack"));
|
|
164
|
+
else
|
|
165
|
+
name.append(tagSource(el("code", "", row.requirementRef), "producer"));
|
|
166
|
+
const summary = el("span", "");
|
|
167
|
+
summary.append(name);
|
|
168
|
+
const tier = tierOf?.(row.contractRef, row.requirementRef);
|
|
169
|
+
if (tier !== undefined) {
|
|
170
|
+
const chip = el("span", "rtier", w.t(`requirement_tier.${tier}`));
|
|
171
|
+
chip.dataset.requirementTier = tier;
|
|
172
|
+
summary.append(" ", chip);
|
|
173
|
+
}
|
|
174
|
+
summary.append(tally(row, w, later));
|
|
175
|
+
const toggle = levelToggle(1, summary, () => {
|
|
176
|
+
const body = el("div", "row-b");
|
|
177
|
+
const detail = w.row(row.requirementRef, "detail");
|
|
178
|
+
if (detail !== undefined)
|
|
179
|
+
body.append(el("p", "", detail));
|
|
180
|
+
const undecided = row.claims.some((claim) => !claim.failed && claim.verdict === "not_evaluable");
|
|
181
|
+
const note = w.row(row.requirementRef, "not_evaluable");
|
|
182
|
+
if (undecided && note !== undefined)
|
|
183
|
+
body.append(el("p", "rnote", note));
|
|
184
|
+
if (later)
|
|
185
|
+
for (const date of new Set(row.claims.flatMap((claim) => claim.appliesFrom === undefined ? [] : [claim.appliesFrom])))
|
|
186
|
+
body.append(el("p", "rnote", w.t("generic.later.note", { date })));
|
|
187
|
+
const list = el("ul", "claims");
|
|
188
|
+
for (const claim of row.claims)
|
|
189
|
+
list.append(claimItem(claim, w));
|
|
190
|
+
body.append(el("h3", "", w.t("generic.claims.h")), list);
|
|
191
|
+
return body;
|
|
192
|
+
}, { className: "row" });
|
|
193
|
+
toggle.dataset.row = row.requirementRef;
|
|
194
|
+
toggle.dataset.contract = row.contractRef;
|
|
195
|
+
return toggle;
|
|
196
|
+
}
|
|
197
|
+
/** A contract's rows as groups: a heading per group, the rows under it, a group with no title last. */
|
|
198
|
+
function groupedRows(rows, w, later, tierOf) {
|
|
199
|
+
const box = el("div", "groups");
|
|
200
|
+
const order = [];
|
|
201
|
+
const byGroup = new Map();
|
|
202
|
+
for (const row of rows) {
|
|
203
|
+
const group = groupOf(row.requirementRef);
|
|
204
|
+
if (!byGroup.has(group)) {
|
|
205
|
+
byGroup.set(group, []);
|
|
206
|
+
order.push(group);
|
|
207
|
+
}
|
|
208
|
+
byGroup.get(group).push(row);
|
|
209
|
+
}
|
|
210
|
+
// A requirement_ref with no `.` is in a final group with no title.
|
|
211
|
+
order.sort((a, b) => Number(a === undefined) - Number(b === undefined));
|
|
212
|
+
for (const group of order) {
|
|
213
|
+
const part = el("div", "group");
|
|
214
|
+
if (group !== undefined) {
|
|
215
|
+
part.dataset.group = group;
|
|
216
|
+
const title = w.group(group);
|
|
217
|
+
const heading = el("h3", "");
|
|
218
|
+
heading.append(title !== undefined
|
|
219
|
+
? tagSource(el("span", "", title), "pack")
|
|
220
|
+
: tagSource(el("span", "", group), "producer"));
|
|
221
|
+
part.append(heading);
|
|
222
|
+
}
|
|
223
|
+
for (const row of byGroup.get(group))
|
|
224
|
+
part.append(rowItem(row, w, later, tierOf));
|
|
225
|
+
box.append(part);
|
|
226
|
+
}
|
|
227
|
+
return box;
|
|
228
|
+
}
|
|
229
|
+
function contractHeading(contract, w) {
|
|
230
|
+
const heading = el("h2", "", w.t("generic.contract.h"));
|
|
231
|
+
heading.append(" ", tagSource(el("code", "", contract), "producer"));
|
|
232
|
+
return heading;
|
|
233
|
+
}
|
|
234
|
+
/** Rows by contract first, in order of first appearance (module spec section 2: several contracts). */
|
|
235
|
+
function byContract(rows, w, later, tierOf) {
|
|
236
|
+
const contracts = [...new Set(rows.map((row) => row.contractRef))];
|
|
237
|
+
if (contracts.length <= 1)
|
|
238
|
+
return groupedRows(rows, w, later, tierOf);
|
|
239
|
+
const box = el("div", "contracts");
|
|
240
|
+
for (const contract of contracts) {
|
|
241
|
+
const part = el("div", "contract");
|
|
242
|
+
part.dataset.contract = contract;
|
|
243
|
+
part.append(contractHeading(contract, w), groupedRows(rows.filter((row) => row.contractRef === contract), w, later, tierOf));
|
|
244
|
+
box.append(part);
|
|
245
|
+
}
|
|
246
|
+
return box;
|
|
247
|
+
}
|
|
248
|
+
/**
|
|
249
|
+
* Draw the `generic` grouping into the three region wrappers
|
|
250
|
+
* (contract-report.ts made them and put the stylesheet in L0).
|
|
251
|
+
*/
|
|
252
|
+
export async function drawGeneric(levels, result, bundle, verified, w, tierOf) {
|
|
253
|
+
const tierFor = (claim) => tierOf === undefined
|
|
254
|
+
? "unstated"
|
|
255
|
+
: tierOf(claim.contractRef, claim.requirementRef);
|
|
256
|
+
const inForce = result.claims.filter((claim) => !claim.later);
|
|
257
|
+
const later = result.claims.filter((claim) => claim.later);
|
|
258
|
+
// The derived counts leave informational rows out (module spec section 2);
|
|
259
|
+
// contract-report.ts says so above, whenever the Result has one.
|
|
260
|
+
const counted = inForce.filter((claim) => !(tierOf !== undefined && tierFor(claim) === "informational"));
|
|
261
|
+
// L0, after the core's strip: the title, the pack's summary and the counts.
|
|
262
|
+
const sheet = el("div", "l0-card front-card");
|
|
263
|
+
sheet.append(el("h1", "", w.t("generic.title")));
|
|
264
|
+
const summary = reportSummary(w);
|
|
265
|
+
if (summary !== undefined)
|
|
266
|
+
sheet.append(summary);
|
|
267
|
+
const counts = el("p", "counts", `${w.p("generic.counts.claims", counted.length)} · ${w.p("generic.counts.rows", rowsOf(counted).length)}`);
|
|
268
|
+
counts.dataset.counts = "";
|
|
269
|
+
sheet.append(counts);
|
|
270
|
+
levels.L0.append(sheet);
|
|
271
|
+
// L1, why: the rows, led by who judged, who witnessed, what verified.
|
|
272
|
+
const section = el("section", "front-card");
|
|
273
|
+
section.dataset.section = "rows";
|
|
274
|
+
const rows = rowsOf(inForce);
|
|
275
|
+
if (tierOf === undefined)
|
|
276
|
+
section.append(byContract(rows, w, false));
|
|
277
|
+
else
|
|
278
|
+
for (const tier of ROW_TIERS) {
|
|
279
|
+
const inTier = rows.filter((row) => tierOf(row.contractRef, row.requirementRef) === tier);
|
|
280
|
+
if (inTier.length === 0)
|
|
281
|
+
continue;
|
|
282
|
+
const part = el("div", "tier-section");
|
|
283
|
+
part.dataset.tierSection = tier;
|
|
284
|
+
part.append(el("h2", "", w.t(`generic.rtier.${tier}.title`, {
|
|
285
|
+
n: inTier.length.toLocaleString(),
|
|
286
|
+
})), el("p", "rnote", w.t(`generic.rtier.${tier}.note`)), byContract(inTier, w, false, tierOf));
|
|
287
|
+
section.append(part);
|
|
288
|
+
}
|
|
289
|
+
// Claims not yet in force: their own section after the in-force rows,
|
|
290
|
+
// never merged with them, and counted in no total above (ER section 4.3).
|
|
291
|
+
if (later.length > 0) {
|
|
292
|
+
const part = el("div", "later-section");
|
|
293
|
+
part.dataset.section = "not-yet-in-force";
|
|
294
|
+
const laterRows = rowsOf(later);
|
|
295
|
+
part.append(el("h2", "", w.t("generic.later.title", { n: later.length.toLocaleString() })), byContract(laterRows, w, true, tierOf));
|
|
296
|
+
section.append(part);
|
|
297
|
+
}
|
|
298
|
+
section.append(tagSource(el("p", "rnote", w.t("generic.producer.note")), "core"));
|
|
299
|
+
levels.L1.append(section);
|
|
300
|
+
leadWithProvenance(levels.L1, section, renderProvenance(await provenanceLines(result.records, result.claims, bundle, verified, w)));
|
|
301
|
+
// L2, module detail after the core's verification section.
|
|
302
|
+
levels.L2.append(renderCheckYourself(bundle, w));
|
|
303
|
+
}
|
|
304
|
+
//# sourceMappingURL=generic-report-view.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"generic-report-view.js","sourceRoot":"","sources":["../src/generic-report-view.ts"],"names":[],"mappings":"AAOA,OAAO,EAAE,qBAAqB,EAAE,MAAM,6BAA6B,CAAC;AACpE,OAAO,EAAE,SAAS,EAA6B,MAAM,wBAAwB,CAAC;AAC9E,OAAO,EAAE,kBAAkB,EAAE,mBAAmB,EAAE,MAAM,mBAAmB,CAAC;AAC5E,OAAO,EAAE,QAAQ,EAAE,MAAM,0BAA0B,CAAC;AACpD,OAAO,EAC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kB,CAChB,MAAM,CAAC,EAAE,EACT,OAAO,EACP,gBAAgB,CACd,MAAM,eAAe,CAAC,MAAM,CAAC,OAAO,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,CAAC,CAAC,CAC1E,CACF,CAAC;IAEF,2DAA2D;IAC3D,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,mBAAmB,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC;AACnD,CAAC"}
|
|
@@ -1718,6 +1718,31 @@ export const LINES_FRAME = {
|
|
|
1718
1718
|
page: "outcome-report",
|
|
1719
1719
|
css: OUTCOME_REPORT_CSS,
|
|
1720
1720
|
};
|
|
1721
|
+
/**
|
|
1722
|
+
* The canvas's footnotes 1-3 (Terms Pack Outcomes frame 1): what a record
|
|
1723
|
+
* and a conversation are, what resolved means, and that the page is
|
|
1724
|
+
* read-only. The canvas's fourth, "the only percentage is concurrence", is
|
|
1725
|
+
* not said: this page also prints the judge's probability as a percentage.
|
|
1726
|
+
* A bundle that carries no records list leaves the first without a record
|
|
1727
|
+
* count rather than guessing.
|
|
1728
|
+
*/
|
|
1729
|
+
function renderCanvasNotes(notes, model, bundle, w) {
|
|
1730
|
+
const records = bundle?.records;
|
|
1731
|
+
const note = (key, text) => {
|
|
1732
|
+
const p = el("p", "", text);
|
|
1733
|
+
p.dataset.footnote = key;
|
|
1734
|
+
notes.append(p);
|
|
1735
|
+
};
|
|
1736
|
+
if (Array.isArray(records))
|
|
1737
|
+
note("records", w.t("lines.fn.records", {
|
|
1738
|
+
records: fmtCount(records.length),
|
|
1739
|
+
n: fmtCount(model.totalCount),
|
|
1740
|
+
}));
|
|
1741
|
+
note("resolved", w.t(model.gating === undefined
|
|
1742
|
+
? "lines.fn.resolved"
|
|
1743
|
+
: "lines.fn.resolved.tiered"));
|
|
1744
|
+
note("readonly", w.t("lines.fn.readonly"));
|
|
1745
|
+
}
|
|
1721
1746
|
/**
|
|
1722
1747
|
* Draw the `lines` grouping into `wrapper` (contract-report.ts made it and
|
|
1723
1748
|
* put its stylesheet in it). Every word is `w`'s.
|
|
@@ -1741,6 +1766,7 @@ export async function drawLines(levels, result, options, bundle, verified, w, ti
|
|
|
1741
1766
|
notes.dataset.section = "footnotes";
|
|
1742
1767
|
renderMeta(pad, model, w, notes);
|
|
1743
1768
|
renderLines(pad, model, runInfo, w, notes);
|
|
1769
|
+
renderCanvasNotes(notes, model, bundle, w);
|
|
1744
1770
|
if (notes.childElementCount > 0)
|
|
1745
1771
|
pad.append(notes);
|
|
1746
1772
|
sheet.append(pad);
|