iachat/lib/integrations/slack
Muhsin Keloth 44fab70048
feat: Add support for grouped file uploads in Slack (#12454)
Fixes
https://linear.app/chatwoot/issue/CW-5646/add-support-for-grouped-file-uploads-in-slack

Previously, when sending multiple attachments to Slack, we uploaded them
one by one. For example, sending 5 images would result in 5 separate
Slack messages. This created clutter and a poor user experience, since
Slack displayed each file as an individual message.
This PR updates the implementation to group all attachments from a
message and send them as a single Slack message. As a result,
attachments now appear together in one grouped block, providing a much
cleaner and more intuitive experience for users.

**Before:** 
Each file uploaded as a separate Slack message.
<img width="400" height="800" alt="before"
src="https://github.com/user-attachments/assets/c8c7f666-549b-428f-bd19-c94e39ed2513"
/>

**After:** 
All files from a single message grouped and displayed together in one
Slack message (similar to how Slack natively handles grouped uploads).
<img width="400" height="800" alt="after"
src="https://github.com/user-attachments/assets/0b1f22d5-4d37-4b84-905a-15e742317e72"
/>

**Changes**

- Upgraded Slack file upload implementation to use the new multiple
attachments API available in slack-ruby-client `v2.7.0`.
- Updated attachment handling to upload all files from a message in a
single API call.
- Enabled proper attachment grouping in Slack, ensuring related files
are presented together.
2025-09-24 11:31:06 +05:30
..
channel_builder.rb fix: Include private channels in Slack integration pagination (#11751) 2025-06-17 16:44:56 -07:00
hook_builder.rb feat: move Slack config to installation settings (#11548) 2025-05-23 01:07:35 -07:00
incoming_message_builder.rb chore: Handle duplicate Webhooks from slack (#9187) 2024-04-04 17:00:45 +05:30
link_unfurl_formatter.rb feat: Slack link unfurling (#7940) 2023-09-29 19:35:56 +05:30
send_on_slack_service.rb feat: Add support for grouped file uploads in Slack (#12454) 2025-09-24 11:31:06 +05:30
slack_link_unfurl_service.rb feat: Slack link unfurling (#7940) 2023-09-29 19:35:56 +05:30
slack_message_helper.rb chore: Handle duplicate Webhooks from slack (#9187) 2024-04-04 17:00:45 +05:30