Skip to content

Commit

Permalink
add config for help message
Browse files Browse the repository at this point in the history
  • Loading branch information
taras-dubyk committed Dec 18, 2024
1 parent 6787d7f commit a98b86e
Show file tree
Hide file tree
Showing 2 changed files with 138 additions and 17 deletions.
2 changes: 2 additions & 0 deletions localization/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,8 @@
"PROPERTIES_PANE___MAX_VARIABLE": "Max variable",
"PROPERTIES_PANE___BACKWARDS": "Backwards",
"PROPERTIES_PANE___NORMALIZATION": "Normalization",
"PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE": "Structured directive format not supported",
"PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY": "The current version of the GraphQL plugin allows you to attach directives as raw input. Please ensure that you follow the GraphQL specifications to generate a correct script.",
"CENTRAL_PANE___TAB_MONGODB_VIEW_SCRIPT": "Create View Script",
"CENTRAL_PANE___TAB_DIAGRAM": "Operations ERD",
"CONTEXT_MENU___ADD_BUCKET": "Add graph",
Expand Down
153 changes: 136 additions & 17 deletions properties_pane/field_level/fieldLevelConfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -221,7 +228,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -288,7 +302,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -353,7 +374,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -418,7 +446,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -521,7 +556,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -556,7 +598,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -597,7 +646,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -632,7 +688,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -672,7 +735,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -707,7 +777,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -749,7 +826,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -784,7 +868,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -826,7 +917,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -861,7 +959,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -901,7 +1006,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down Expand Up @@ -936,7 +1048,14 @@ making sure that you maintain a proper JSON format.
"options": [
"Raw"
],
"defaultValue": "Raw"
"defaultValue": "Raw",
"helpInfo": {
"type": "modal",
"title": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_TITLE",
"content": "PROPERTIES_PANE___DIRECTIVES_INFO_MODAL_BODY",
"featureNameForHelp": "GraphQL directives",
"buttons": ["contactSupport", "ok"]
}
},
{
"propertyName": "Raw directive",
Expand Down

0 comments on commit a98b86e

Please sign in to comment.