* [refactor] move workflow domain to its own folder
* [refactor] Fix workflow platform architecture organization
- Move workflow rendering functionality to renderer/thumbnail domain
- Rename ui folder to management for better semantic clarity
- Update all import paths to reflect proper domain boundaries
- Fix test imports to use new structure
Architecture improvements:
- rendering → renderer/thumbnail (belongs with other rendering logic)
- ui → management (better name for state management and UI integration)
This ensures proper separation of concerns and domain boundaries.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* [fix] Resolve circular dependency between nodeDefStore and subgraphStore
* [fix] Update browser test imports to use new workflow platform paths
---------
Co-authored-by: Claude <noreply@anthropic.com>
- Updated all imports from '@comfyorg/litegraph' to '@/lib/litegraph/src/'
- Replaced deep dist imports with direct source paths
- Updated CSS import in main.ts
- All imports now use the @ alias consistently
* Revert "Revert "Fix undo / redo filling with empty steps (#1649)" (#1652)"
This reverts commit 7623810166.
* Update test expectations
* Add dirty flag if workflow is not persisted
* Add dirty flag to other UI areas for new workflows
* Remove redundant code
* Fix regression: undo / redo steps lost on refresh
The history is still be cleared, but any changes made by issuing undo / redo comands prior to refresh are not lost.
* Update test expectations
Partially reverts f8cc2c0d67 - adds dirty flags back to unsaved workflows.
---------
Co-authored-by: filtered <176114999+webfiltered@users.noreply.github.com>
* Allow future extensions of added schema objects
* Add explicit versioning to zod schemas
* Extend schema 0.4 with new fields in extras
- Allows Reroutes without using schema v1
- Reroute data is retained when using old versions - simply not displayed
* Add Reroute undo/redo support
* Add basic menu
* Add workflows/edit to menu bar
* Add command store
* Fix z-index
* Fix beta menu setting switch
* nit
* Drop to center
* Fix command invocation
* Any keyboard layout for Ctrl + V, Z, Y...
`if` conditioning changed for better support any keyboard layout for shortcuts
* Format
---------
Co-authored-by: Khachatur Avanesian <jailbreakvideo@gmail.com>
* Do not report missing nodes/models warning repeatedly
* Add playwright tests
* cast finalOptions, add comments to interface
* Use old menu in tests to not break top left click methods
* Assert no dialog on undo and on redo separately
* nit
* nit
---------
Co-authored-by: christian-byrne <abolkonsky.rem@gmail.com>
* fix: vite primevue/treenode import error
* refactor: remove useless @ts-ignore and replace with @ts-expect-error
* build(tsconfig): enable incremental to speed up secondary time type check
Fixes an issue where under certain conditions, the ComfyUI custom undo / redo functions would not run when intended to.
When trying to undo an action like deleting several nodes, instead the native browser undo runs - e.g. a textarea gets focus and the last typed text is undone. Clicking outside the textarea and hitting ctrl + z again just keeps doing the same thing.