jshirley / slack-ask

A Slack app for asking questions of people and ensuring they don't get lost.
Apache License 2.0
3 stars 0 forks source link

Dialogs in config! #5

Closed jshirley closed 6 years ago

jshirley commented 6 years ago

I made it so that you can specify the dialog elements in configuration. Since Slack is pretty picky about the dialogs it accepts, I'm validating the key stuff and also only providing configuration for the elements.

Configuration looks like:

dialog:
  - type: text
    name: summary
    label: "The one liner..."
    placeholder: "A short summary of your question"
  - type: textarea
    name: description
    label: "Details"
    placeholder: "Anything you've tried so far, stack traces, etc (use JIRA syntax)"
  - type: select
    name: priority
    label: "Currently blocked?"
    value: "medium"
    options:
      - label: "No"
        value: "medium"
      - label: "Yes"
        value: "high"
      - label: "About to page someone!"
        value: "highest"
gphat commented 6 years ago

👍

Assuming that pile of validation logic works ok, seems fine to me!