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

WIP: Variants Editor #177

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from
Draft

Conversation

suffle
Copy link

@suffle suffle commented Feb 15, 2023

Adds an Editor for image variants.

Resolves: #34

Current todos:

  • Add mutation resolver for variant updates
  • use mutation in client
  • cleanup code
  • Add tests and fixtures

@Sebobo Sebobo self-requested a review February 15, 2023 15:39
}: VariantProps) => {
const classes = useStyles();
// TODO: Find out why we need to check both
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Are you wondering why there can exist variants without an preset identifier in a Neos installation?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess thats because custom crops (e.g. in Fusion) are also stored as variants and have no preset identifier?

I took that code from the current media browser version, and I am wondering why a variant with preset identifier should not be croppable, and more important: why does checking for an existing crop area ensure that the image is croppable. If I have a 16:9 image and a 16:9 preset, technically there is no need for a crop area over the whole image, but I should still be able to choose a smaller area

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.

Implement variant editor
2 participants