Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(slack/send-block-kit-message): allow to set unfurl properties in block messages #12003

Merged

Conversation

joscha
Copy link
Contributor

@joscha joscha commented May 20, 2024

WHY

Adds unfurl_media and unfurl_links options to slack send-block-kit-message action.

Background

Contrary to send-custom-message which had this functionality for a while:

unfurl_links: {
propDefinition: [
common.props.slack,
"unfurl_links",
],
},
unfurl_media: {
propDefinition: [
common.props.slack,
"unfurl_media",
],
},

currently, it is not possible to define whether to unfurl links and media in block messages or not.

This adds the two optional properties to the send-block-kit-message action.

Note: there seem to be quite a few props that are not passed through to custom actions from

propDefinitions: {
- is there a specific reason for it? Otherwise we could all add them to send-message common module here: and they'd automatically inherited via in each of the consumers. That way all current supported options plus all future new options would automatically be supported by all slack action providers, which feels like is what we want?

Copy link

vercel bot commented May 20, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Ignored Deployments
Name Status Preview Comments Updated (UTC)
docs-v2 ⬜️ Ignored (Inspect) Visit Preview May 20, 2024 11:43am
pipedream-docs-redirect-do-not-edit ⬜️ Ignored (Inspect) May 20, 2024 11:43am

@dylburger dylburger added the User submitted Submitted by a user label May 20, 2024
@dylburger dylburger added this to Ready for PR review in Component (Source and Action) Backlog May 20, 2024
@dylburger dylburger added the triaged For maintainers: This issue has been triaged by a Pipedream employee label May 20, 2024
@pipedream-component-development
Copy link
Collaborator

Thank you so much for submitting this! We've added it to our backlog to review, and our team has been notified.

@pipedream-component-development
Copy link
Collaborator

Thanks for submitting this PR! When we review PRs, we follow the Pipedream component guidelines. If you're not familiar, here's a quick checklist:

Copy link
Collaborator

@michelle0927 michelle0927 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you for your contribution! Looks good, ready for QA

@michelle0927 michelle0927 moved this from Ready for PR review to Ready for QA in Component (Source and Action) Backlog May 20, 2024
@joscha
Copy link
Contributor Author

joscha commented May 20, 2024

Thank you for your contribution! Looks good, ready for QA

Thank you! Did you see my note? Would it make sense to pass through properties by default?

@joscha
Copy link
Contributor Author

joscha commented May 20, 2024

Thank you for your contribution! Looks good, ready for QA

And one more question: is there an easy way for me to test such changes against my pipedream workspace?

@michelle0927
Copy link
Collaborator

Thank you for your contribution! Looks good, ready for QA

Thank you! Did you see my note? Would it make sense to pass through properties by default?

Hi @joscha . I think it makes sense to pass through the available properties. We'll be making some updates to Slack components in the near future. @malexanderlim This is something to consider for the upcoming Slack Usability Audit.

To test changes you make to components, you can use the Pipedream CLI and pd publish actions to your workspace. They'll show up under "My Actions" when you're adding a step in the workflow.

@joscha
Copy link
Contributor Author

joscha commented May 20, 2024

Hi @joscha . I think it makes sense to pass through the available properties. We'll be making some updates to Slack components in the near future. @malexanderlim This is something to consider for the upcoming Slack Usability Audit.

After we merged this PR, I'd open another one that reuses the properties, is that okay?

To test changes you make to components, you can use the Pipedream CLI and pd publish actions to your workspace. They'll show up under "My Actions" when you're adding a step in the workflow.

Is there a special flow I can use in this component, especially because it references multiple files, etc.? The pipedream cli doesn't discover the dependency graph and uploads all needed references, does it?

@vunguyenhung vunguyenhung moved this from Ready for QA to In QA in Component (Source and Action) Backlog May 21, 2024
@vunguyenhung vunguyenhung moved this from In QA to Ready for release in Component (Source and Action) Backlog May 21, 2024
@vunguyenhung
Copy link
Collaborator

Hi everyone, all test cases are passed! Ready for release!

Test report
https://vunguyenhung.notion.site/feat-slack-send-block-kit-message-allow-to-set-unfurl-properties-in-block-messages-12003-c26b617a60ec483e9c40c3a6f649f942

@joscha
Copy link
Contributor Author

joscha commented May 21, 2024

Hi everyone, all test cases are passed! Ready for release!

Test report
https://vunguyenhung.notion.site/feat-slack-send-block-kit-message-allow-to-set-unfurl-properties-in-block-messages-12003-c26b617a60ec483e9c40c3a6f649f942

Now I'm hungry 😋

@michelle0927
Copy link
Collaborator

@joscha

Hi @joscha . I think it makes sense to pass through the available properties. We'll be making some updates to Slack components in the near future. @malexanderlim This is something to consider for the upcoming Slack Usability Audit.

After we merged this PR, I'd open another one that reuses the properties, is that okay?

Yes, you can open another PR with the additional changes.

To test changes you make to components, you can use the Pipedream CLI and pd publish actions to your workspace. They'll show up under "My Actions" when you're adding a step in the workflow.

Is there a special flow I can use in this component, especially because it references multiple files, etc.? The pipedream cli doesn't discover the dependency graph and uploads all needed references, does it?

You can git clone the pipedream repo or your forked repo. Then use the pipedream CLI to publish individual actions to your workspace. Publishing the action will include any dependencies that are needed.

@michelle0927 michelle0927 merged commit 1b11a28 into PipedreamHQ:master May 21, 2024
10 checks passed
@michelle0927 michelle0927 moved this from Ready for release to Done in Component (Source and Action) Backlog May 21, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
triaged For maintainers: This issue has been triaged by a Pipedream employee User submitted Submitted by a user
Development

Successfully merging this pull request may close these issues.

None yet

6 participants