Merge feat/ui-polish: wave 5 — the cosmetic reskin (owner skin, fonts, dock/prose split, pre-chat model selection)

This commit is contained in:
amosblomqvist
2026-09-14 05:21:41 +03:00
20 changed files with 464 additions and 104 deletions
+3 -2
View File
@@ -168,7 +168,8 @@ describe("render smoke tests", () => {
const html = renderToStaticMarkup(<AnsweredCard answer={answer} />);
assert.match(html, /incorrect/);
assert.match(html, /innermost/, "explanation renders post-answer");
assert.ok(html.includes("✓") && html.includes("✗"));
// Glyph-shaped SVG marks (owner preference) — pinned via data-mark.
assert.ok(html.includes('data-mark="check"') && html.includes('data-mark="x"'));
});
it("AnsweredCard renders the learner's own Other answer AS an option row", () => {
@@ -213,7 +214,7 @@ describe("render smoke tests", () => {
};
const answer = buildAnswer(qd, { values: ["Somewhat"] });
const html = renderToStaticMarkup(<AnsweredCard answer={answer} />);
assert.ok(!html.includes("incorrect") && !html.includes("✗"), "ask answers never get quiz grading UI");
assert.ok(!html.includes("incorrect") && !html.includes('data-mark="x"'), "ask answers never get quiz grading UI");
assert.match(html, /Somewhat/);
});