- Added try-except blocks in post_prompt to handle TypeErrors during prompt validation, allowing for fallback to an older signature.
- Implemented similar error handling in the origin_execute function to manage potential TypeErrors, ensuring robust execution flow.
- Improved logging to capture issues with function signatures, aiding in debugging.
These changes improve the resilience of the application when dealing with prompt and execution validation.
- Updated the swizzle_execute function to be asynchronous, allowing for non-blocking execution of the origin_execute function.
- Added missing parameters for pending_async_nodes in the swizzle_execute function call.
- Ensured that the result from origin_execute is awaited, improving the handling of asynchronous operations.
These changes enhance the performance and responsiveness of the execution handling in the application.
- Updated the post_prompt function to be asynchronous, allowing for non-blocking execution when validating prompts.
- Adjusted calls to post_prompt in send_prompt and comfy_deploy_run to await the asynchronous execution, ensuring proper handling of prompt submissions.
- Commented out unused prompt construction code to streamline the function.
These changes enhance the performance and responsiveness of prompt handling in the application.
- Updated the post_prompt function in custom_routes.py to retrieve and validate a prompt_id from the incoming JSON data, defaulting to a new UUID if not provided.
- Adjusted the validation call to use prompt_id alongside the prompt, ensuring proper identification and processing of prompts.
These changes enhance the functionality of prompt handling within the application.
- Updated the save method in ConfigDialog to be asynchronous, allowing for smoother handling of configuration saves.
- Added a new function to refresh the workflow list if the sidebar is open, ensuring the UI reflects the latest data after configuration changes.
- Made workflowsState globally accessible for improved state management across components.
- Adjusted the height of the workflows list for better UI layout.
These changes improve the user experience by ensuring that the workflow list is up-to-date and enhancing the overall responsiveness of the configuration dialog.
- Introduced a new endpoint in custom_routes.py for fetching workflows by ID, including authorization checks and error handling.
- Updated workflow-list.js to support fetching and displaying workflow data upon user interaction, including loading indicators and error handling.
- Enhanced the createWorkflowItem function to accept additional parameters for improved data handling and user feedback.
These changes improve the user experience by enabling seamless workflow retrieval and interaction within the application.
- Introduced a new workflow-list.js file to manage workflows, including fetching, displaying, and searching workflows.
- Enhanced the custom_routes.py file with a new endpoint for retrieving workflows, ensuring proper authorization and query parameter handling.
- Updated index.js to initialize the workflows list and integrate search functionality within the UI.
These changes improve the user experience by allowing efficient management and retrieval of workflows in the application.
- Introduced new endpoints for creating workflows and versions in the custom_routes.py file.
- Updated the deployWorkflow function in index.js to include apiUrl in the request body and handle workflow versioning.
- Improved error handling for API requests and ensured required fields are validated before processing.
- Enhanced user feedback during deployment with updated success messages.
These changes streamline workflow management and improve the overall deployment process within the application.
- Added a new endpoint for handling authentication responses in the UploadQueue class.
- Updated the deployWorkflow function to include apiUrl in the configuration checks.
- Refactored API calls to use the new auth-response endpoint, ensuring proper request handling.
- Improved logging for better debugging during workflow deployment.
These changes streamline the authentication process and enhance the overall API interaction within the application.
- Standardized formatting for CustomEvent dispatches to enhance consistency.
- Simplified async function prompts and improved filtering logic for existing input IDs.
- Enhanced readability by restructuring multiline statements and ensuring consistent indentation.
- Added error handling for deployment processes and improved dialog display methods.
These changes aim to improve maintainability and clarity of the codebase.
- Added support for video previews alongside existing image previews.
- Introduced helper functions to detect video URLs and display media accordingly.
- Updated URL widget handling to show the appropriate media type based on the input URL.
- Improved error handling for media loading failures.
This change enhances the user experience by providing a seamless way to preview both images and videos.
- Added 'default_value_url' parameter to allow fetching videos from a specified URL if the input_id is not a URL.
- Updated the logic to handle video fetching, ensuring it uses the correct URL based on the input.
- Improved the return structure for optional parameters, including the new 'default_value_url' with image preview support.
This change enhances flexibility in video input handling for the ComfyUI Deploy.
- Implements integer slider node for ComfyUI Deploy
- Returns INT type instead of FLOAT for proper integer input compatibility
- Uses int(round(float(input_id))) for robust conversion
- Default range 0-10 with step=1 for integer appropriateness
- Includes proper range validation and error handling
- Frontend and API support already exists
Fixes COM-1041
Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
* feat: enhance apply_random_seed_to_workflow function to support KSampler node type and handle fixed seed settings
* refactor: add flag to skip randomization in apply_random_seed_to_workflow for KSampler nodes
* tweak
* feat: add ComfyUIDeployExternalSeed node for generating random seeds with configurable limits
* refactor: update ComfyUIDeployExternalSeed to use control options for seed generation
* feat: add default_value input for ComfyUIDeployExternalSeed node to enhance seed configuration
* test
* refactor: rename lower_limit and upper_limit to min_value and max_value in ComfyUIDeployExternalSeed for clarity
* refactor: update default_value handling and control options in ComfyUIDeployExternalSeed for improved seed generation logic
* refactor: enhance seed generation logic in ComfyUIDeployExternalSeed by refining control handling and default_value checks
* refactor: update description for default_value in ComfyUIDeployExternalSeed to clarify usage and behavior
* refactor: update upload completion logic to rely on UploadQueue worker for final SUCCESS status
* refactor: clean up commented-out code in upload completion logic
* Fix preview image loading and add support for 3D model uploads
* skip: sending the upload status, make sure, we are also sending the success status after all files is uploaded