feat(slack): Slack Alert Details Feature #4441
Draft
+487
−33
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
make checkto catch common errors. Fixed any that came up.Description:
This PR introduces a feature to make Slack alert details collapsible by default with an expandable "Show Details" button. This addresses the issue of long alert details flooding Slack channels while maintaining full access to alert information through user interaction.
The implementation adds a new configuration option Slack.IncludeDetails that allows admin to enable/disable this feature. When enabled, alert details longer than 150 characters or containing multiple lines are automatically truncated with a "Show Details" button that expands to show the complete information. When disabled, alert will only show alert summary (exactly same as before implementation)
The user experience is significantly improved by reducing channel noise while preserving the ability to access full alert details on demand.
Which issue(s) this PR fixes:
This PR addresses this issue: #3314
Out of Scope:
N/A
Screenshots:

Option to enable Slack details feature in Admin -> Config -> Slack:
Sample alert, details collapsed by default:

Expanded details:

Describe any introduced user-facing changes:
Describe any introduced API changes:
Additional Info:
Testing: Added 20 comprehensive test cases covering all scenarios across notification and config modules