Open MetcalfeTom opened 4 years ago
@MetcalfeTom I've allocated some time to review your PR this week. Something I am thinking about in the background is refactoring: a few of these platforms (Slack, Discord, MSFT Teams, etc.) use the same communication protocol (via web hook), so I'm wondering if I can do some refactoring here (it should be possible), and if so, whether this formatting update would be compatible with other platforms than Slack.
Cool
Teams supports a similar formatting feature to blocks called cards. Discord does not have any kind of fancy formats. In all three cases the JSON payloads would still differ
@MetcalfeTom it looks great! I added a few question/comments/concerns. For now, I'll suggest we push this formatting update only for Slack as it does not generalize to all platforms using webhook as a communication protocol.
@VictorSanh Thanks for taking the time to review! 🙌
I followed up on your comments and added your suggestions. Not sure you'd construct the refactor between this, discord and teams, but following that PR I would gladly take a stab at updating the Teams format to use cards too 🚀
Happy holidays! 🎅🏼 I thought the slack message formatting looked a little sad, so I updated it. I used the block kit builder to update the messages.
I also updated the
slack_sender
to use usernames instead ofuser_id
s (perhaps I used this incorrectly, but posting theuser_id
never tagged the right person)The reports look like this now: