Problem/Motivation

It's a little difficult to review feature configs using the current form especially when there are lots of configs involved e.g. profiles.
There's no way to currently hide existing component types, or expand all the components for the "Select all" feature to work.

Proposed resolution

Add a "Hide component" select box and "Expand all/Collapse all" toggle on the features.edit route (/admin/config/development/features/edit/{featurename}).

Remaining tasks

Submit a patch.

User interface changes

Components filter on the /admin/config/development/features/edit/{featurename} page:

  • New "Hide" select box for hiding specific component types.
  • New "Expand all"/"Collapse all" toggle.

New editing filters

Hide/show link on the diff (/admin/config/development/features/diff) page.

API changes

N/A

Data model changes

N/A

Issue fork features-3156659

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

codebymikey created an issue. See original summary.

codebymikey’s picture

Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new7.69 KB
codebymikey’s picture

Re-rolled from 3.8.0 to 3.11 (3.x-dev).

codebymikey’s picture

Add ability to hide/show all the feature configs on the diff (/admin/config/development/features/diff) page.

Demo

This is useful when you have multiple bundles (some of which are disabled) and need hiding.

codebymikey’s picture

Add styles for displaying missing configurations.

nedjo’s picture

Somewhat belatedly, thanks for proposing this and for the patch.

The expand all/collapse all looks great.

I'm less sure about the "hide component" bit. I think I see the point, but I find it a bit confusing. If I hide something, it's nonetheless part of the feature. I also don't necessarily understand all the different options--at least, not until I scroll down to the bottom of the form and read the legend.

Maybe another approach would be to move the legend to the top of the form and put checkboxes next to each of the legend items, allowing a user to choose which to display? Along with some help text for the legend that somehow conveys the items will still be exported?

codebymikey’s picture

StatusFileSize
new13.49 KB

Rerolled the existing code for compatibility with latest 3.x-dev.

Your idea of placing the checkbox next to each legend makes sense.

I've moved the legend up and added some simple help title tooltips to each form element explaining what they do, but a visual one is probably better for new users - I would've hoped that they'd understand that the "Selection" is what determines whether something is exported or not rather than whether or not it's hidden.

This was the quickest way for me to address the usability issue without taking up more screen real-estate or overloading the page with more information.

  • nedjo committed d62788e on 8.x-3.x authored by codebymikey
    Issue #3156659 by codebymikey: Improve Feature UI editing filter...
nedjo’s picture

Status: Needs review » Fixed

Applied, thanks!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.

matthand’s picture

Features version 8.x-3.13 was just released and includes this new enhancement. Thank you for your contribution!