Skip to content

[Notifier] [Slack] Add SlackPlainTextInputBlock for Slack message #60310

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

Open
wants to merge 4 commits into
base: 7.3
Choose a base branch
from

Conversation

camilleislasse
Copy link
Contributor

@camilleislasse camilleislasse commented May 1, 2025

Q A
Branch? 7.3
Bug fix? no
New feature? yes
Deprecations? no
License MIT

Add SlackPlainTextInputBlock for Slack message

  • Implemented SlackPlainTextInputBlock class to add a plain text input field to Slack messages.
  • Created tests for SlackPlainTextInputBlock to ensure proper functionality, including label, action ID, and placeholder validation.
  • Updated README with usage example for adding a plain text input to a Slack message.

Allow to do send message like that :

Capture d’écran 2025-05-01 à 12 19 56
               - Implemented SlackPlainTextInputBlock class to add a plain text input field to Slack messages.
               - Created tests for SlackPlainTextInputBlock to ensure proper functionality, including label, action ID, and placeholder validation.
               - Updated README with usage example for adding a plain text input to a Slack message.
@carsonbot

This comment has been minimized.

@carsonbot carsonbot added this to the 7.3 milestone May 1, 2025
@carsonbot carsonbot changed the title [Notifier][Slack] Add SlackPlainTextInputBlock for Slack message May 1, 2025
@@ -241,6 +241,28 @@ $chatMessage->options($options);

$chatter->send($chatMessage);
```
Adding a Plain Text Input to a Message
----------------------------
Copy link
Contributor

Choose a reason for hiding this comment

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

Suggested change
----------------------------
----------------------------

Please make the underline length match the title

@OskarStark
Copy link
Contributor

Please check fabbot.io CI

Copy link
Contributor

@OskarStark OskarStark left a comment

Choose a reason for hiding this comment

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

Can you please add a testcase where this block is used int he transport? Thanks

@camilleislasse
Copy link
Contributor Author

Can you please add a testcase where this block is used int he transport? Thanks

How can I do that? Is there a similar test for another block that I could use as a reference?

@OskarStark
Copy link
Contributor

Check the transport test, I am currently on a phone and cannot check

@camilleislasse
Copy link
Contributor Author

camilleislasse commented May 2, 2025

Check the transport test, I am currently on a phone and cannot check

Something like this?

@OskarStark
Copy link
Contributor

Yes

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment