ComfyUI_frontend icon indicating copy to clipboard operation
ComfyUI_frontend copied to clipboard

[refactor] Extract dialog composables and add showSmallDialog helper

Open viva-jinyi opened this issue 1 week ago • 5 comments

Summary

  • Added showSmallDialog helper function to dialogService for reusable small dialog styling
  • Extracted showLoadWorkflowWarning and showNodeConflictDialog into independent composables
    • useMissingNodesDialog
    • useNodeConflictDialog
  • This is foundational work for also displaying MissingModels warning in a small modal

Changes

  • dialogService.ts: Added showSmallDialog helper, removed migrated functions
  • useMissingNodesDialog.ts: New composable for Missing Nodes dialog
  • useNodeConflictDialog.ts: New composable for Node Conflict dialog
  • Migrated existing usages to the new composable pattern

🤖 Generated with Claude Code

viva-jinyi avatar Nov 23 '25 15:11 viva-jinyi