Hello everyone,
I am developing an external integration for Gladys 5: « Artisan Map » (GitHub - tlse-vins/gladys-carte-des-artisans: Intégration Gladys Assistant de la Carte des artisans : artisans près de chez vous (widget et action de scène) · GitHub). It searches for artisans around the house using the public Sirene data. It offers two widgets:
- a list (
card-list) : each business is clickable and opens the details with the address, phone number, and the links « View the card » / « Route » ; - a map (
imagePNG generated in the container) : the house, the search radius, and the numbered businesses.
What I would like to do: display the map at the top of the same widget, then below the same clickable list, numbered like the points on the map.
What is blocking me: according to the spec dashboard-widgets.md and normalizeWidgetContent, a widget only accepts a single « focal » component (chart, card-list, or image). With image + card-list, the second is ignored. As a workaround, I display the results under the map with a status, but its lines do not accept links or actions. Today, I therefore use a « List / Map » button that replaces one with the other.
My question: would it be possible to add one of these solutions?
- allow the combination
image+card-listin the same widget (for example the image above, with a limited height) ; - or allow a
link(or anaction) on the lines of astatus; - or any other solution you would consider cleaner in the logic of the widgets.
If one of these options seems acceptable to you, I can try to propose a PR. I would appreciate your advice on the best approach.
Thank you.
