Skip to content

Improve graph rendering - #103

Merged
qmuntal merged 4 commits into
masterfrom
fixgraph
Feb 6, 2026
Merged

Improve graph rendering#103
qmuntal merged 4 commits into
masterfrom
fixgraph

Conversation

@qmuntal

@qmuntal qmuntal commented Feb 6, 2026

Copy link
Copy Markdown
Owner

This pull request introduces several improvements to the DOT graph generation for state machines, modernizes dependencies, and updates documentation and test data accordingly. The most significant change is the enhancement of the DOT output to visually distinguish special transition types (internal, reentry, ignored) using icons and a legend, making generated graphs more informative and user-friendly. Additionally, the codebase has been updated to use newer Go versions and modern library features.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This pull request enhances the DOT graph generation for state machines by introducing visual indicators for special transition types (internal, reentry, ignored) using emoji icons and a legend. The PR also modernizes the codebase by updating to Go 1.24+ and replacing deprecated sorting functions with the newer slices package.

Changes:

  • Enhanced DOT graph visualization with emoji icons (🔄 reentry, 🔒 internal, 🚫 ignored) and an auto-generated legend
  • Updated node styling from Mrecord to rounded boxes for better visual appearance
  • Modernized Go version from 1.19 to 1.24 and updated dependencies to use slices package instead of sort

Reviewed changes

Copilot reviewed 10 out of 12 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
graph.go Refactored graph generation logic to use emoji icons for transition types, added legend generation, modernized sorting with slices.SortFunc, and simplified label formatting
go.mod Updated Go version from 1.19 to 1.24 to support modern language features
.github/workflows/test.yml Updated CI test matrix to Go 1.24.x and 1.25.x
testdata/golden/*.dot Updated golden test files to reflect new graph styling and transition icons
README.md Changed documentation to reference SVG file instead of PNG for graph examples
assets/phone-graph.svg Added SVG version of phone call state machine graph

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread graph.go
Comment thread graph.go Outdated
@qmuntal
qmuntal merged commit 9e21f17 into master Feb 6, 2026
14 checks passed
@qmuntal
qmuntal deleted the fixgraph branch February 6, 2026 11:11
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.

2 participants