Label: complexity: high
Points: 200
Description
Complex invoices with multiple recipients and partial payments are hard to understand without a visual representation. This issue adds generateFlowDiagram(invoiceId) that returns a Mermaid diagram string representing the payment flow.
Technical Context
Involves a new src/flowVisualizer.ts. Fetch invoice and payments. Build a Mermaid flowchart LR diagram with nodes for creator, invoice, and each recipient. Edges show payment amounts. Completed flows shown in green, pending in yellow. generateFlowDiagram(invoiceId): Promise<string> returns the Mermaid string.
Acceptance Criteria
Label: complexity: high
Points: 200
Description
Complex invoices with multiple recipients and partial payments are hard to understand without a visual representation. This issue adds
generateFlowDiagram(invoiceId)that returns a Mermaid diagram string representing the payment flow.Technical Context
Involves a new
src/flowVisualizer.ts. Fetch invoice and payments. Build a Mermaidflowchart LRdiagram with nodes for creator, invoice, and each recipient. Edges show payment amounts. Completed flows shown in green, pending in yellow.generateFlowDiagram(invoiceId): Promise<string>returns the Mermaid string.Acceptance Criteria
generateFlowDiagram(invoiceId: string): Promise<string>exportedflowchart LRsyntaxanytypes