From 903e5465d5b1c133fcd1dbabe7499b84358a1071 Mon Sep 17 00:00:00 2001 From: Julien Calixte Date: Thu, 2 Jul 2026 23:52:03 +0200 Subject: [PATCH] refactor(state-machine): support multiple lifecycles per blueprint Blueprint.stateMachine becomes stateMachines[], the viewer renders each machine in its own panel, and StateMachine draws self-loops (a === b) for recurring transitions that don't change state. Existing blueprints move to the array form unchanged. --- src/components/BlueprintViewer.vue | 25 ++++++++++++++++++------- src/components/StateMachine.vue | 20 ++++++++++++++++++++ src/data/blueprint.ts | 5 ++++- src/data/calendarBlueprint.ts | 2 +- src/data/gridBlueprint.ts | 2 +- src/data/listBlueprint.ts | 2 +- src/data/passwordAuthBlueprint.ts | 2 +- src/data/rememberMeBlueprint.ts | 2 +- 8 files changed, 47 insertions(+), 13 deletions(-) diff --git a/src/components/BlueprintViewer.vue b/src/components/BlueprintViewer.vue index 42d9488..96ec324 100644 --- a/src/components/BlueprintViewer.vue +++ b/src/components/BlueprintViewer.vue @@ -164,15 +164,22 @@ const funcCount = computed(() => props.blueprint.functions.length) - -