Task 460: Support Multiple Bar Charts Per Transfer Section
完了 ← タスク一覧
Task 460: Support Multiple Bar Charts Per Transfer Section
Status: DONE
Summary
The episode parser (episode-mdx-parser.ts) and report-types.ts only support a single barChart per transfer section. Adding a second bar chart to the same section (e.g., EP05 transfer-02 now has both "木星フライバイの必要性" and "深宇宙航法の位置精度比較") causes the first to be silently overwritten.
This is the same class of bug as Task 455 (timeseries-charts overwrite). Fix by converting barChart?: BarChart to barCharts?: BarChart[].
Impact
- EP05 E2E test failure: "EP05 has Jupiter flyby necessity bar chart (on detail page)" — the flyby bar chart was overwritten by the new navigation precision chart
- EP04 transfer-04 could also be affected if multiple bar charts are added to the same section
Plan
- Change
barChart?: BarCharttobarCharts?: BarChart[]in report-types.ts (both TransferAnalysis and SummarySection) - Update episode-mdx-parser.ts to collect array
- Update templates.ts renderer to iterate over array
- Update any tests that reference
barChart(singular) - Verify E2E test passes