Problem/Motivation

Currently, feature generation is done via a form where all configuration on the site is assigned to multiple features. This is useful, but limited in terms of customizing. It might be daunting to present an edit interface that allowed an admin to exclude/include/move config items in all detected features at once.

Proposed resolution

Another way to conceptualize the FEatures approach would be as feature suggestions. For example: present a simple page with a list of suggested features, based on analysis of the site (via the generation plugins). Click on a link to bring up the feature in edit mode, with suggested components. Or else enter a custom name + machine name + description to make your own, with a checkbox like "Add suggested components based on the machine name." This would be a bit like the 2-step Views admin UI for creating a view.

Remaining tasks

User interface changes

API changes

Comments

nedjo’s picture

Issue summary: View changes
mpotter’s picture

Cool, I think this is exactly where I can get started with Features. Since I want Features to be more of a UI around creating config packages, I think having it fit in and augment or replace the config_packager UI would be a good starting point.

Let me play around with some ideas and then post something for you to look at.

nedjo’s picture

Sounds great. The current UI is really just a placeholder.

Linking to #2405039: Move feature set and profile configuration to settings page. Also opened related issue #2446917: Define Configuration Packager relationship with Features. One possible direction is: we remove the UI from Configuration Packager (except, perhaps, the settings mentioned in #2405039: Move feature set and profile configuration to settings page), and Features becomes a front end.

nedjo’s picture

Title: Consider alternate UI for package generation » Consider alternate UI for feature generation
Project: Configuration Packager » Features
Version: 8.x-1.x-dev » 8.x-3.x-dev
Issue summary: View changes
mpotter’s picture

Title: Consider alternate UI for feature generation » Create new Features 8.x UI

Here is the skeleton code for a new features_ui submodule within Features. Will be fleshing this out over the next week or so.

  • mpotter committed cabf0eb on 8.x-3.x
    Issue #2421135: Create new Features 8.x UI
    
mpotter’s picture

Commit 9676318 is the initial refactor for moving all the UI into the features_ui submodule.

  • mpotter committed 9676318 on 8.x-3.x
    Issue #2421135: Create new Features 8.x UI
    

  • mpotter committed 8b0fca2 on 8.x-3.x
    Issue #2421135: Refactor main export page as a listing of Features
    
mpotter’s picture

Commit 8b0fca2 refactors the main Export form into more of a Features Listing form.

Some of the style and code was taken from the D8 Extension listing page.

  • mpotter committed 6bf1333 on 8.x-3.x
    Issue #2421135: Refactor to use tableselect so we can control what gets...
candelas’s picture

Hello

It sounds very interesting. I hope I have time soon to test it.

As a user, I hope it is the right moment, what for me that I just started with Features, what I would also like to be implemented (I say in case it can help) is:

  • The time load of the page that for my computer is around 3min
  • To be able to order the columns as in views (so I can see enabled/disabled features grouped, or the same with state to see overriden features grouped)
  • To edit the table in views, to remove the Signature column that I will check when I install, but after I have not need.
  • Also, but I don't know if it has to deal with this issue, to have a way to know which feature overrides which (with a change of color it would be enough).
  • Have a time in human writting of overrides.

I hope you understand that I write this with all my best acknowledgment to your great work, trying to be a bit useful :)

  • mpotter committed 4f74a94 on 8.x-3.x
    Issue #2421135: Use the tableselect values to control which packages are...

  • mpotter committed d6bf305 on 8.x-3.x
    Issue #2421135: Move detectOverrides into FeaturesManager and update...
mpotter’s picture

Candelas: Please do not post Feature Requests in this issue. This issue is for developers testing the 3.x build. Please create new issues for feature requests.

Features 8.x is a complete rewrite of Features 7.x so stuff like load time etc is no longer relevant. Only post here if you have installed D8 and are reviewing the code commits that have been posted.

Note that functionality in the dev version is not complete until you see an initial Alpha release.

  • mpotter committed 5b46a1a on 8.x-3.x
    Issue #2421135: Fix ajax wrapper for changing package set
    

  • mpotter committed b1ca806 on 8.x-3.x
    Issue #2421135: Adjust css, make name nowrap
    

  • mpotter committed 62e7077 on 8.x-3.x
    Issue #2421135: Create buttons for each Generation type instead of radio...

  • mpotter committed 301b24f on 8.x-3.x
    Issue #2421135: Add export config permission check for showing the...
mpotter’s picture

Status: Active » Needs work

Most work lately has been on the Edit form. But the remaining work here for the main UI is adding support for new "action" buttons for importing/exporting individual Features.

mpotter’s picture

Status: Needs work » Fixed

Just going to leave it as-is without any "actions". The two buttons for Download and Write are good.

Status: Fixed » Closed (fixed)

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