Skip to content
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

Expand folders when searching in the folder widgets (Loader + Launcher). #588

Conversation

BigRoy
Copy link
Collaborator

@BigRoy BigRoy commented Jun 3, 2024

Changelog Description

Expand folders when searching in the folder widgets (Loader + Launcher).

Additional info

I'm not entirely sure whether the change implemented here is 'correct' according to the model/view separation logic we want to have in tools, but it shows the behavior artists in our studio we like more (and is logic that behaved similarly in OpenPype actually).

Without this PR when searching in the folder widget it would not expand any folders:

image

With this PR it defaults to auto-expanding all:
image

The benefit to this is that when searching you automatically can see all the results and directly can see whether you found what you're looking for or should filter more or not.

Testing notes:

  1. Use this branch in dev mode for ayon core
  2. Launcher and loader tool should now auto-expand all folders when typing in the filter field.

@ynbot ynbot added size/XS type: enhancement Improvement of existing functionality or minor addition labels Jun 3, 2024
@BigRoy BigRoy requested a review from iLLiCiTiT June 3, 2024 19:23
@BigRoy
Copy link
Collaborator Author

BigRoy commented Jun 5, 2024

Let me know what you think about the code @iLLiCiTiT - pointers are welcome to restructure or move this logic elsewhere.

Copy link
Member

@iLLiCiTiT iLLiCiTiT left a comment

Choose a reason for hiding this comment

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

I don't think there is better solution without storing information on each index "did user expand this" 🙂 .

@iLLiCiTiT iLLiCiTiT merged commit 8daed6f into ynput:develop Jun 6, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
size/XS type: enhancement Improvement of existing functionality or minor addition
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants