-
-
Notifications
You must be signed in to change notification settings - Fork 755
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
Image rendering #3337
Image rendering #3337
Conversation
✅ Deploy Preview for volto ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
Passing run #6541 ↗︎Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
good. This morning i found out also that defining the aspect ratio in css could help the browser if you don't know the real size of the rendered image.. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I left a few implementation comments on point that imho we should discuss together @plone/volto-team
Note from Beethoven sprint discussion: in blocks that pick images (e.g. Hero and Image block), if we save image metadata like image_scales in the block data, we can end up having outdated information, because if the image changes, the scales change and the blocks data do not reflect that change. Since the image selection is basically a @davisagli feel free to correct me and/or add info. |
@pnicolli yes, that's right. I have code from a project that can be adapted for this. |
@sneridagh I don't understand this PR https://github.com/plone/volto/pull/4964/files |
@pnicolli a part of that was fixing the use case of having a local override of the teaser image. If you are referring to amend the instantiation of the registered component using the "new one" used in the core component, then go ahead, by all means. |
@pnicolli btw, master now have the latest p.restapi version (but I guess you already realised). |
@sneridagh The current implementation in this branch does the same exact thing you did in that PR, exept this does not fallback to a native |
I really don't understand why the unit tests are failing here. https://github.com/plone/volto/actions/runs/5589278409 This is the error:
I don't get these errors on my local laptop, I actually get other errors, which are related to the Html SSR component and to auth token verifications - two things I did not touch at all anyway. @plone/volto-team any pointers by any chance? |
@stevepiercy I added some last minute docs regarding upgrade guide. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Minor tweak, then it's good to go. Thank you!
Co-authored-by: Steve Piercy <[email protected]>
* master: (42 commits) make selectedView and className props available for Search block (#4997) Release @plone/volto-testing 4.0.0-alpha.0 Release 17.0.0-alpha.21 Upgrade to Cypress 12.17.1 (latest) (#4981) Image rendering (#3337) feat(Url.js): add getFieldURL helper function to get the url value of a field based on its structure (#4731) Handle @linkintegrity response with items but no breaches (#4832) Release 17.0.0-alpha.20 Use all the apiExpanders in use, so we perform a single request for getting all the required data. (#4946) Fix the condition deciding on listing pagination format so it takes into account container blocks as well (#4978) Release 17.0.0-alpha.19 Fix search block input clear button doesn't reset the search (#4837) Add /ok route as an express middleware (#4432) handles condition for yearly frequency in recurrence (#4604) Remove dangling out of place Guillotina Cypress tests (#4980) Update to latest plone.restapi and Plone 6.0.6 (#4979) Update browserlist (#4977) `Links and references` view via content menu [Add `Links to item` view] (#4787) Release 17.0.0-alpha.18 Toc responsive (#4912) ...
@sneridagh do we have a PLIP for this feature? Anything else that is left to do here? This is something we definitely want to mention when talking about Plone 6.1. |
I thought we had one, but not. I think there's a plain issue: #1428 |
Related: #2103 #1428 #1395
This is mainly documentation about how to properly render images, at this time.This is meant to be improved still, in order to document how we want to do this and then implement it.
This now contains the new Image component implementation.
Depends on plone/plone.restapi#1642