Skip to content

YN-0598: Launcher: color code / show status icons next to folder names#1895

Open
mahesh-ynput wants to merge 21 commits into
ui-qt-luncherfrom
launcher-color-code-show-status-icons_YN-0598
Open

YN-0598: Launcher: color code / show status icons next to folder names#1895
mahesh-ynput wants to merge 21 commits into
ui-qt-luncherfrom
launcher-color-code-show-status-icons_YN-0598

Conversation

@mahesh-ynput

@mahesh-ynput mahesh-ynput commented Jun 13, 2026

Copy link
Copy Markdown
Collaborator

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

…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
@mahesh-ynput

Copy link
Copy Markdown
Collaborator Author

@BigRoy, If this approach is right then I'll just replicate same for tasks widget.

@BigRoy BigRoy requested a review from Copilot June 17, 2026 22:16
@BigRoy

BigRoy commented Jun 17, 2026

Copy link
Copy Markdown
Member

Looks good to me. @iLLiCiTiT any code notes?
Let's add it to the task widget as well then.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

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 status to FolderItem and propagate it through hierarchy-to-item conversion.
  • Extend FoldersQtModel / FoldersWidget to 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_items on 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.

Comment thread client/ayon_core/tools/common_models/hierarchy.py
Comment thread client/ayon_core/tools/common_models/hierarchy.py
Comment thread client/ayon_core/tools/utils/folders_widget.py
Comment thread client/ayon_core/tools/utils/folders_widget.py Outdated
Comment thread client/ayon_core/tools/utils/folders_widget.py Outdated
mahesh-ynput and others added 4 commits June 18, 2026 09:18
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
@ynbot ynbot moved this to Review In Progress in PR reviewing Jun 18, 2026
…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
@mahesh-ynput

Copy link
Copy Markdown
Collaborator Author

@BigRoy , I need your suggestion here can we have mixin class or helper functions? as both have almost identical code logics.

@BigRoy BigRoy left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

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?

Comment thread client/ayon_core/tools/utils/folders_widget.py Outdated
@BigRoy BigRoy added ui type: enhancement Improvement of existing functionality or minor addition labels Jun 18, 2026

@moonyuet moonyuet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM from testing

Image

@github-project-automation github-project-automation Bot moved this from Review In Progress to Merge Requested in PR reviewing Jun 22, 2026
Comment thread client/ayon_core/tools/common_models/hierarchy.py Outdated
@ynbot ynbot moved this from Merge Requested to Review In Progress in PR reviewing Jun 22, 2026
Comment thread client/ayon_core/tools/common_models/hierarchy.py Outdated
Comment thread client/ayon_core/tools/common_models/hierarchy.py Outdated
Comment thread client/ayon_core/tools/utils/folders_widget.py Outdated
Comment thread client/ayon_core/tools/utils/folders_widget.py Outdated
Comment thread client/ayon_core/tools/utils/tasks_widget.py
Comment thread client/ayon_core/tools/utils/folders_widget.py Outdated
Comment thread client/ayon_core/tools/utils/folders_widget.py Outdated
Comment thread client/ayon_core/tools/utils/folders_widget.py Outdated
Comment thread client/ayon_core/tools/utils/tasks_widget.py Outdated
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/S type: enhancement Improvement of existing functionality or minor addition ui

Projects

Status: Review In Progress

Development

Successfully merging this pull request may close these issues.

YN-0598: Launcher: color code / show status icons next to folder names

7 participants