Problem/Motivation

The presets list is a draggable table. With many presets, ordering by hand does not scale, and nothing finds a given preset.
The library sorts presets by that weight and lists Others first.

Proposed resolution

Filter the presets list by group, context and label.
Sort it by label, publication or last update, the most recent first. 20 a page, filters, sort and page in the URL.
A Status column, enabled and published being independent.
Remove the weight: the library lists presets by group, then by label, Others last.
The Instances list moves its filters and sort from the session to the URL, on the same code.

Remaining tasks

  • Review.
  • Publish the change record "Pattern presets no longer have a weight".

API changes

InstanceListBuilder::getSessionFilters() and getSessionSort() are removed.

Data model changes

display_builder.pattern_preset.* loses weight, removed by a post update.

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

mogtofu33 created an issue. See original summary.

mogtofu33’s picture

Assigned: Unassigned » pdureau
Status: Active » Needs review

  • mogtofu33 committed 73cb1f06 on 1.0.x
    task: #3631292 Filter, sort and page the presets list
    
    By: mogtofu33
    
mogtofu33’s picture

Assigned: pdureau » Unassigned
Status: Needs review » Fixed

Scope limited to admin pages, so review seems trivial.

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

pdureau’s picture

Status: Fixed » Closed (fixed)