ynput / ayon-core

Apache License 2.0
18 stars 30 forks source link

Add simple Create Project Structure launcher action #679

Open BigRoy opened 1 week ago

BigRoy commented 1 week ago

Changelog Description

Add simple Create Project Structure launcher action.

image

Which creates the folder structure as defined in project settings: ayon+settings://core/project_folder_structure

image

Additional info

It currently only shows when you're in a project in the launcher but have NO folder or task selected to avoid clutter in launcher.

The label unfortunately is a bit too long to be nicely displayed by default, see screenshot. Any ideas for better icon and shorter label that doesn't get cut off?


This feature request came up a few times:

Testing notes:

  1. Update core addon
  2. Run the launcher action when you enter a project.
  3. Folders should now be generated as per settings.
alainxi commented 1 week ago

Any ideas for better icon and shorter label that doesn't get cut off?

Your icon choice is already very good.

Shorter labels : The "disk" concept is important, to avoid confusion with the project's folder structure in database. Ideas :

LiborBatek commented 4 days ago

I can think of these names:

Create Dir Create PRJ Project Dir

BigRoy commented 4 days ago

I think maybe it's also worth discussing whether it might be nice to shrink the font sizes just a tad there to ensure there's less cut off. I often see it on other applications as well - which may fix the chosen names here as well?

@iLLiCiTiT what do you think?

LiborBatek commented 4 days ago

@BigRoy btw what happens if user trigger Create Project... if those already existing?? I hope it will just skip the creation :) ?

BigRoy commented 4 days ago

@BigRoy btw what happens if user trigger Create Project... if those already existing?? I hope it will just skip the creation :) ?

Not sure - since I didn't implement that code myself. But I suspect it would just generate the folders on disk that currently do not exist yet - so if you've adjusted your studio settings to have new folders in the template - then those get added.

Are you afraid to click the button? If so, what is making you scared and what could we do to make it feel less scary? A tooltip? A pop-up before the creation? (Like a confirmation? Which might make it feel more scary even?)

LiborBatek commented 4 days ago

@BigRoy btw what happens if user trigger Create Project... if those already existing?? I hope it will just skip the creation :) ?

Not sure - since I didn't implement that code myself. But I suspect it would just generate the folders on disk that currently do not exist yet - so if you've adjusted your studio settings to have new folders in the template - then those get added.

Are you afraid to click the button? If so, what is making you scared and what could we do to make it feel less scary? A tooltip? A pop-up before the creation? (Like a confirmation? Which might make it feel more scary even?)

yeah, some popup would do! informing user whats gonna happen...