- Split app.py into route blueprints (files, layers, images, polygon, mask, krita) - Create services layer (polygon_storage, comfyui, file_browser) - Extract config constants to config.py - Split templates into Jinja partials (base, components, modals) - Add browse dialog for visual file navigation - Add /api/browse endpoint for directory listing
- Add /api/image/masked endpoint that applies mask as alpha channel - Simplify mask preview modal: just toggle between 'With Background' and 'Masked Only' - Remove complex CSS mask/blend mode approach - Server returns pre-composited masked image (transparent where mask is black)
- Added logging throughout the application - Updated mask extraction to load and pass base image to ComfyUI - Added polygon overlay support for mask extraction - Added urllib.parse import for URL encoding - Better error handling and status reporting
- Routes for file operations, layer management, polygon drawing - Mask extraction endpoint with ComfyUI integration - Krita integration endpoints - Basic API tests