Conversation
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2652 +/- ##
=======================================
Coverage 93.44% 93.44%
=======================================
Files 37 37
Lines 7668 7674 +6
Branches 669 669
=======================================
+ Hits 7165 7171 +6
Misses 498 498
Partials 5 5 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
eb1ab59 to
11f748d
Compare
11f748d to
e42fcbb
Compare
7dfd2f0 to
51f9dcd
Compare
a138983 to
a027bce
Compare
a027bce to
6bc90b1
Compare
b06218f to
6125690
Compare
6125690 to
11f1d84
Compare
WilliamBergamin
left a comment
There was a problem hiding this comment.
These changes look good 💯
I'm just skeptical about including the feature in examples/socket-mode/app.js, I left a comment about that
examples/socket-mode/app.js
Outdated
|
|
||
| await say(`${command.text}`); | ||
| }); | ||
|
|
There was a problem hiding this comment.
I don't think this is the best place for this 😅
This example showcases the most used features of slack, for example it doesn't include custom steps or link unfurls so I don't think we should put work objects here
A dedicated sample in https://github.com/slack-samples may be a better place for this 🤔
I also heard that @zimeg may be working on a repository in https://github.com/slack-samples where we can showcase all of slacks features, but I'm not sure if there is a timeline for this
There was a problem hiding this comment.
Fair! I'll remove it from this PR. Maybe we can just show sample code snippets in the docs for now
There was a problem hiding this comment.
😳 Apologies for missing this note! I'm hoping soon we have collections of focused examples to reference these implementations in code and documentation elsewhere.
I'll keep a note of commit 0657cab since this remains nice code!
There was a problem hiding this comment.
I'm hoping soon we have collections of focused examples to reference these implementations in code and documentation elsewhere
Yeah, once this is released I'm going to add code snippets to the docs. Separately, it might still be nice to add work objects to a sample app somewhere
| ``` | ||
| // can get this from OAuth & Permission page in app configuration | ||
| export BOT_TOKEN=YOUR_SLACK_BOT_TOKEN | ||
| export SLACK_BOT_TOKEN=YOUR_SLACK_BOT_TOKEN |
There was a problem hiding this comment.
Praise 🚀 definitely keep this!!
There was a problem hiding this comment.
🌟 praise: Incredible fix! Thanks for finding it too.
| entity_url?: string; | ||
| external_ref?: { id: string; type?: string }; | ||
| app_unfurl_url?: string; | ||
| message_ts?: string; | ||
| channel?: string; |
There was a problem hiding this comment.
I think there might be some type tests in this project, but I'm not sure they cover this interface, if they do they might be worth updating, else this looks good to me 💯
There was a problem hiding this comment.
I see these tests in test/types/view.test-d.ts but they don't validate specific properties in ViewOutput 👀
// view_submission
app.view('modal-id', async ({ body, view }) => {
// TODO: the body can be more specific (ViewSubmitAction) here
expectType<SlackViewAction>(body);
expectType<ViewOutput>(view);
// TODO: assert on type assignability for `ack`
});
8cdab4e to
90accee
Compare
90accee to
0657cab
Compare
| ``` | ||
| // can get this from OAuth & Permission page in app configuration | ||
| export BOT_TOKEN=YOUR_SLACK_BOT_TOKEN | ||
| export SLACK_BOT_TOKEN=YOUR_SLACK_BOT_TOKEN |
There was a problem hiding this comment.
🌟 praise: Incredible fix! Thanks for finding it too.
Changes applied but reviewer is OOO
Summary
This PR pulls in the types and web-api node-slack-sdk packages and updates the
view_submissionevent propertiesRequirements (place an
xin each[ ])