Skip to content

Add mxcli beautify — relayout generated microflows into the hand-built Studio Pro house style #724

Description

@MohamedGamalEzzatAli

Summary

mxcli-generated validation microflows are functionally correct but their
diagram layout does not match a hand-built Studio Pro microflow: the
generator is a single left‑to‑right x‑cursor with a minimal‑merge model and
diagonal branch routing, whereas hand‑built flows use a rail layout (straight
top spine, columns dropping down, a shared bottom‑rail merge grid folding up
into the end).

Proposal

Add an opt‑in, model‑preserving pass — mxcli beautify [Module.Name ...] — that
recognises the validation guard‑chain family and re‑lays it into the house
style. It changes only geometry, connection anchors and merge nodes (never
execution semantics), generalises to N guards, is idempotent, and leaves shapes
it doesn't recognise untouched. Design details in
docs/11-proposals/PROPOSAL_microflow_relayout_beautify.md.

Includes golden‑coordinate, idempotency and no‑op tests; verified end‑to‑end on
a Mendix 11.6.7 project (mx check: 0 new errors).

Depends on the microflow read/write fidelity fixes (#723) — the
beautified output needs faithful size/rule round‑trips to be correct.

A branch is ready; happy to open a PR after the fixes land. Filed on behalf of
Omnix International LLC.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions