2.3.1: Define Core JavaScript Events
>>> [!note] Migrated issue <!-- Drupal.org comment --> <!-- Migrated from issue #3538893. --> Reported by: [d34dman](https://www.drupal.org/user/751698) >>> <ul> <li>Create a unified event bus for <code>flowdrop_ui</code> using native browser events or a lightweight event emitter.</li> <li>Define key events: <ul> <li><code>workflow:loaded</code> &ndash; Fired when a workflow is initialized in the editor.</li> <li><code>workflow:changed</code> &ndash; Fired on any node/edge/parameter modification.</li> <li><code>workflow:save</code> &ndash; Triggered when the user or autosave requests persistence.</li> <li><code>workflow:execute</code> &ndash; Initiates workflow execution in the runner.</li> <li><code>workflow:status</code> &ndash; Broadcasts job progress or completion events.</li> </ul> </li> <li>Ensure the event system is decoupled so that the UI can function with or without server persistence.</li> </ul>
issue