Skip to content

Assignment details#52

Merged
mitchspano merged 3 commits intomainfrom
assignment_details
May 2, 2025
Merged

Assignment details#52
mitchspano merged 3 commits intomainfrom
assignment_details

Conversation

@mitchspano
Copy link
Collaborator

Add Assignment Inner Node Rendering and Mermaid Default

Overview

This PR introduces several improvements and fixes to the flow-lens project, focusing on enhanced assignment node rendering, improved diff visualization, and a default switch to Mermaid diagrams.

Key Changes

1. Assignment Node Inner Content

  • Feature: Assignment nodes in UML diagrams now display their inner assignment operations.
  • Implementation:
    • Added a getFlowAssignmentInnerNodes method to UmlGenerator to extract and render assignment items (e.g., var1 = Hello World, var2 AddItem Test Value).
    • Updated the test suite to verify correct rendering of assignment inner content for various assignment operators and value types.
    • Ensured assignment items are always treated as arrays via setAssignments in the flow parser.

2. Default Diagram Tool: Mermaid

  • Change: The default diagram tool in the CLI and documentation is now Mermaid instead of Graphviz.
  • Docs: Updated the README.md to reflect this change and provided new Mermaid-based diff examples.

3. Diff Visualization

  • Update: Updated example diffs and screenshots (Diff_New.png, Diff_Old.png) to reflect the new Mermaid output and improved assignment node rendering.

4. Version Bump

  • Change: Bumped the package version from 0.1.11 to 0.1.12 in deno.json.

mitchspano added 3 commits May 2, 2025 10:51
- Introduce setAssignments function to ensure assignmentItems are converted to arrays for proper handling in FlowParser.
- Add getFlowAssignmentInnerNodes method in UmlGenerator to generate inner node content for FlowAssignment, improving UML representation.
- Update tests to validate the correct generation of UML for FlowAssignment nodes, ensuring accurate output for assignment details.
@mitchspano mitchspano merged commit d75bd9a into main May 2, 2025
2 checks passed
@mitchspano mitchspano deleted the assignment_details branch May 2, 2025 16:51
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.

1 participant