ynput / ayon-frontend

Codebase of AYON server web interface
Apache License 2.0
17 stars 14 forks source link

Editor: Setting tool override does not persist the inherited values #546

Closed BigRoy closed 1 month ago

BigRoy commented 5 months ago

Story

When in the Project Editor and you want to enable or change the used tools on a folder or task that currently does not have any overrides it by default show "inherited" as value.

When opening the dropdown to change the tools as an override that dropdown does not include the "inherited" tools (from e.g. the project anatomy or parent folders) and thus as soon as you click one tool, then the override you're making is completely removing all inherited tools as well instead of just "adding the one you clicked"

In the below steps the inherited value is "arnold" yet just 'adding' "mgear" from the dropdown also removed "arnold" because it doesn't actually 'inherit' it in the dropdown by default.

image

image this maybe also showns a line height issue in the dropdown menu if the window is small? screenshot is from 1.2.3+202406201258 with firefox with window resized small

image

To reproduce

Steps to reproduce the behavior:

  1. Add tools to project anatomy
  2. Create a new folder
  3. Save + refresh (just to make sure it's not an optimistic update issue)
  4. Select folder, add a different tool to that folder to add it.
  5. Now it also has lost its inherited values

Expected behavior

I would expect by default the inherited values to be visible in the tools dropdown (and selected) and as soon as you change one selection e.g. disabling/enabling a tool then the result of that is the overridden value.

Environment

Additional context

martastain commented 5 months ago

That seems to me like a reasonable request.

@Innders Maybe we could pre-populate the dropdown as soon as user opens it? But i that case, we should probably commit the value only if there is a change.

I'd like to also summon @iLLiCiTiT here - there are plans to change applications and tools behavior completely so maybe we'd be fixing something that will change soon.

Anyways - this could be useful for other inherited attributes as well

iLLiCiTiT commented 4 months ago

I'd like to also summon @iLLiCiTiT here - there are plans to change applications and tools behavior completely so maybe we'd be fixing something that will change soon.

That is true, but list attributes will still exist.

Innders commented 4 months ago

So let's say you open the dropdown, how should it behave? If the inherited values become preselected, what happens if you don't want those values now? Clicking away can only save those new values.

Maybe that's not an issue as you can always just "clear to inherited" again.

BigRoy commented 4 months ago

So let's say you open the dropdown, how should it behave? If the inherited values become preselected, what happens if you don't want those values now? Clicking away can only save those new values.

You'd deselect them, yes. There could maybe be a 'clear all' AND a 'back to inherited' (or whatever) button but admittedly the list showing what the values are now is what I'd expect, and if I want to change it I'd then change it from the current state.

mkolar commented 1 month ago

With the move of tools to settings. I'd say this is now obsolete

BigRoy commented 1 month ago

With the move of tools to settings. I'd say this is now obsolete

Agreed