Files
soroban-abacus-flashcards/apps
Thomas Hallock 37be1c8c65 feat(flowcharts): add reliable edge ID matching for visualization
- Add computeEdgeId() helper that generates edge IDs as {nodeId}_{optionValue}
- Update loader.ts to compute edge IDs automatically from decision options
- Update parser.ts to extract edge IDs from mermaid id@--> syntax
- Add MERM-003 diagnostic in doctor.ts to detect missing edge IDs
- Update LLM schemas to document the required edge ID pattern
- Update DebugMermaidDiagram to match edges by ID (with index fallback)

Edge IDs enable reliable highlighting of decision edges during visualization.
The pattern is deterministic: for a decision node "COMPARE" with option
value "direct", the expected edge ID is "COMPARE_direct".

Mermaid content must use: COMPARE COMPARE_direct@-->|"DIRECT"| NEXT_NODE

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-23 08:59:05 -06:00
..