feat: recursive subfolder filtering + gallery tree navigation#140
Open
ghosttigerllc-bit wants to merge 1 commit intoComfyAssets:mainfrom
Open
feat: recursive subfolder filtering + gallery tree navigation#140ghosttigerllc-bit wants to merge 1 commit intoComfyAssets:mainfrom
ghosttigerllc-bit wants to merge 1 commit intoComfyAssets:mainfrom
Conversation
…nail sizing - Recursive subfolder filtering: selecting an intermediate folder shows all child images - Gallery tree navigation panel with collapsible folder hierarchy (sticky, resizable) - Thumbnail size controls (S/M/L) for adjustable grid density - Fix path collision when multiple gallery roots share overlapping relative paths - Fix auto-detect mode collapsing nested folders to ambiguous basenames - Security test suite for path traversal edge cases Addresses feedback from ComfyAssets#126. Fixes code review items P1/P2 from ComfyAssets#135. Co-Authored-By: Kai Bowie <kaigtb@proton.me>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
2025/08/) shows all images in child foldersChanges
Backend
database/operations.py: Addedinclude_ancestorsparameter toget_prompt_subfolders()— generates all intermediate path segments for tree renderingpy/api/prompts.py:/subfoldersendpoint accepts?include_ancestors=truepy/api/images.py:/gallery/subfoldersendpoint also accepts?include_ancestors=true;serve_output_imageaccepts optional?root=Nfor future multi-root disambiguation; auto-detect mode preserves full folder paths instead of collapsing to basenamesFrontend
web/js/admin.js: Subfolder dropdown requests hierarchical data and renders with indentationweb/js/gallery.js: Folder tree panel (collapsible, sticky, resizable), subfolder filtering on image grid, S/M/L thumbnail size buttons using inline grid-template-columnsweb/gallery.html: Split-pane layout with independently-scrolling folder tree and image gridTests
tests/test_lora_database.py: 3 new tests forinclude_ancestorsbehaviortests/test_path_security.py: 12 new tests covering symlink escape, path traversal, null bytes, and root index validationTest plan
Addresses feedback from #126 (subfolder filtering + gallery navigation).
Fixes code review items P1 and P2 from #135.
🤖 Generated with Claude Code