Show composite accounts as agents

What does this MR do and why?

Show composite accounts as agents

This code change adds a new "Agent" badge feature to identify users who have composite identity enforcement enabled. When users have this special setting turned on, they will now display an "Agent" badge next to their name in various parts of the application - including autocomplete dropdowns when mentioning users, and in sidebar participant lists.

The badge appears as a blue pill-shaped label with "Agent" text. The implementation involves updating the user data structures to include this new property, modifying the display templates to show the badge when appropriate, and adding the necessary styling and translations. Tests were also added to ensure the feature works correctly in different scenarios.

References

#580296

Screenshots or screen recordings

Assignee dropdown

Before After
Screenshot 2025-12-10 at 14.18.50.png Screenshot_2025-12-10_at_13.47.10
Screenshot 2025-12-10 at 14.19.11.png Screenshot_2025-12-10_at_13.47.32

mentions dropdown

Before After
Screenshot 2025-12-10 at 14.18.26.png Screenshot_2025-12-10_at_13.46.54

Screen_Recording_2025-12-10_at_10.28.26

How to set up and validate locally

  1. Have AI features working
  2. Setup the agent to showup as an assignee account. You can do it the normal way, or hacky way
    1. Normal, but harder
      1. Setup a service account/agent
      2. Setup a trigger on mention and assignee
    2. Hack: Use this patch to force all users to be "Agents" to test the styling composite-identity-enforced-test.patch
  3. In an issue, open the assignee dropdown
  4. Notice the agent has the label
  5. @ mention in a comment
  6. Notice the agent has the label

MR acceptance checklist

Evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Frédéric Caplette

Merge request reports

Loading