You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: workspaces/orchestrator/docs/orchestratorFormWidgets.md
+15-7Lines changed: 15 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -15,12 +15,7 @@ Key Differentiators:
15
15
- Provide default data or option lists.
16
16
- Handle complex validation logic for widgets.
17
17
18
-
Implementation of the HTTP endpoints is out of the scope of this library.
19
-
20
-
Deployment Considerations:
21
-
22
-
- Use one or multiple servers depending on organizational needs.
23
-
- Ensure endpoint structures and response formats exactly match the naming conventions and data structures defined in your schema’s `ui:props` by the creator of workflow's `data input schema`.
18
+
Implementation of the HTTP endpoints is out of the scope of this library, they are expected to be custom developed to match rules and data sources of target environment.
24
19
25
20
## Content
26
21
@@ -29,13 +24,19 @@ The frontend plugin provides implementation of `OrchestratorFormApi` (for `orche
29
24
## Context
30
25
31
26
The provided widgets enable forms to incorporate dynamically retrieved data.
27
+
32
28
This data can be fetched from external HTTP servers, the Backstage API, as well as from other form fields, with all evaluations performed in real time during use.
33
29
30
+
## Deployment considerations
31
+
32
+
- Use one or multiple servers depending on organizational needs.
33
+
- Ensure endpoint structures and response formats exactly match the naming conventions and data structures defined in your schema’s `ui:props` by the creator of workflow's `data input schema`.
34
+
34
35
## SchemaUpdater widget
35
36
36
37
Referenced as: `"ui:widget": "SchemaUpdater"`.
37
38
38
-
A headless widget used for fetching snippets of JSON schema and dynamically updating the RJSF form JSON schema on the fly.
39
+
A **headless** widget used for fetching snippets of JSON schema and dynamically updating the RJSF form JSON schema on the fly.
39
40
40
41
Thanks to this component, complex subparts of the form can be changed based on data entered in other fields by the user.
41
42
@@ -163,6 +164,12 @@ For the schema:
163
164
}
164
165
```
165
166
167
+
### Default mandatory data
168
+
169
+
When the optional `fetch:response:mandatory` JSONata selector is provided, it must return an array of strings that act as default values, which the user can not unselect.
170
+
171
+
Together with `fetch:retrigger` and other fetch-related parameters, the endpoint can continuously update the data for the selector.
172
+
166
173
### SchemaUpdater widget ui:props
167
174
168
175
The widget supports following `ui:props`:
@@ -172,6 +179,7 @@ The widget supports following `ui:props`:
0 commit comments