Truncate project names for Slack modal when more than 75 chars
What does this MR do and why?
Resolves sentry error for Slack app incident modal form.
Slack has a limit of 75 characters for the text in dropdown options selector.
This MR adds that limit to project dropdown shown in the incident modal form.
Screenshots or screen recordings
Screenshots are required for UI changes, and strongly recommended for all other merge requests.
How to set up and validate locally
- Follow the steps to setup dev env for Slack app.
- Enable the FF
incident_declare_slash_command
. - Trigger the
/dev-gitlab incident delcare
command and see the modal. - It should work as usual for project path with less than 75 chars in it, but should truncate longer paths.
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.