Skip to content

Commit

Permalink
Add facets to operations to group parameters (#359)
Browse files Browse the repository at this point in the history
As there seem to exist actions with large number of parameters, these
should get a kind of structure now. I've seen that UI.FieldGroup applies
already to Action / Function, but I cannot recognize how this could lead
to a meaningful structure / order. Therefore I introduce facets as a
structure element.
  • Loading branch information
BerSie authored Dec 9, 2024
1 parent 3271458 commit df21b99
Show file tree
Hide file tree
Showing 3 changed files with 263 additions and 249 deletions.
10 changes: 9 additions & 1 deletion vocabularies/UI.json
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@
"FieldGroup": {
"$Kind": "Term",
"$Type": "UI.FieldGroupType",
"$AppliesTo": ["EntityType", "Action", "Function", "FunctionImport"],
"$AppliesTo": ["EntityType", "Action", "Function", "ActionImport", "FunctionImport"],
"@Core.Description": "Group of fields with an optional label",
"@UI.ThingPerspective": true
},
Expand Down Expand Up @@ -884,6 +884,14 @@
"$AppliesTo": ["EntityType"],
"@Core.Description": "Facets that reference UI.FieldGroup annotations to group filterable fields"
},
"OperationParameterFacets": {
"$Kind": "Term",
"$Collection": true,
"$Type": "UI.ReferenceFacet",
"$AppliesTo": ["Action", "Function", "ActionImport", "FunctionImport"],
"@Common.Experimental": true,
"@Core.Description": "Facets that reference UI.FieldGroup annotations to group action or function parameters"
},
"Facet": {
"$Kind": "ComplexType",
"$Abstract": true,
Expand Down
Loading

0 comments on commit df21b99

Please sign in to comment.