Align on element types

Created on 23 October 2023, about 1 year ago
Updated 24 January 2024, 10 months ago

Problem/Motivation

We need to clarify what is an element_type and what is a widget.

Proposed resolution

We use `element_type` for anything which has a different interface, for example full pager and loadmore are currently the same element type "pager" but actually they have different interfaces, so the solution would be to create a new element type for loadmore and keep pager as element type for the full and mini pagers

Then the widgets will just be the implementation of each interface that anyone can create easily.

Another good example is the facet element type, you can then use any widget to target the facet interface, like checkbox, chip, link, ... (those should be widgets)

Remaining tasks

- create a list of current element types (aligned with the client project)
- update element types on the module
- pass the list to the client and ensure it's updated to handle the new structure
- ensure widgets are extensible by default, anyone should be able to create a new widget name below any element_type, and then use it in order to implement a UI element that targets the correct client interface by default

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

🇪🇸Spain JSnow11

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024