Task 32: Template and Type Quality Fixes
完了 ← タスク一覧
Task 032: Template and Type Quality Fixes
Status: DONE
Goal
Fix type inconsistencies and template rendering gaps identified by quality audit.
Scope
- ExplorationScenario.results type:
Record<string, number>→Record<string, string | number>(EP04/EP05 data uses string values) - TransferAnalysis.parameters.mu: Make optional (13 of 24 transfers don't have
mu) - Markdown ordered list support:
markdownToHtmldoesn't handle1.ordered lists — EP02 numbered lists render as bare paragraphs - Animation time display: Long-duration diagrams (cross-episode full-route: ~472 days) display in hours, becoming unreadable. Show days when appropriate.
Changes
ts/src/report-types.ts:ExplorationScenario.resultsnowRecord<string, number | string>,TransferAnalysis.parameters.munow optionalts/src/templates.ts:markdownToHtmlsupports ordered lists (1.,2.), CSS time-display min-width 5remts/src/orbital-animation.js:formatTimeshows days for >30d, years+days for >365dts/src/templates.test.ts: 10 new tests (ordered lists, string results, optional mu, ordered lists in explanations)
Test Results
- 680 TS + 52 Rust = 732 total (0 failures)
- Site builds successfully (5 episodes, 24 transfers, 1 summary)
Depends on
- Task 005 (report pipeline) — DONE
- Task 014 (orbital diagrams) — DONE
- Task 019 (animation) — DONE