[Enhancement]: Clear Untagged Only When Changing Tag Filter #86
Labels
No labels
Kind/Bug
Kind/Feature
Priority/High
Priority/Medium
Reviewed/Confirmed
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-collab/bulk-image-organizer#86
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Affected area
Tag Filter
Current behavior
When
Untagged Onlyis checked and a new tag filter is applied no images are displayedDesired improvement
Clear the
Untagged Onlycheckbox any time a tag filter is applied.References
No response
Fixed on branch
0.1.40/issue-86-91-tag-filter-fixes(queued for PR tomain, not yet opened).TagFilterDropdown._move_tag()(the normal click-to-filter path) already cleared "Untagged Only" when a tag filter was applied. The right-click "make this the only active filter" path (_set_exclusive_active) applies a tag filter too but skipped that clear, so combining it with a stale Untagged Only checkbox left the grid showing nothing. Factored the clear into a shared_clear_untagged_only()helper used by both paths.Added regression tests in
tests/test_tag_filter_enhancements.pyfor both paths.Closing — fix implemented and tested.
When a tag filter is active and 'Untagged Only' is checked, the filters update correctly. The tag element in the
Tag Filtermenu is cleared from the 'Active' heading but not redrawn in the 'Available' menu until the tag filter dropdown is closed and re-opened.Good catch, and thanks for the precise repro — found the actual cause this time. Fixed on branch
0.1.47/issue-111-86-64-89-feedback-fixes.The first round of this fix only patched the tag-click paths (
_move_tag/_set_exclusive_active). The path you exercised — checking Untagged Only while a tag filter is active — goes through a separate handler,TagFilterDropdown._on_untagged_only(), which clearedself._activebut never moved those tags back intoself._available. So they vanished from the dropdown entirely until you closed and reopened it, which rebuilds the lists from scratch and papers over the gap. Fixed to mirror the same move-back behavior the other two paths already had. Added a regression test (test_tag_filter_untagged_only_moves_cleared_active_tag_to_available) that asserts the tag reappears in Available immediately, without needing to reopen the dropdown.Closing again — let me know if it still doesn't redraw correctly for your case.