Skip to content

Resize to fit item/task text#213

Draft
th-jyu wants to merge 6 commits intoshotgunsoftware:masterfrom
Treehouse-Digital:minimum-item-screen-width
Draft

Resize to fit item/task text#213
th-jyu wants to merge 6 commits intoshotgunsoftware:masterfrom
Treehouse-Digital:minimum-item-screen-width

Conversation

@th-jyu
Copy link
Copy Markdown
Contributor

@th-jyu th-jyu commented Feb 6, 2026

Ability to set new AppDialog behaviour on how it would fit PublishItem/PublishTask text upon tree rebuild

  • never: the dialog will never auto resize its width (current behaviour)
  • initial: the dialog will auto resize its width once, when the items tree is first populated
  • always: the dialog will auto resize its width every time the items tree is modified (items added/removed)

Tidy up:

  • Extra unintended formatting by ruff
  • Set defaults to match current behaviour
  • Turn off global debug
  • Now that we target 3.9+ consider utilising Python enum

Added

  • fit_width_to_items config (str) with options: "never", "initial", "always"
  • Internal logic to

@codecov
Copy link
Copy Markdown

codecov bot commented Feb 6, 2026

Codecov Report

❌ Patch coverage is 0% with 43 lines in your changes missing coverage. Please review.
✅ Project coverage is 39.89%. Comparing base (9bae2cd) to head (a919eeb).

Files with missing lines Patch % Lines
python/tk_multi_publish2/dialog.py 0.00% 43 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master     #213      +/-   ##
==========================================
- Coverage   40.23%   39.89%   -0.34%     
==========================================
  Files          61       61              
  Lines        5021     5063      +42     
==========================================
  Hits         2020     2020              
- Misses       3001     3043      +42     
Flag Coverage Δ
Linux 39.89% <0.00%> (-0.34%) ⬇️
Python-3.10 39.89% <0.00%> (-0.34%) ⬇️
Python-3.11 39.89% <0.00%> (-0.34%) ⬇️
Python-3.13 39.89% <0.00%> (-0.34%) ⬇️
Python-3.9 39.90% <0.00%> (-0.34%) ⬇️
Windows 39.89% <0.00%> (-0.34%) ⬇️
macOS 39.89% <0.00%> (-0.34%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@th-jyu th-jyu force-pushed the minimum-item-screen-width branch from 3603fb7 to f97e857 Compare February 6, 2026 17:12
commit 009277877e4fa66fa41865dad2342a898c9e553f
Author: Joseph Yu <joseph.yu@treehousevfx.studio>
Date:   Mon Feb 2 18:53:18 2026 +0000

    Default to always fit width

commit 4c181b37463220c13a563ae10fbd98745cb97d84
Author: Joseph Yu <joseph.yu@treehousevfx.studio>
Date:   Fri Jan 30 13:06:21 2026 +0000

    Fixed to get sizeHint from widget

commit b2403a6ac2678b1d8233deb778621fcca425d4e5
Author: Joseph Yu <joseph.yu@treehousevfx.studio>
Date:   Fri Jan 30 12:32:09 2026 +0000

    Moved into context manager

commit f97f279c5798c4b7390401d0f1005367be0b37b4
Author: Joseph Yu <joseph.yu@treehousevfx.studio>
Date:   Thu Jan 29 21:09:49 2026 +0000

    Initial in dialog
@th-jyu th-jyu force-pushed the minimum-item-screen-width branch from a919eeb to 4963cb9 Compare February 9, 2026 19:52
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.

1 participant