mirror of
https://github.com/harvard-edge/cs249r_book.git
synced 2026-07-16 14:42:29 -05:00
Three fixes addressing user feedback from Peter (EAIF/NMC WG): Visual questions: SVGs were never mirrored from vault/visuals/ to public/question-visuals/, causing 404s on all platforms (not Chrome-specific). Added mirror-visuals.sh standalone script and wired it as a fallback in build-local-corpus.mjs so npm run dev always populates the 236 SVGs. Glossary tooltips: Parsed 831 terms from MLSysBook vol1/vol2 glossaries into glossary.json. New GlossaryText component annotates acronyms (92 matchable patterns) with hover tooltips showing expansion and definition. Wired into scenario text and MarkdownText so questions, solutions, and common-mistake text all get inline acronym hover. Uses existing MetaTooltip component (accessible, pure CSS, keyboard-focusable). First occurrence only per render to avoid clutter. Rubric quality: Replaced naive first-3-sentences extraction with a scoring system that prioritizes sentences containing technical terms, causal reasoning, and quantitative claims. Better filler removal and smarter common-mistake sentence selection.