hivemq / hivemq-edge

HiveMQ Edge is an MQTT gateway that enables interoperability between OT devices and IT systems. It translates diverse protocols into MQTT for streamlined communication and helps organize data into a unified namespace, making managing and streaming data across your infrastructure easier.
http://hivemq.com
Apache License 2.0
90 stars 20 forks source link

feat(19269): Allow collapsable items in a RJSF form #409

Closed vanch3d closed 1 month ago

vanch3d commented 2 months ago

See https://hivemq.kanbanize.com/ctrl_board/57/cards/19269/details/

This PR enables items in an array-based property of a JSONSchema form to be collapsable, saving precious space

It extends the custom template used for array items in order to handle the control of the new UI.

It adds a collapse/expand button on the side toolbar.

The custom handling is configurable through the UISChema scheme, with a 'ui:collapsableattribute added to theitems` property, such as :

    subscriptions: {
      items: {
        'ui:collapsable': {
          titleKey: 'destination',
        },
      },
    },

The PR also fixes https://hivemq.kanbanize.com/ctrl_board/57/cards/19931/details/

Before

screenshot-localhost_3000-2024 05 02-16_46_52

After

screenshot-localhost_3000-2024 05 02-16_46_11