Skip to content

refactor(preview_panel): mvc split #952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

Computerdores
Copy link
Collaborator

@Computerdores Computerdores commented Jun 7, 2025

Summary

Splits the current preview panel into View and Controller in accordance with the proposal in #950.

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 the Type: Refactor Code that needs to be restructured or cleaned up label Jun 7, 2025
@Computerdores Computerdores marked this pull request as ready for review June 7, 2025 21:59
@Computerdores Computerdores moved this to 🏓 Ready for Review in TagStudio Development Jun 7, 2025
@Computerdores
Copy link
Collaborator Author

Should be ready for review now

@CyanVoxel CyanVoxel added the Status: Review Needed A review of this is needed label Jun 7, 2025
@CyanVoxel CyanVoxel moved this from 🏓 Ready for Review to 👀 In review in TagStudio Development Jul 3, 2025
@CyanVoxel CyanVoxel self-assigned this Jul 3, 2025
Copy link
Member

@CyanVoxel CyanVoxel left a comment

Choose a reason for hiding this comment

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

Great work on this! Everything looks good for the most part, just found one bug with the preview panel - when updating the name of a tag, visually it doesn't update and instead throws this error:

Traceback (most recent call last):
  File "/Users/cyanvoxel/Files/GitHub/TagStudio/src/tagstudio/qt/view/widgets/preview_panel_view.py", line 145, in set_selection
    if len(selected) == 0:
       ^^^^^^^^^^^^^
TypeError: object of type 'bool' has no len()

@CyanVoxel CyanVoxel removed the Status: Review Needed A review of this is needed label Jul 9, 2025
@Computerdores
Copy link
Collaborator Author

fixed!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Refactor Code that needs to be restructured or cleaned up
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

2 participants