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

Redefine FileWidget using Tray Publisher #25

Merged
merged 32 commits into from
Jan 24, 2025

Conversation

ccaillot
Copy link
Contributor

@ccaillot ccaillot commented Dec 20, 2024

Linked to #27

Include

  • One Widget which manage Representations and Reviews

image

Setting

You can enable/disable to authorize reviews in settings : project_settings/traypublisher/simple_creators

image

@ccaillot ccaillot marked this pull request as ready for review January 22, 2025 16:32
@ccaillot
Copy link
Contributor Author

@hfarre, je te laisse tester

@hfarre
Copy link
Contributor

hfarre commented Jan 23, 2025

Small visual retake if possible:
image

Avoid to have a scroll bar if there are to many autorized extension.

Maybe put a return to the line in case there are a certain number of extension ?

@hfarre
Copy link
Contributor

hfarre commented Jan 23, 2025

I created an image like this:
image

But I got this once it is created, is this normal ?:
image

@hfarre
Copy link
Contributor

hfarre commented Jan 23, 2025

Error found as I did as follow:

I drag and drop 2 times the same file. And drag it one under the other
image

As I published, I got:
image

@ccaillot
Copy link
Contributor Author

ccaillot commented Jan 24, 2025

@hfarre tout semble etre fixé, je te laisse pull les changements et re-tester

@ccaillot ccaillot changed the base branch from main to release/4.0.20 January 24, 2025 10:15
@hfarre
Copy link
Contributor

hfarre commented Jan 24, 2025

Parfait, je m'en vais tester ça !

@hfarre
Copy link
Contributor

hfarre commented Jan 24, 2025

Lors d'un publish classique d'une image en Repr/Review, il y a une erreur dans l'integrate asset:
image
image

@hfarre
Copy link
Contributor

hfarre commented Jan 24, 2025

J'ai une question de fonctionnement
J'ai glissé l'élément 1, puis desactivé l'oeil, il est donc passé en violet.
Je glisse l'élément 2 pour en faire l'element de review:
image

Mais l'élément 1 passe en orange, ce qui signifie que 1 sera review+repre et 2 sera uniquement review ?
Mais si je veux 1 en repre, et 2 en review, 1 ne devrait il pas être en violet du coup ?

@ccaillot
Copy link
Contributor Author

J'ai une question de fonctionnement J'ai glissé l'élément 1, puis desactivé l'oeil, il est donc passé en violet. Je glisse l'élément 2 pour en faire l'element de review: image

Mais l'élément 1 passe en orange, ce qui signifie que 1 sera review+repre et 2 sera uniquement review ? Mais si je veux 1 en repre, et 2 en review, 1 ne devrait il pas être en violet du coup ?

Effectivement, il y a un petit soucis de comprehension de mon cote, je fix ça

@BenSouchet
Copy link
Contributor

BenSouchet commented Jan 24, 2025

J'ai une question de fonctionnement J'ai glissé l'élément 1, puis desactivé l'oeil, il est donc passé en violet. Je glisse l'élément 2 pour en faire l'element de review: image

Mais l'élément 1 passe en orange, ce qui signifie que 1 sera review+repre et 2 sera uniquement review ? Mais si je veux 1 en repre, et 2 en review, 1 ne devrait il pas être en violet du coup ?

Selon moi il y a un changement à faire au niveau des couleurs, cela devrait être
Violet = representation
Orange = Represention & review (same element) donc quand l'oeil est coché
Jaune = Review

Ce qui fait une representation est toujours violet, même avec un enfant review jaune, et ne passe en orange que lorsqu'elle n'a pas d'enfant et que c'est elle même ça propre review.

A voir si ça semble plus cohérant avec cette idée

@BenSouchet
Copy link
Contributor

Ou sinon la legende de Orange doit être: Representation with attached review(s)

@hfarre
Copy link
Contributor

hfarre commented Jan 24, 2025

Dans ce cas, il faudrait peut être une 4eme couleur ?

  • Repre file (no reviewable) with one or more reviewable children

@BenSouchet
Copy link
Contributor

Dans ce cas, il faudrait peut être une 4eme couleur ?

  • Repre file (no reviewable) with one or more reviewable children

A voir mais ça va commencer à faire arbre de noel, je pense que max 3 couleurs c'est bien

@ccaillot ccaillot closed this Jan 24, 2025
@ccaillot ccaillot reopened this Jan 24, 2025
@ccaillot
Copy link
Contributor Author

image

All good ?

@ccaillot
Copy link
Contributor Author

ccaillot commented Jan 24, 2025

Lors d'un publish classique d'une image en Repr/Review, il y a une erreur dans l'integrate asset:

J'ai testé de publié avec jpeg aucun soucis, par contre avec un png. Les Anatomy template de l'integrateAsset nécessite d'etre mis a jour afin de pouvoir gérer cette host : ''traypublisher" ou sinon mettre a jour les settings afin qu'ils pointent sur un template qui existe.

DEBUG: Source: C:\Users\ccaillot\Pictures\lookmanager.png
DEBUG: Creating new version ...
DEBUG: Prepared version: v005
DEBUG: Anatomy template name: comp_publish
CRITICAL: Error when registering
Traceback (most recent call last):
  File "C:\Users\ccaillot\quad\quadpype\src\quadpype\plugins\publish\integrate.py", line 185, in process
    self.register(instance, file_transactions, filtered_repres)
  File "C:\Users\ccaillot\quad\quadpype\src\quadpype\plugins\publish\integrate.py", line 273, in register
    prepared = self.prepare_representation(
  File "C:\Users\ccaillot\quad\quadpype\src\quadpype\plugins\publish\integrate.py", line 643, in prepare_representation
    publish_template_category = anatomy.templates[template_name]
KeyError: 'comp_publish'

project_settings/global/tools/publish/template_name_profiles
image

Aucun des profiles présent dans project_anatomy/templates/publish ne match avec comp_publish. Problème logique.

Ce problème n'est donc pas en lien avec la feature présente dans cette PR.

@hfarre
Copy link
Contributor

hfarre commented Jan 24, 2025

Lors d'un publish classique d'une image en Repr/Review, il y a une erreur dans l'integrate asset:

J'ai testé de publié avec jpeg aucun soucis, par contre avec un png. Les Anatomy template de l'integrateAsset nécessite d'etre mis a jour afin de pouvoir gérer cette host : ''traypublisher" ou sinon mettre a jour les settings afin qu'ils pointent sur un template qui existe.

DEBUG: Source: C:\Users\ccaillot\Pictures\lookmanager.png
DEBUG: Creating new version ...
DEBUG: Prepared version: v005
DEBUG: Anatomy template name: comp_publish
CRITICAL: Error when registering
Traceback (most recent call last):
  File "C:\Users\ccaillot\quad\quadpype\src\quadpype\plugins\publish\integrate.py", line 185, in process
    self.register(instance, file_transactions, filtered_repres)
  File "C:\Users\ccaillot\quad\quadpype\src\quadpype\plugins\publish\integrate.py", line 273, in register
    prepared = self.prepare_representation(
  File "C:\Users\ccaillot\quad\quadpype\src\quadpype\plugins\publish\integrate.py", line 643, in prepare_representation
    publish_template_category = anatomy.templates[template_name]
KeyError: 'comp_publish'

project_settings/global/tools/publish/template_name_profiles image

Aucun des profiles présent dans project_anatomy/templates/publish ne match avec comp_publish. Problème logique.

Ce problème n'est donc pas en lien avec la feature présente dans cette PR.

Hum, je pense comprendre en effet

Mais c'est curieux, pour mon test, j'ai fait une famille "image" en task "DA" qui est pourtant bien setté ici:
image

@hfarre
Copy link
Contributor

hfarre commented Jan 24, 2025

image

All good ?

Parfait, ça me parait beaucoup plus clair comme ça !
je vais quand même voir en situation de test

@BenSouchet
Copy link
Contributor

Deux dernière choses:

  1. Pour la légende Orange je mettrais: Representation & review (same file) elements

  2. Et j'ajouterais un QLabel en dessous du Treewidget et avant les labels Allowed File types avec comme texte: <i>Drag & drop to add or re-organize elements</i>

(la balise <i></i> c'est pour l'italique)

@BenSouchet
Copy link
Contributor

Et sinon super le taff !

@hfarre
Copy link
Contributor

hfarre commented Jan 24, 2025

petit bug:

J'ai glissé le fichier abc en premier, il est donc en orange.
Je lui glisse une image dedans pour en faire son review element:
image

Et quand je clique sur create, il me donne ça:
image

Y a plus l'image

@ccaillot ccaillot closed this Jan 24, 2025
@ccaillot ccaillot reopened this Jan 24, 2025
@ccaillot
Copy link
Contributor Author

petit bug:

J'ai glissé le fichier abc en premier, il est donc en orange. Je lui glisse une image dedans pour en faire son review element: image

Et quand je clique sur create, il me donne ça: image

Y a plus l'image

ma faute, c'est réparé

@hfarre
Copy link
Contributor

hfarre commented Jan 24, 2025

Yep good for me

@ccaillot ccaillot merged commit 6629344 into release/4.0.20 Jan 24, 2025
@ccaillot
Copy link
Contributor Author

Merge in release/4.0.20

@ccaillot ccaillot linked an issue Jan 24, 2025 that may be closed by this pull request
16 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Rework of the file selection widget for representations
3 participants