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

[D8][META] Consider adding modules/features to core for parity with Drupal 8/9/10 #378

Open
44 of 70 tasks
dgoutam opened this issue Oct 19, 2014 · 27 comments
Open
44 of 70 tasks

Comments

@dgoutam
Copy link

dgoutam commented Oct 19, 2014

Based on the presentation by Dave Reid at Drupalcon Amsterdam 2014, the "Core modules" list in d.org and other sources (like the d.org issue queue and the D8 change records).

Modules to be added:

Other misc changes we might also want to consider:

**Feature parity with the Layout Builder module in modern drupal:

Modules/features already added:

Not planned/needed in Backdrop:

Removed from d8 core:

@dgoutam dgoutam changed the title Candidate modules for backdrop core as d8 features [meta] Drupal 7 back ported modules Backport candidate modules for backdrop core as d8 features Oct 19, 2014
@dgoutam dgoutam changed the title [meta] Drupal 7 back ported modules Backport candidate modules for backdrop core as d8 features [meta] Drupal 7 back ported modules from D8 Oct 19, 2014
@dgoutam
Copy link
Author

dgoutam commented Oct 21, 2014

@quicksketch @jenlampton is there any policy document how to include this modules to backdrop for contributors? It will be super helpful if this kinda document exist for the contributors. For me kinda confused how to include these modules (let say joyride) into backdrop.

Could it be simple PR? If so I can take few.

@quicksketch
Copy link
Member

Could it be simple PR? If so I can take few.

We have a docs page at https://backdropcms.org/develop/pull-requests on an intro to contribution.

That said, I don't think many of the modules not already included are likely for a 1.0 release. We're planning on releasing in less than 2 months, so adding yet more modules that we haven't even yet begun is a risky endeavor that could push back our release. We could start working on some of these for a later release (e.g. start work on the CKEditor port), but actual inclusion would likely need to wait until after 1.0.

Areas in which we need the most help right now are in Views conversions (#151) and CMI conversions (#169). There are also a number of bugs that we've noticed that are reasonably easy to tackle, and a few security issues (#180). Finally, we've just initially finished Layouts (#86), and we have a number of followups from that in #345.

@jenlampton jenlampton changed the title [meta] Drupal 7 back ported modules from D8 [META] Drupal 7 back ported modules from D8 Nov 3, 2014
@jenlampton jenlampton added this to the 1.x-future milestone Nov 3, 2014
@jenlampton jenlampton changed the title [META] Drupal 7 back ported modules from D8 [META] Add modules to core for feature parity with Drupal 8 Nov 3, 2014
@attiks
Copy link

attiks commented Dec 19, 2014

FYI picture 2.x now works without breakpoints module, if there's interest we can start porting the relevant parts.

@quicksketch
Copy link
Member

I think the only relevant portion of the HTML5/picture business that is relevant to Backdrop is the use of srcset (http://css-tricks.com/responsive-images-youre-just-changing-resolutions-use-srcset/), which I'd love to see built directly into Image module. I haven't tried out the Picture module recently to know how extensive it's solution is, but I think if we can focus on solving the problem of matching up an appropriate image to the device resolution, we'll be in good shape.

If it's not over-simplification, I'd love to see this boiled down to just a single (by default enabled) option either the image formatter or on the image style:

[ ] Generate images for high-resolution and mobile displays

That would automatically generate 50% and 200% versions of the given image and update the srcset to use them. Advanced granularity beyond that may be best left to contrib. Thoughts?

@klonos
Copy link
Member

klonos commented Dec 20, 2014

That would automatically generate 50% and 200% versions of the given image and update the srcset to use them. Advanced granularity beyond that may be best left to contrib.

Sounds good to me.

@attiks
Copy link

attiks commented Dec 20, 2014

@quicksketch srcset will cover most use cases, but the problem is that - for the moment - you'll need to output a picture tag and use the polyfill, if you only use srcset you ran into problems:

  • browser without srcset support will prefetch the image specified in src, resulting in a double download
  • safari only supports 1x 2x qualifiers so you cannot use sizes, which is the most used form

Generating 50%, 200% versions of the same image is not going to help a lot, assuming you'll only want dpi switching it means it will generate a 0.5x and a 2x version. The 0.5x version will not be used since all devices are art least 1x, the 2x version is not sufficient, since most modern phone are 1.5x, 2x, 3x and I even believe there's a 4x phone.

So the above means that it might be better to add support for srcset and sizes, for the moment in Drupal 7 this boils down to selecting some image styles on the formatter and entering a sizes string. The difficult part is entering the sizes string because it is brand new for most people and a bit difficult to comprehend.

Best explanation can be found at http://ericportis.com/posts/2014/srcset-sizes/

I agree that adding full picture support with media queries, mime type support and sources can be left for contrib.

@quicksketch
Copy link
Member

you'll need to output a picture tag and use the polyfill, if you only use srcset you ran into problems:

  • browser without srcset support will prefetch the image specified in src, resulting in a double download
  • safari only supports 1x 2x qualifiers so you cannot use sizes, which is the most used form

Could we try to plan ahead by essentially leaving <img> output identical to what it is now, but adding in srcset using either the w or x syntax (I'm not sure which would be better)? If we leave polyfill support to contrib, it could override the srcset attributes to set them in a way where double-loading would be prevented. Without a polyfill, the browser would just treat images as they do currently, reading out the normal src attribute.

The 0.5x version will not be used since all devices are art least 1x

You're right it's too early to build in a 0.5x version considering browser support. Once browsers get smarter, a 0.5x version may become a best-practice for supporting mobile or other situations where users are network constrained. A browser knows if it's on a slow connection, and could use the low-resolution image when possible. However, that's just theoretical for now.

The difficult part is entering the sizes string because it is brand new for most people and a bit difficult to comprehend.

After reading that article you referenced, I don't think sizes is something that can be easily understood by site builders. It appears users would need to know the breakpoints of their layout and where the images will be used within that layout. That makes sizes a poor fit conceptually for image styles, which can be used anywhere throughout a site in any number of places. Coupled with different layouts being allowed different breakpoints, asking an end-user to supply sizes is going to be difficult even when they understand how it's supposed to be used.

@jenlampton
Copy link
Member

Great conversation going on over here, thanks @attiks for your insight on responsive images! :)

@attiks
Copy link

attiks commented Dec 22, 2014

@quicksketch

srcset: w or x syntax?

The w syntax is the preferred way, but it means you'll need to add sizes as well. The easiest to implement is the x syntax and it can be easily done without a polyfill. This can be done without an interface, but we need to pick the right multipliers, I guess to be safe we need: 1x, 1.5x, 2x, 2.5x, 3x

The problem might be that images need to be upscaled, which is something that should be avoided, so we need an easy way to detect this or allow a site builder to disable certain multipliers?

Contrib can add support for sizes using a different image formatter.

@klonos
Copy link
Member

klonos commented Dec 22, 2014

...or instead of upscaling, prompt the user to insert the larger image (use it for the larger multiplier) and downscale it for the smaller multipliers. Does that make any sense?

@attiks
Copy link

attiks commented Dec 22, 2014

@klonos it sure does make sense, but does this mean we're going to add a validation to make sure the image is at least 2000px wide, or is it just about adding a description to ask the user to insert a big enough image. In the latter case we need to make sure the derivative can be created without upscaling.

@klonos
Copy link
Member

klonos commented Dec 22, 2014

Just asking users to insert their largest variant I guess. After some time (either through trial and error or through our documentation), people will be trained to do so anyways.

Checking for minimum size simply does not make sense to me. What would that size be? Would it be acceptable for all use cases?

@klonos
Copy link
Member

klonos commented Nov 26, 2015

...added https://www.drupal.org/project/entity

@mikemccaffrey
Copy link

@klonos Shouldn't we not need the entity project, since @quicksketch integrated the Entity API functionality into core in #49?

@klonos
Copy link
Member

klonos commented Nov 29, 2015

I couldn't possibly answer that question. It's my understanding that with #49 only a subset of the module was merged into core. I don't know what was left out or why or whether there's more to be done in order to be in par with D8. I believe that @quicksketch is the right person to answer that.

I simply added the module to the list because I saw the "This module has been included with Drupal 8 core." section on the project page in d.org. I then checked our list here and saw no mention of it. So I added it. If it is deemed that we need not do anything else, then I'll just close #1371 as a duplicate of #49 and I'll update the list in the issue summary accordingly.

@olafgrabienski
Copy link

Added two Views related features: #2921 and #2922.

@klonos
Copy link
Member

klonos commented Oct 27, 2018

I have updated the issue summary, and have added #2498

@jenlampton jenlampton changed the title [META] Consider adding modules and other features to core for feature parity with Drupal 8 [D8][META] Consider adding modules/features to core for parity with Drupal 8 Apr 28, 2019
@klonos klonos changed the title [D8][META] Consider adding modules/features to core for parity with Drupal 8 [D8][META] Consider adding modules/features to core for parity with Drupal 8/9/10 Aug 12, 2022
@klonos
Copy link
Member

klonos commented Oct 22, 2023

I believe that given that we have the Feature parity with Drupal GitHub project to help us track issues + also the various [Dx] keywords that we are using in the titles of the issues, perhaps we should close this issue here.

I'll leave it open for a while longer, but will close it next time I am brought here unless there are objections to that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

8 participants