POC: Pre-defined products from a subtask - #1999
Draft
iLLiCiTiT wants to merge 7 commits into
Draft
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changelog Description
This is a prove of concept of a feature to show predefined products in publisher.
Additional info
Currently the base of the products is not available in AYON backend so the subtask products are faked and the POC is about the visual side of things.
Subtaks products are shown above create plugins (if there are any). Each item has an icon which reflects if is already created. The items are NOT related to current context but to selected context in context selection. Selecting pre-defined product will disable create plugin that can't create selected product base type and pre-select first create plugin that does allow to create it. The variant is set to empty string and product name is filled with predefined name. There is currently no way how to force the product name as the product name is in charge of the create plugin -> this is something I didn't want to put effort into it now as it affects other addons too.
Screenshots
Context selected
Subtask product selected
Subtask product created
Resolves #1619