diff --git a/app.js b/app.js index 94e7e0717aacbdd1e19d5a6259f7dd85a3d95118..6fd3838b5750f367633ed7a204f7eca7282f4c00 100644 --- a/app.js +++ b/app.js @@ -164,6 +164,7 @@ function caseHTML(c, n) {

The question

${esc(c.question)}

What Mat2Bot found

${esc(c.story)}

How sure it is

${esc(c.verdict.words)}

${esc(c.verdict.why)}

+ ${c.safety && !c.family ? `

Handling it

${esc(c.safety)}

` : ""} ${doubts.length ? `

Doubts it checked

${plural(c.counts.eliminated, "ruled out", "ruled out")} ${plural(c.counts.open, "still open", "still open")} @@ -173,10 +174,12 @@ function caseHTML(c, n) { ${(c.steps || []).length ? `

The recipe, in short

    ${c.steps.map((s) => `
  1. ${esc(s)}
  2. `).join("")}
` : ""} ${labs ? `

Who could make it

${labs}
` : ""} ${(c.sources || []).length ? `

Where the evidence comes from

` : ""} + ${c.links.trace ? `

How Mat2Bot got there

Loading the trail…

+

Each box is a stage Mat2Bot ran, from its own records. Open the full trail to click through every route, doubt, number and source.

` : ""}

Checked by the independent auditor

audit ${esc(c.audit.verdict)} ${plural(c.audit.passed, "check passed", "checks passed")}${c.audit.unknown ? `, ${plural(c.audit.unknown, "not applicable", "not applicable")}` : ""}

- @@ -204,7 +205,7 @@
  • Every number says where it comes from: a quoted sentence, a database entry, a calculation by a named rule, or a stated choice.
  • - + diff --git a/style.css b/style.css index 17a49cd36e7918ac4d37141d130cc7858f91e23a..8311d760e34eef594664ab2d4a0f10d6fc8cac48 100644 --- a/style.css +++ b/style.css @@ -275,3 +275,14 @@ details { margin-top: 10px; } details summary { cursor: pointer; color: var(--brand); font-weight: 600; font-size: .9rem; } .lab .chip { margin-top: 6px; } .dlist em { color: var(--muted); font-style: normal; font-size: .85rem; } + +/* the trail strip inside a case dialog (the stages, from the case's trace.json) */ +.trail-strip { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 6px; padding: 0; list-style: none; } +.trail-strip li { display: flex; flex-direction: column; min-width: 86px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font-size: .82rem; } +.trail-strip li b { font-size: .84rem; } +.trail-strip li span { color: var(--muted); font-size: .76rem; } +.trail-strip li.ok { border-color: var(--strong); } +.trail-strip li.warn { border-color: var(--partial); } +.trail-strip li.bad { border-color: var(--blocked); } +.trail-strip li.off { opacity: .7; } +.muted { color: var(--muted); }