Skip to content

fix(ui): refresh tag categories after editing a parent tag - #1553

Open
shdra06 wants to merge 1 commit into
TagStudioDev:mainfrom
shdra06:fix/edit-tag-refresh-categories-after-parent-edit
Open

shdra06 wants to merge 1 commit into
TagStudioDev:mainfrom
shdra06:fix/edit-tag-refresh-categories-after-parent-edit

Conversation

@shdra06

@shdra06 shdra06 commented Oct 29, 2026

Copy link
Copy Markdown

Summary

Fixes #1551.

When a parent tag is edited from the tag editor, the nested modal's save callback only redrew the parent list (_set_parent_tags). The categories section is derived from the parents' hierarchy, so adding or removing a parent's own parents left the original tag's category exclusions stale until something else triggered _set_categories.

Parent rows now use _on_parent_tag_edited, which refreshes both the parent list and the categories. Category rows already pass _set_categories, so they're unchanged.

Two regression tests open the parent's edit modal through the capsule's on_edit signal, change that parent's parents, and emit saved. One checks that a newly inherited category appears, the other that a removed one disappears. Both fail on main and pass with this change.

Tasks Completed

  • Platforms Tested:
    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested For:
    • Basic functionality
    • PyInstaller executable
    • pytest (317 passed, Python 3.14, QT_QPA_PLATFORM=offscreen)
    • ruff format --check and ruff check
    • pyright on the changed files (0 errors)

I verified this through pytest-qt rather than clicking through the GUI by hand.

🤖 Generated with Claude Code

Editing a parent tag from the tag editor only redrew the parent list, so
categories inherited through that parent's own parents stayed stale until
the original tag was changed. Refresh the category section as well.

Fixes TagStudioDev#1551.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Bug]: Category exclusions don't update when changing the parents of a parent tag

1 participant