- Issue created by @Guillaume Aveline
- last update
over 1 year ago 85 pass - @guillaume-aveline opened merge request.
- 🇫🇷France Guillaume Aveline
I added tests for this issue, but the function
public static function processFields(array $element)
is not tested.And I don't know how to create test for it.
- Status changed to Postponed: needs info
about 1 year ago 10:55am 26 August 2023 - 🇫🇷France pdureau Paris
Hi Guillaume,
Thanks for your proposal.
Currently, previews are at fields and settings level, so:
- only one preview per component (the merge of each field and setting previews)
- same preview values for all variants
As you already know, we have a few issues to move previews out of fields and settings, to the component level, so:
- many previews per component (we all agree about that)
- some previews can be specific to some variants, many previews per variant (we are still discussing about that)
AFAIK your proposal is a bit different, adding previews at the variant level, so:
- only one preview per component (the merge of each field and setting previews)
- some variants can have their own previews, only one preview per variant
Describing the YAML structure with JSON path, you are proposing
/variants/0/previews
instead of/previews/0/variants
, but I am afraid it will be a more restricted solution.Is my understanding right?
- Status changed to Closed: outdated
9 months ago 12:07pm 27 February 2024