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.

Hide/show link on the diff (/admin/config/development/features/diff) page.
API changes
N/A
Data model changes
N/A
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | 3156659-features_ui-editing-experience-8.diff | 13.49 KB | codebymikey |
| #4 | features-hide-show-diff-components.mp4 | 250 KB | codebymikey |
| features-ui-improvement.png | 15.92 KB | codebymikey |
Issue fork features-3156659
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
Comment #2
codebymikey commentedComment #3
codebymikey commentedRe-rolled from 3.8.0 to 3.11 (3.x-dev).
Comment #4
codebymikey commentedAdd 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.
Comment #5
codebymikey commentedAdd styles for displaying missing configurations.
Comment #6
nedjoSomewhat 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?
Comment #8
codebymikey commentedRerolled 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.
Comment #10
nedjoApplied, thanks!
Comment #12
matthandFeatures version 8.x-3.13 was just released and includes this new enhancement. Thank you for your contribution!