wso2 / mi-vscode

Micro Integrator extension for Visual Studio Code
Apache License 2.0
2 stars 3 forks source link

Improve Inbound and Connector form generator to support conditional rendering #236

Closed SanojPunchihewa closed 1 month ago

SanojPunchihewa commented 2 months ago

Description:

In Integration studio, for connectors we can define the enableCondition to conditionally render UI elements. For example in the File connector read operation the text box for resultPropertyName is shown only when includeResultTo is set to Message Property [1]. Currently all the parameters defined in the schema are rendered to the form UI which makes it cluttered unnecessarily and lead to a bad UX as well.

We need to add this support for both Connectors and Inbounds as well.

[1] - https://github.com/wso2-extensions/esb-connector-file/blob/master/src/main/resources/uischema/read.json#L211

SanojPunchihewa commented 2 months ago

@kaumini The conditional rendering doesn't work when the key contains . dots as in [1]. Shall we fix that as well?

[1] - https://github.com/wso2-extensions/esb-inbound-salesforce/pull/28/files#diff-6de1bcb4446faf5184232067db06c2291639b3990455bacf46c079c4eb9f7d65R226

gigara commented 1 month ago

The latest release v1.1.0 has resolved the issue. Please reopen if the problem persists.