Skip to content

Update Role Targeting UI in Broadcast Messages

What does this MR do and why?

Resolves #409908 (closed)

Currently, target roles settings in Broadcast Messages implies that the message will only display on projects and groups page to users that have selected roles in that project or group. But this is not intuitive to admins creating the message.

This MR updates that part of the form, suggested here, by adding a select with three target options to emphasize the different targeting scenarios and to only show the extra form fields when the corresponding option is selected.

Screenshots or screen recordings

Screenshots are required for UI changes, and strongly recommended for all other merge requests.

Screenshots
Currently Screenshot_2023-06-19_at_3.03.29_PM
Option 1 (default when creating message) Screenshot_2023-06-19_at_3.03.47_PM
Option 2 Screenshot_2023-06-19_at_3.04.08_PM
Option 3 Screenshot_2023-06-19_at_3.04.25_PM

How to set up and validate locally

  1. Login as admin
  2. Go to /admin/broadcast_messages

MR acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Roy Liu

Merge request reports

Loading