Disable Create MR with Duo and convert to Jenkins CI button when enablement checks fail

Description

UI buttons that initiate a remote flow like, Convert to GitLab CI/CD and Create MR with Duo should be disabled when enablement checks fail

Steps to reproduce

  • Enable ai_duo_agent_issue_to_mr FF for your user
  • Open an existing issue in a project where you have < developer access
  • Button should be visible but when you click the button, you get a 403 response

Expected Behaviour

Button should not be visible when the action fails.

Proposed Solution

We have a duo workflow status check in graphql project api that could be used to facilitate the button disablement.

Edited by 🤖 GitLab Bot 🤖