client/#75 - Added settings and defaults for Slack integration

This commit is contained in:
Petr Kalis 2021-06-08 11:44:39 +02:00
parent 05d24382a4
commit 9d055e9adb
5 changed files with 133 additions and 2 deletions

View file

@ -0,0 +1,18 @@
{
"publish": {
"CollectSlackFamilies": {
"enabled": true,
"optional": true,
"token": "",
"profiles": [
{
"families": [],
"hosts": [],
"tasks": [],
"channel": [],
"message": ""
}
]
}
}
}

View file

@ -167,5 +167,8 @@
},
"project_manager": {
"enabled": true
},
"slack": {
"enabled": true
}
}

View file

@ -66,6 +66,10 @@
"type": "schema",
"name": "schema_project_deadline"
},
{
"type": "schema",
"name": "schema_project_slack"
},
{
"type": "schema",
"name": "schema_project_maya"

View file

@ -0,0 +1,89 @@
{
"type": "dict",
"key": "slack",
"label": "Slack",
"collapsible": true,
"is_file": true,
"children": [
{
"type": "dict",
"collapsible": true,
"key": "publish",
"label": "Publish plugins",
"children": [
{
"type": "dict",
"key": "CollectSlackFamilies",
"label": "Notification to Slack",
"use_label_wrap": true,
"children": [
{
"type": "label",
"label": ""
},
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
},
{
"type": "boolean",
"key": "optional",
"label": "Optional"
},
{
"type": "text",
"key": "token",
"label": "Auth Token"
},
{
"type": "list",
"collapsible": true,
"key": "profiles",
"label": "Profiles",
"object_type": {
"type": "dict",
"children": [
{
"key": "families",
"label": "Families",
"type": "list",
"object_type": "text"
},
{
"key": "tasks",
"label": "Task names",
"type": "list",
"object_type": "text"
},
{
"key": "hosts",
"label": "Host names",
"type": "list",
"object_type": "text"
},
{
"type": "separator"
},
{
"type": "list",
"object_type": "text",
"key": "channel",
"label": "Channel"
},
{
"type": "text",
"multiline": true,
"key": "message",
"label": "Message"
}
]
}
}
]
}
]
}
]
}

View file

@ -82,7 +82,8 @@
"label": "Workspace name"
}
]
}, {
},
{
"type": "dict",
"key": "sync_server",
"label": "Site Sync",
@ -114,7 +115,8 @@
}
}
]
},{
},
{
"type": "dict",
"key": "deadline",
"label": "Deadline",
@ -206,6 +208,21 @@
"label": "Enabled"
}
]
},
{
"type": "dict",
"key": "slack",
"label": "Slack Notifications",
"collapsible": true,
"require_restart": true,
"checkbox_key": "enabled",
"children": [
{
"type": "boolean",
"key": "enabled",
"label": "Enabled"
}
]
}
]
}