- Introduced `_default_subject_kind` and `_legacy_subject_kind_for_name` functions to determine the kind of subject based on type.
- Added `_normalize_subject_kind` function to normalize subject kind values.
- Updated `_normalize_type_data` and `_serialize_type_data` to include subject kind in the type data structure.
- Enhanced `_flatten_canonical_library` to handle subject kind when flattening library data.
- Modified `_ensure_type` to set subject kind based on provided subject type and name.
- Updated type validation in `_looks_like_single_type_payload` to include subject kind.
- Adjusted `compose_save_type_settings` to properly handle subject kind during type settings saving.
- Updated the PromptGenerator class to handle prompt input updates and communicate with the frontend.
- Enhanced the UI behavior of the PromptGenOptions and PromptGenerator nodes to ensure proper widget visibility and state management.
- Updated `filterPromptDropdown` function to accept an options parameter for preserving dangling selections.
- Modified calls to `filterPromptDropdown` in both `prompt_manager.js` and `prompt_manager_advanced.js` to maintain user selections when loading prompts asynchronously.
- Introduced flags to manage workflow restoration state, preventing unwanted changes to selections during the restore process.
- Ensured that category and prompt widgets retain their values when the current selection is not present in the filtered options.
Co-authored-by: Copilot <copilot@github.com>
- Updated variable names, comments, and documentation to replace "workflow_data" with "recipe_data" across multiple files.
- Adjusted input and output types in nodes to reflect the new naming convention.
- Modified the functionality of nodes to ensure compatibility with the new "recipe_data" structure.
- Ensured that all references to workflow extraction and management are now aligned with the recipe terminology.
- Updated node types in workflow_builder_simple.json to replace WorkflowGenerator with RecipeExtractor and RecipeBuilder.
- Modified prompt_extractor.py to include RecipeExtractor and RecipeRenderer in prompt handling logic.
- Enhanced workflow_extraction_utils.py to support Recipe nodes alongside Workflow nodes for embedded data extraction.
- Ensured backward compatibility with legacy WorkflowGenerator while transitioning to Recipe-based workflows.
- Introduced a new workflow JSON file `workflow_builder_simple-hirez.json`
- Configured nodes for image processing including WorkflowRenderer, SaveImage, and WorkflowManager
- Implemented input and output links for workflow data and image handling
- Defined properties and widgets for user interaction and customization
- Implemented PromptManager for saving and loading prompts by category with backup functionality.
- Added API endpoints for managing prompts, including saving, deleting, and importing prompts.
- Introduced WorkflowSaver to capture and save workflow_data snapshots into prompt library entries.
- Included thumbnail generation from images for saved workflows.
- Enhanced error handling and validation for API requests.