Skip to content

Instantly share code, notes, and snippets.

@Startouf
Created February 24, 2020 18:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Startouf/e5c455eb5f82f6d315d62e3ad8b4b36e to your computer and use it in GitHub Desktop.
Save Startouf/e5c455eb5f82f6d315d62e3ad8b4b36e to your computer and use it in GitHub Desktop.
{
"type": "home",
"blocks": [
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Don't Slack Evil Performance*"
},
"accessory": {
"type": "button",
"text": {
"type": "plain_text",
"text": "Manage App Settings",
"emoji": true
},
"value": "app_settings"
}
},
{
"type": "section",
"text": {
"type": "plain_text",
"text": " :wave: Hello Cyril · find your DSE stats below",
"emoji": true
}
},
{
"type": "divider"
},
{
"type": "section",
"fields": [
{
"type": "mrkdwn",
"text": "*Current Quarter*\n(ends in 53 days)\nNumber of slack messages: 42\nEvil messages: 24\nImproved messages with DSE: 12/24"
},
{
"type": "mrkdwn",
"text": "*Top Channels with evil messages*\n:airplane: General · 30% (142)\n:taxi: Code Reviews · 66% (43) \n:knife_fork_plate: Direct Messages · 18% (75)"
}
]
},
{
"type": "context",
"elements": [
{
"type": "image",
"image_url": "https://api.slack.com/img/blocks/bkb_template_images/placeholder.png",
"alt_text": "placeholder"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "*Messages Awaiting Englightnment*"
}
},
{
"type": "divider"
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Submitted by"
},
{
"type": "image",
"image_url": "https://api.slack.com/img/blocks/bkb_template_images/profile_3.png",
"alt_text": "Evil Guy"
},
{
"type": "mrkdwn",
"text": "*Evil Guy*"
}
]
},
{
"type": "section",
"text": {
"type": "mrkdwn",
"text": "Channel : *#general*\nEstimated evil index: :imp::imp::imp: · *quite evil*\nDate: *2019/10/16 8:44*\n*<fakelink.toUrl.com|Link to message>*"
},
"accessory": {
"type": "image",
"image_url": "https://api.slack.com/img/blocks/bkb_template_images/creditcard.png",
"alt_text": "credit card"
}
},
{
"type": "context",
"elements": [
{
"type": "mrkdwn",
"text": "Original\n> Hey, are you really kidding me ??! Seriously this code is so shitty even my 5-year-old son could have done better !\n\nKindly suggested alternative\n\n> Hey, I'm a bit surprised by this :smiley:. This code feels like it could be improved without too much effort."
}
]
},
{
"type": "actions",
"elements": [
{
"type": "button",
"text": {
"type": "plain_text",
"text": "Approve",
"emoji": true
},
"style": "primary",
"value": "approve"
},
{
"type": "button",
"text": {
"type": "plain_text",
"text": "Decline",
"emoji": true
},
"style": "danger",
"value": "decline"
},
{
"type": "button",
"text": {
"type": "plain_text",
"text": "View Message",
"emoji": true
},
"value": "details"
}
]
},
{
"type": "divider"
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment