Unify UX for mentioning GitLabDuo and Duo Developer in comments

Problem

The UX for mentioning GitLabDuo and the Duo Developer (and other flows) in comments is inconsistent:

  • GitLabDuo uses a nice animated system message (see !238376 screen recording). It disappears when the session is over.
  • Duo Developer (and other flows) currently use a plain comment message.

The Duo Reviewer flow has received more UX work, and the Duo Developer should have just as smooth a UX as the Duo Reviewer.

Desired:

image.png

Currently

image.png

Desired Outcome

Consolidate the UX for mentioning GitLabDuo and Duo Developer so that:

  1. Duo Developer (and other flows) use the same animated system message approach as GitLabDuo / Duo Reviewer.

  2. The session activity is preserved in the activity log once the session is over (as we already do for GitLabDuo).

    image.png

Implementation notes

  • The methods added for GitLabDuo in !238376 (merged) can largely be reused; the adapters are expected to be ~90% identical, so we should reuse as much as possible.
  • A small design review with UX (Emily Bauman) is planned on the MR.

Edited by 🤖 GitLab Bot 🤖