Skip to content

Commit

Permalink
HCK-8877: add directives property (#13)
Browse files Browse the repository at this point in the history
* add directives for schema level

* add tooltip for field level directives

* add directives for scalars

* add directives for objects

* add directives for interfaces

* add directives for unions

* add directives for enums

* add directives for inputs

---------

Co-authored-by: Vitalii Bedletskyi <[email protected]>
  • Loading branch information
taras-dubyk and VitaliiBedletskyi authored Dec 4, 2024
1 parent 56e0ca4 commit 3851ea3
Show file tree
Hide file tree
Showing 2 changed files with 103 additions and 69 deletions.
58 changes: 5 additions & 53 deletions properties_pane/container_level/containerLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,59 +170,11 @@ making sure that you maintain a proper JSON format.
},
{
"propertyName": "Directives",
"propertyKeyword": "directives",
"propertyTooltip": "",
"propertyType": "group",
"structure": [
{
"propertyName": "Directive",
"propertyKeyword": "directive",
"propertyTooltip": "",
"propertyType": "text"
},
{
"propertyName": "Description",
"propertyKeyword": "description",
"propertyTooltip": "Popup for multi-line text entry",
"propertyType": "details",
"template": "textarea"
},
{
"propertyName": "Arguments",
"propertyKeyword": "arguments",
"propertyTooltip": "Popup for multi-line text entry",
"propertyType": "details",
"template": "textarea",
"markdown": false
},
{
"propertyName": "Applicable elements",
"propertyKeyword": "dropdownProp",
"propertyTooltip": "Select from list of options",
"propertyType": "multipleCheckboxSelect",
"options": [
"ARGUMENT_DEFINITION",
"ENUM",
"ENUM_VALUE",
"FIELD",
"FIELD_DEFINITION",
"FRAGMENT_DEFINITION",
"FRAGMENT_SPREAD",
"INLINE_FRAGMENT",
"INPUT_FIELD_DEFINITION",
"INPUT_OBJECT",
"INTERFACE",
"MUTATION",
"OBJECT",
"QUERY",
"SCALAR",
"SCHEMA",
"SUBSCRIPTION",
"UNION",
"VARIABLE_DEFINITION"
]
}
]
"propertyKeyword": "directive",
"propertyTooltip": "Schema directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
},
{
"propertyName": "Comments",
Expand Down
114 changes: 98 additions & 16 deletions properties_pane/field_level/fieldLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -143,9 +143,9 @@ making sure that you maintain a proper JSON format.
"markdown": false
},
{
"propertyName": "Directive",
"propertyName": "Directives",
"propertyKeyword": "directive",
"propertyTooltip": "Popup for multi-line text entry",
"propertyTooltip": "Field directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
Expand Down Expand Up @@ -186,9 +186,9 @@ making sure that you maintain a proper JSON format.
"markdown": false
},
{
"propertyName": "Directive",
"propertyName": "Directives",
"propertyKeyword": "directive",
"propertyTooltip": "Popup for multi-line text entry",
"propertyTooltip": "Field directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
Expand Down Expand Up @@ -231,9 +231,9 @@ making sure that you maintain a proper JSON format.
"markdown": false
},
{
"propertyName": "Directive",
"propertyName": "Directives",
"propertyKeyword": "directive",
"propertyTooltip": "Popup for multi-line text entry",
"propertyTooltip": "Field directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
Expand Down Expand Up @@ -274,9 +274,9 @@ making sure that you maintain a proper JSON format.
"markdown": false
},
{
"propertyName": "Directive",
"propertyName": "Directives",
"propertyKeyword": "directive",
"propertyTooltip": "Popup for multi-line text entry",
"propertyTooltip": "Field directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
Expand Down Expand Up @@ -317,9 +317,9 @@ making sure that you maintain a proper JSON format.
"markdown": false
},
{
"propertyName": "Directive",
"propertyName": "Directives",
"propertyKeyword": "directive",
"propertyTooltip": "Popup for multi-line text entry",
"propertyTooltip": "Field directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
Expand Down Expand Up @@ -394,12 +394,94 @@ making sure that you maintain a proper JSON format.
"hidden": true
}
],
"scalar": ["name", "description", "comments"],
"enum": ["name", "enum", "description", "comments"],
"object": ["name", "description", "required", "minProperties", "maxProperties", "comments"],
"interface": ["name", "description", "required", "minProperties", "maxProperties", "comments"],
"union": ["name", "description", "required", "comments"],
"input": ["name", "description", "required", "comments"],
"scalar": [
"name",
"description",
{
"propertyName": "Directives",
"propertyKeyword": "directive",
"propertyTooltip": "Scalar directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
},
"comments"
],
"enum": [
"name",
"enum",
"description",
"required",
{
"propertyName": "Directives",
"propertyKeyword": "directive",
"propertyTooltip": "Enum directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
},
"comments"
],
"object": [
"name",
"description",
"required",
{
"propertyName": "Directives",
"propertyKeyword": "directive",
"propertyTooltip": "Object directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
},
"minProperties",
"maxProperties",
"comments"
],
"interface": [
"name",
"description",
"required",
{
"propertyName": "Directives",
"propertyKeyword": "directive",
"propertyTooltip": "Interface directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
},
"minProperties",
"maxProperties",
"comments"
],
"union": [
"name",
"description",
"required",
{
"propertyName": "Directives",
"propertyKeyword": "directive",
"propertyTooltip": "Union directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
},
"comments"
],
"input": [
"name",
"description",
"required",
{
"propertyName": "Directives",
"propertyKeyword": "directive",
"propertyTooltip": "Input directives",
"propertyType": "details",
"template": "textarea",
"markdown": false
},
"comments"
],
"directive": [
"name",
"description",
Expand Down

0 comments on commit 3851ea3

Please sign in to comment.