ynput / ayon-frontend

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

Attributes page make commiting save clearer #363

Open mkolar opened 6 months ago

mkolar commented 6 months ago

I've been caught out a few time already after creating a new attribute only to then realize that it's nowhere to be found. turns out you have to confirm the attribute creation twice.

  1. on the actual modal during it's creation image
  2. On the Attributes page again. image

Even though it is nice I can make multiple attributes, check if everything is ok and only then commit them all to the database, I have to say that we probably overdid it here with the safety mechanism.

Proposal:

I'd completely remove the button about saving attribute changes from the attributes page. Or have it commit automatically when confirming the modal

martastain commented 6 months ago

There's also the thing that save button also confirms the ordering. It is easy to reorder attributes by mistake so it shouldn't commit whenever you do that.

BigRoy commented 6 months ago

I'd completely remove the button about saving attribute changes from the attributes page. Or have it commit automatically when confirming the modal

There's also the thing that save button also confirms the ordering. It is easy to reorder attributes by mistake so it shouldn't commit whenever you do that.

I wouldn't expect it to suddenly 'save' any other changes I might have been making locally that were still unsaved - so like @martastain describes, I wouldn't just force commit it on Create attribute.

Not sure if changing the label from "Create attribute" to "Add attribute" may somewhat help the idea that it's not automatically creating it?

Also I would've expected that full line for the new unsaved attribute to be bright blue, similar to unsaved changes in the Project Editor. But now it just appears selected and then I agree, it does look "saved" already compared to other editors maybe?

Innders commented 6 months ago