⚠ ネタバレ注意: 本サイトはSFアニメ「SOLAR LINE」の内容を詳細に分析しています。未視聴の方はご注意ください。
📝 AI生成コンテンツ: 本考証の大部分は AI(Claude Code 等)によって生成されています。内容の正確性については原作および引用元をご確認ください。

Task 169: Inline Glossary Tooltips

完了 ← タスク一覧

Task 169: Inline Glossary Tooltips

Status: DONE

Goal

Add inline hover tooltips for glossary terms throughout report text. Currently, glossary terms are only shown as a static table at the bottom of each report. Inline tooltips make technical terms accessible right where they're used, without readers needing to scroll to the glossary.

Background

Codex consultation identified this as the highest-impact reader-experience improvement:

Approach

  1. Add wrapGlossaryTerms(html, terms) function in templates.ts

- Scans rendered HTML text content (not inside tags/attributes) for glossary terms

- Wraps first occurrence per section in <span class="glossary-term" tabindex="0"> with tooltip

- Handles term variants (e.g., "ΔV" and "デルタV")

  1. Add CSS for .glossary-term hover/focus tooltip
  2. Apply to both episode and summary report renderers
  3. Write unit tests + E2E test

Result

Dependencies