-
-
Notifications
You must be signed in to change notification settings - Fork 9.8k
[Notifier] Add support for confirm option in Slack buttons API
#62039
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
Conversation
src/Symfony/Component/Notifier/Bridge/Slack/Block/SlackActionsBlock.php
Outdated
Show resolved
Hide resolved
xabbuh
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it worth it to expand the readme around this? Or is the feature self-discoverable enough?
I'm fine with updating the readme, if needed. I honestly tried to stick to the existing pattern in the codebase. The confirm array has very specific structure that can be described using docblock, however this seems not to be the approach through the code base, so I didnt do it here aswell. Ultimately the usage of this code requires having Slack API doc opened in another tab anyway. At least this is my experience with it If you insist on the readme I'll add it, no problem |
|
Thank you @allflame. |
| 'title' => ['type' => 'plaint_text', 'text' => 'Report a bug'], | ||
| 'text' => ['type' => 'plaint_text', 'text' => 'By proceeding I confirm I\'ve read the guidelines.'], | ||
| 'confirm' => ['type' => 'plaint_text', 'text' => 'Proceed'], | ||
| 'deny' => ['type' => 'plaint_text', 'text' => 'Go back to reading'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Did you mean plain_text?
Allow sending
confirmoption to the Slack API to allow for the confirm dialog to be triggered upon press of a button in the Slack clients