Skip to content

refactor: split ThumbRenderer class - #1462

Merged
CyanVoxel merged 10 commits into
mainfrom
thumbnail-refactor
Aug 3, 2026
Merged

refactor: split ThumbRenderer class#1462
CyanVoxel merged 10 commits into
mainfrom
thumbnail-refactor

Conversation

@CyanVoxel

@CyanVoxel CyanVoxel commented Jul 25, 2026

Copy link
Copy Markdown
Member

Summary

Splits up the ThumbnailRenderer class into smaller classes and functions inside a new renderers/ directory and consolidates code inside them (specifically for the functions moved inside the archive.py file, the rest is basically untouched)

NOTE: I'd like to move the renderer.py file into this directory as well, but haven't done so in this PR as a move within the same PR as these changes would result in the moved file losing the git history. That can come later along with several other file renames/moves.

Takes over for #1217, progress towards #1460.

Tasks Completed

  • Platforms Tested:
    • Windows x86
    • Windows ARM
    • macOS x86
    • macOS ARM
    • Linux x86
    • Linux ARM
  • Tested For:
    • Basic functionality
    • PyInstaller executable

@CyanVoxel CyanVoxel added this to the Alpha v9.6.2 milestone Jul 25, 2026
@CyanVoxel CyanVoxel added the Type: Refactor Code that needs to be restructured or cleaned up label Jul 25, 2026
@CyanVoxel CyanVoxel added Type: UI/UX User interface and/or user experience Priority: Medium An issue that shouldn't be be saved for last Status: Review Needed A review of this is needed labels Jul 25, 2026
@CyanVoxel CyanVoxel moved this to 🏓 Ready for Review in TagStudio Development Jul 25, 2026
@CyanVoxel CyanVoxel moved this from 🏓 Ready for Review to 🚧 In progress in TagStudio Development Jul 25, 2026
@CyanVoxel CyanVoxel removed the Status: Review Needed A review of this is needed label Jul 25, 2026
@CyanVoxel
CyanVoxel marked this pull request as draft July 25, 2026 22:13
@CyanVoxel
CyanVoxel marked this pull request as ready for review July 25, 2026 22:15

@Computerdores Computerdores left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Mostly looks good

FYI: I reviewed under the assumption, that you only extracted the rendering methods in the first commit and didn't change them

Comment thread src/tagstudio/renderers/archive.py Outdated
Comment thread src/tagstudio/renderers/archive.py
Comment thread src/tagstudio/renderers/clip_studio.py Outdated
@CyanVoxel
CyanVoxel merged commit 4de9571 into main Aug 3, 2026
12 checks passed
@github-project-automation github-project-automation Bot moved this from 🚧 In progress to ✅ Done in TagStudio Development Aug 3, 2026
@CyanVoxel
CyanVoxel deleted the thumbnail-refactor branch August 3, 2026 21:35
@CyanVoxel CyanVoxel mentioned this pull request Aug 3, 2026
8 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority: Medium An issue that shouldn't be be saved for last Type: Refactor Code that needs to be restructured or cleaned up Type: UI/UX User interface and/or user experience

Projects

Status: ✅ Done

Development

Successfully merging this pull request may close these issues.

3 participants