Skip to content

Mermaid flowchart directions#3715

Merged
rumpl merged 4 commits into
docker:mainfrom
rumpl:feat/mermaid-flowchart-directions
Jul 17, 2026
Merged

Mermaid flowchart directions#3715
rumpl merged 4 commits into
docker:mainfrom
rumpl:feat/mermaid-flowchart-directions

Conversation

@rumpl

@rumpl rumpl commented Jul 17, 2026

Copy link
Copy Markdown
Member
Screenshot 2026-07-17 at 12 02 43 Screenshot 2026-07-17 at 12 06 38 Screenshot 2026-07-17 at 11 51 33

And as a bonus a nicer, rounder rendering

@rumpl
rumpl requested a review from a team as a code owner July 17, 2026 10:08

@docker-agent docker-agent left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Assessment: 🟢 APPROVE

This PR cleanly adds horizontal (LR/RL) and vertical (BT) flowchart direction support to the Mermaid TUI renderer, replacing go-runewidth with github.com/charmbracelet/x/ansi for proper grapheme-cluster-aware width calculations, and polishing box-drawing characters with rounded corners. The implementation is consistent and well-structured. One minor rendering edge case was identified in the new RL flip path.

Comment thread pkg/tui/components/mermaid/render_graph.go
@rumpl
rumpl force-pushed the feat/mermaid-flowchart-directions branch from d84d233 to f46b5b0 Compare July 17, 2026 10:20
@rumpl
rumpl enabled auto-merge July 17, 2026 10:25
@rumpl
rumpl merged commit 5f7bab3 into docker:main Jul 17, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants