Group patterns in /patterns and select lists

Created on 20 December 2022, almost 2 years ago
Updated 19 January 2023, almost 2 years ago

Problem/Motivation

In some complex projects we can have a ton of patterns. That makes their preview and their selection quite complicated.
Now #3311464: Sort UI Pattern definitions has been committed, things are better but I believe we could do even better by allowing pattern creators to define the group their pattern belong to, like it can be done in modules definitions for example.

Proposed resolution

Follow Core's handling of modules' packages and allow patterns to be assigned to a group in their definition.
When a pattern has no group, assign it to the "- Other -" group.
If the only existing group is the "- Other -" one, consider that there is no group at all.

Alter the /patterns controller to cluster patterns links by group and add the group name in the pattern definition detail.
Alter the patterns select lists to use groups as optgroup elements.

Groups should always be sorted alphabetically and patterns should also be sorted alphabetically within each group.

Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇫🇷France duaelfr Montpellier, France

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024