- Issue created by @kostyashupenko
- First commit to issue fork.
- Merge request !4628Issue #3382787: Add responsive_image field widget in form display for image type field β (Open) created by sorlov
- Open on Drupal.org βEnvironment: PHP 8.2 & MySQL 8last update
over 1 year ago Not currently mergeable. - last update
over 1 year ago Custom Commands Failed - last update
over 1 year ago 30,056 pass - Status changed to Needs work
over 1 year ago 11:43am 23 August 2023 - last update
over 1 year ago 30,056 pass - last update
over 1 year ago 30,058 pass - π·πΊRussia kostyashupenko Omsk
Maybe makes sense to add this into 10.1.x also ?
- Status changed to Needs review
over 1 year ago 7:44am 24 August 2023 - π·πΊRussia sorlov
Fixed feedbacks and added test, so can be reviewed now
- last update
over 1 year ago 30,059 pass - last update
over 1 year ago 30,055 pass, 2 fail - Status changed to Needs work
over 1 year ago 2:52pm 25 August 2023 - last update
over 1 year ago 30,061 pass - Status changed to Needs review
over 1 year ago 12:24pm 26 August 2023 - π·πΊRussia sorlov
failed tests were from 11.x branch, rebased again, so should be fine now
- Status changed to Needs work
over 1 year ago 7:39pm 30 August 2023 - πΊπΈUnited States smustgrave
Tested MR 4628 and the formatter seems to work fine.
Tested by enabling Media library + responsive images
Changing image formatter to use new responsive_images one
Created a Media object without issueThink for this new formatter we will need a change record so tagging for such.
Thanks!
- π§π΄Bolivia vacho Cochabamba
I added a change record. Feel free to update.
- Status changed to Needs review
over 1 year ago 7:55am 12 September 2023 - Status changed to RTBC
over 1 year ago 2:25pm 12 September 2023 - πΊπΈUnited States smustgrave
Tweaked the CR slightly for group it will impact. very very small change.
But LGTM!
- last update
over 1 year ago 30,137 pass, 2 fail - π§π΄Bolivia vacho Cochabamba
Code looks good.
Also after apply i.e "wide" this responsive style was applied to the edit form.
2:48 33:37 Running- last update
over 1 year ago 30,162 pass - last update
over 1 year ago 30,165 pass - last update
over 1 year ago 30,169 pass - last update
about 1 year ago 30,206 pass - last update
about 1 year ago 30,206 pass - last update
about 1 year ago 30,364 pass - last update
about 1 year ago 30,362 pass - last update
about 1 year ago 30,361 pass - last update
about 1 year ago 30,372 pass - last update
about 1 year ago 30,380 pass - last update
about 1 year ago 30,378 pass - last update
about 1 year ago 30,383 pass - last update
about 1 year ago 30,393 pass - last update
about 1 year ago 30,398 pass - last update
about 1 year ago 30,398 pass - last update
about 1 year ago 30,415 pass - last update
about 1 year ago 30,418 pass - last update
about 1 year ago 30,427 pass - last update
about 1 year ago 30,428 pass - last update
about 1 year ago 30,437 pass, 1 fail - last update
about 1 year ago 30,443 pass - last update
about 1 year ago 30,465 pass - last update
about 1 year ago 30,481 pass - last update
about 1 year ago 30,486 pass - last update
about 1 year ago 30,474 pass, 2 fail - last update
about 1 year ago 30,489 pass - last update
about 1 year ago 30,512 pass - last update
about 1 year ago 30,517 pass - last update
about 1 year ago 30,521 pass - last update
about 1 year ago 30,552 pass - last update
about 1 year ago 30,561 pass 32:46 28:01 Running- last update
about 1 year ago 30,606 pass - last update
about 1 year ago 30,607 pass - last update
about 1 year ago 30,669 pass - last update
about 1 year ago 30,676 pass - last update
about 1 year ago 30,685 pass - last update
about 1 year ago 30,687 pass - last update
about 1 year ago 30,689 pass - last update
about 1 year ago 30,689 pass - last update
about 1 year ago 30,697 pass - last update
about 1 year ago 30,699 pass - last update
about 1 year ago 30,713 pass - last update
about 1 year ago 30,713 pass - last update
about 1 year ago 30,765 pass - last update
about 1 year ago 30,767 pass 32:48 54:59 Running- π¬π§United Kingdom catch
One minor comment on the description text to try to remove some duplication. Leaving RTBC.
- π΅π°Pakistan alicja11
Is it possible to have a default value for the responsive image style?
- π΅π°Pakistan alicja11
Is it possible to have a default value for the responsive image style?
- Status changed to Needs review
about 1 year ago 1:58pm 21 December 2023 - π¬π§United Kingdom catch
Between the comments from me and @lauriii, moving back to needs review.
- Status changed to RTBC
12 months ago 6:04am 24 December 2023 - last update
12 months ago 25,918 pass, 1,807 fail - last update
12 months ago 25,956 pass, 1,815 fail - last update
12 months ago 25,940 pass, 1,801 fail - last update
12 months ago 25,913 pass, 1,808 fail - last update
12 months ago 25,950 pass, 1,833 fail - last update
12 months ago 25,919 pass, 1,812 fail - last update
12 months ago 25,943 pass, 1,815 fail - last update
12 months ago 26,003 pass, 1,808 fail - last update
12 months ago 25,982 pass, 1,816 fail - Status changed to Needs work
10 months ago 12:32pm 26 February 2024 - π¬π§United Kingdom catch
https://git.drupalcode.org/project/drupal/-/merge_requests/4628#note_272118 on the MR wasn't resolved, and I think @lauriii's point is valid.
I also think this could use usability review, tried to tag it above for that above but apparently failed.
- Status changed to Needs review
10 months ago 10:52am 5 March 2024 - π¬π§United Kingdom catch
Moving this to needs product manager review for the question about adding a default responsive images style, since we don't ship any now, we'd need to make one in order to be able to reference it.
- Status changed to Needs work
10 months ago 12:50pm 5 March 2024 The Needs Review Queue Bot β tested this issue. It fails the Drupal core commit checks. Therefore, this issue status is now "Needs work".
This does not mean that the patch necessarily needs to be re-rolled or the MR rebased. Read the Issue Summary, the issue tags and the latest discussion here to determine what needs to be done.
Consult the Drupal Contributor Guide β to find step-by-step guides for working with issues.
- Status changed to Needs review
10 months ago 3:48pm 5 March 2024 - Status changed to Needs work
10 months ago 5:13pm 5 March 2024 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Exciting to see that a simple addition to the config schema helped ensure this would not add a regression to Drupal core: https://git.drupalcode.org/project/drupal/-/merge_requests/4628/diffs#no... π₯³
@catch: But do we really need one? I think the test can just create a responsive image style π
- Status changed to Needs review
10 months ago 5:04am 6 March 2024 - Status changed to Needs work
10 months ago 6:59am 6 March 2024 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
Looks good! π
One remaining problem:
$this->responsiveImageStyleStorage = $responsive_image_style_storage ?: \Drupal::service('entity_type.manager')->getStorage('responsive_image_style');
This should only ever be injected. Or is there otherwise a BC break I'm not seeing? π€¨
- Status changed to Needs review
10 months ago 7:28am 6 March 2024 - π·πΊRussia sorlov
I have used exact same way as in ImageWidget, so if it is not correct, it should be updated on ImageWidget first
- Status changed to Needs work
10 months ago 9:10am 6 March 2024 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
I have used exact same way as in ImageWidget, so if it is not correct, it should be updated on ImageWidget first
No, it should not because
ImageWidget
had to evolve in a non backwards compatibility breaking way in π Allow image fields to use any extensions the current image toolkit supports (instead of hard-coding jpg, png and gif only) Fixed . but this is new code, so we can get it right from the very start! πI left suggestions to make that happen, it's really 99% ready, thanks for this nice addition!
- Status changed to Needs review
10 months ago 11:49am 6 March 2024 - Status changed to Needs work
10 months ago 12:31pm 6 March 2024 - π§πͺBelgium wim leers Ghent π§πͺπͺπΊ
AFAICT the newly
create()
method contains a bug now? I might be overlooking something though. - Status changed to Needs review
10 months ago 7:35am 7 March 2024 - Status changed to Needs work
9 months ago 11:28pm 30 March 2024 - πΊπΈUnited States smustgrave
Was going to ping ux channel but think it would help to have a clear issue summary before hand please.
- Status changed to Needs review
7 months ago 6:59am 13 May 2024 - Status changed to Needs work
7 months ago 4:00pm 17 May 2024 - π©πͺGermany rkoller NΓΌrnberg, Germany
We discussed this issue at π Drupal Usability Meeting 2024-05-17 Needs work . That issue will have a link to a recording of the meeting.
For the record, the attendees at the usability meeting were @AaronMchale, @benjifisher, @rkoller, @shaal, @skaught, and @simhohell.
If you want more feedback from the usability team, a good way to reach out is in the #ux channel in Slack.
While exploring the new responsive image form display widget we ran into one problem. On a standard 11.x-dev install with the responsive image module installed, and MR4628 applied, we had the following three options available for
Preview responsive image styles
:- Narrow
- Wide
Our assumption was that based on micro copy you would either get the preview image added in the dimensions of the chosen responsive image style or you have no preview depending on your choice. But problem was no matter what setting we set the resulting preview looked like this:
Our expectation, based on the micro copy, would have been that this would only be the result in case option 1, no preview, was chosen. So we were not sure if this is a bug, and in general we've asked us how this feature is intended to work? We would need some clarification in that regard before we are able to make any recommendations.
We will also continue our initial discussion we've started in regards of the micro copy. There was already a clear consensus to change the label
Preview responsive image style
toResponsive image style for preview
. "Technically" a user isn't "previewing a responsive image style", instead a preview image based on that responsive image style is being generated. About the corresponding description, there was the consensus to clarify where the image is shown (aka that it is shown on the edit form), and that "preview responsive image" is too verbose as well as misleading (There is only a single image being used, based on the responsive image style - but again we need to know how the feature is supposed to work).
One radio button option is calledBar with progress meter
while within the description it is referred to as aprogress bar
. Aside this inconsistency in terminology it was also noted that the first sentence of the description is imprecise, the throbber actually is communicating the status of the upload, it is telling the user if the upload is still underway or was already finished. But the microcopy about the progress indicator would apply to regular image widgets as well. So making adjustments in that regard would be more suitable for a followup issue to keep things consistent between image and responsive image widgets.But we will finish the discussions about the micro copy as well as the functionality in general as soon as the feedback is in. Thank you in advance!
Not sure what the best status would be in this case? I went with needs work but to postpone with maintainer needs more infos felt wrong since i am not the maintainer nor person working on this issue. I'll go with needs work, but please adjust accordingly if that is not the right choice and there is a more suitable one. Apologies in that case.