YN-0598: Launcher: color code / show status icons next to folder names#1895
YN-0598: Launcher: color code / show status icons next to folder names#1895mahesh-ynput wants to merge 21 commits into
Conversation
…ve any status - Implemented to show folder status with color to FoldersWidget with new param 'apply_status_color' if this true it paint folder_name / folder_status_with_color - Created FolderStatusColorDelegate to folders_widget.py to paint this new feature implemented. - Added status field where needed to hierarchy model in hierarchy.py - Passed 'apply_status_color' for folders_widget in Launcher to make new feature in view
- display status icons with tooltips in status column - cache status icons - update hierarchy_page.py to use status column param - remove custom status color delegate which no loger needed - adjust tree view header for status column layout
|
@BigRoy, If this approach is right then I'll just replicate same for tasks widget. |
|
Looks good to me. @iLLiCiTiT any code notes? |
There was a problem hiding this comment.
Pull request overview
This PR adds folder status awareness to the Launcher hierarchy UI by extending the folders model/widget to optionally include a dedicated status column (icon + tooltip) and by exposing folder status on FolderItem.
Changes:
- Add
statustoFolderItemand propagate it through hierarchy-to-item conversion. - Extend
FoldersQtModel/FoldersWidgetto optionally add a Status column with status icons and status-based foreground coloring. - Enable the status column in Launcher’s hierarchy page and expose
get_project_status_itemson the Launcher controller.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 5 comments.
Show a summary per file
| File | Description |
|---|---|
| client/ayon_core/tools/utils/folders_widget.py | Adds optional status column + status icon/tooltips + status-based coloring in the folders tree. |
| client/ayon_core/tools/utils/init.py | Exports FOLDER_STATUS_ROLE for external use. |
| client/ayon_core/tools/launcher/ui/hierarchy_page.py | Enables the status column for Launcher folders view. |
| client/ayon_core/tools/launcher/control.py | Adds get_project_status_items passthrough to ProjectsModel. |
| client/ayon_core/tools/common_models/hierarchy.py | Extends FolderItem with status and fills it from hierarchy/entity payloads. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
…'s not giving any error/bug because it's using get_folders_hierarchy which return full data
…icons_YN-0598' into launcher-color-code-show-status-icons_YN-0598
…dget - Adjusted luncher window size and tasks_widget stretch as we have added new column. - removed`data()` override for `ForegroundRole` from folders_widget.py it was added previously when I added status text shown with color, but we're only showing icon
|
@BigRoy , I need your suggestion here can we have mixin class or helper functions? as both have almost identical code logics. |
BigRoy
left a comment
There was a problem hiding this comment.
I need your suggestion here can we have mixin class or helper functions? as both have almost identical code logics.
Looking at the code I hardly see where mixin would really gain you a lot - especially because the needed tweaks are scattered across multiple methods and I see relatively little big chunks of code that could really improve much from a helper function - but maybe I'm skimming the code too quickly.
@iLLiCiTiT thoughts?
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
Co-authored-by: Jakub Trllo <43494761+iLLiCiTiT@users.noreply.github.com>
…://github.com/ynput/ayon-core into launcher-color-code-show-status-icons_YN-0598
…w has default as True
…em map in folders and tasks
…lity through dedicated methods

Please describe the feature you have in mind and explain what the current shortcomings are?
In Launcher, color code folders and tasks by their status and/or show status icons next to them.
This ticket overlaps with #917
Additional context:
link to discussion on Discord
(might be a private channel)
_This issue was automatically created from AYON ticket YN-0598
Fix #1765