- Created test_flux_node.py for debugging and verification
- Tests import structure, node functionality, and ComfyUI integration
- Provides clear troubleshooting guidance for users
- Helps identify issues with node visibility in ComfyUI
- Updated class definition with cleaner formatting
- Maintained all 13 presets with improved spacing
- Preserved all functionality and node structure
- Kept NODE_CLASS_MAPPINGS and NODE_DISPLAY_NAME_MAPPINGS intact
- Clean and simplified import structure
- Maintains robust error handling for missing dependencies
- Ensures FluxContextPreset is always available
- Updated ASCII art formatting
- Updated import structure in __init__.py to handle both relative and absolute imports
- Added robust error handling for missing dependencies
- Prioritized FluxContextPreset import to ensure it always loads
- Removed duplicate node mappings from flux_context_preset.py
- Added proper display name mapping for all nodes
- Enhanced error handling with graceful fallback for missing dependencies
The Flux Context Preset node now appears correctly in ComfyUI under 'Polymath/Flux' category.
- Replace button widget with embedded clickable icon in top-right corner of node
- Add circular 📋 icon with purple gradient background and white border
- Implement hover effects with scaling and purple glow
- Add tooltip showing 'Show All Presets' on hover
- Use absolute positioning for seamless integration with node UI
- Add click event protection with stopPropagation()
- Implement fallback system with MutationObserver for DOM element detection
- Add memory management to prevent observer leaks
- Include duplicate prevention for icon replacement
The icon now appears as a native part of the node interface, providing intuitive access to the preset revelation modal.
- Created flux_context_preset.py with 13 predefined image transformation presets
- Added dropdown selection for presets (Teleport, Move Camera, Relight, Product, Zoom, Colorize, Movie Poster, Cartoonify, Remove Text, Haircut, Bodybuilder, Remove Furniture, Interior Design)
- Included additional multiline text field for custom instructions
- String output combines selected preset with additional text
- Added web/flux_context_preset.js with modal window to reveal all system prompts
- Updated __init__.py to register the new node
- Features beautiful dark theme styling matching ComfyUI aesthetic