Problem/Motivation

Current library block and components provide multiple display options.

It looks nice to address power users but the flexibility of display create permutations nobody test.

Partially related to #3569409: Improve UX by restructuring "Libraries" and "Blocks" island

Proposed resolution

Keep for now only what provide a real difference for the user.

Will have future issues if needs evolution based on real users feedback. Then we'll be able to include better coverage of permutations.

Components:

  • grouped -> default
  • with variants
  • flat list -> remove, provide no value
  • thumbnail mosaic -> remove, provide no value and require the theme to provide thumbnail

+ add description to explain the difference for 'with variants'.

Blocks:

  • grouped -> default
  • flat list -> remove, provide no value

So as it's one option, remove the option.

Then adapt existing 'flatten' but without presets and that respect displays:

  • Components default + Blocks default
  • Components variants + Blocks default

Remaining tasks

User interface changes

API changes

Data model changes

Comments

mogtofu33 created an issue. See original summary.

pdureau’s picture

There is another approach, I don't know if it is a better one but this ticket is a good opportunity to discuss.

Are we sure we keep variants? We are not sure it brings value:

  • the other tool we looked don't have such feature
  • the logic to build it brings specific complexity
  • and not all themes are using the SDC variants (which is a late addition to the API)

If we remove it, it will allow us to solve what may be the reason of the confusion here. The existing list (grouped, flat, mosaic) is merging 2 orthogonal concepts (grouping and displaying) and could be split in 2 distinct settings.

  • "Grouped by": None, Provider, Group... and maybe more to add later
  • "Displayed as": Label, Thumbnail... and maybe more to add later

What do you think?

Then adapt existing 'flatten' but without presets and that respect displays:

Great. It would be better without the presets.

mogtofu33’s picture

If we do not keep variant let start clean without option for user and grouped by default.

It was the only feature with impact to the user as it provide a really different list and avoid selection of variant after drop, but if we consider it is a rare occurrence then we can remove.

"Grouped by": None, Provider, Group... and maybe more to add later
"Displayed as": Label, Thumbnail... and maybe more to add later

This will re-create the permutations with low benefits for the user, it expose the same things with few differences, so would be something to evaluate later with user feedback.
As user I never change this option because the feature was the same, so no need to provide user with it.

mogtofu33’s picture