Hand raise lead button in Admin GitLab Duo page empty state not working

Summary

As in title:

CleanShot_2024-07-17_at_16.27.47

Steps to reproduce

Simulate EE self-managed, sign in as admin, go to /admin/code_suggestions

What is the expected correct behavior?

Hand raise lead button should have the correct styling and trigger hand raise lead modal

Resolution notes

We should also add a feature spec for this like we have in other areas like this.

This is likely due to the modal not being loaded outside of the project or group scope.

We typically load it like this

We can likely add that to the ee/app/assets/javascripts/pages/admin/code_suggestions/index.js file, and something like this to the ee/app/views/admin/code_suggestions/index.html.haml and resolve the loading issues part of this issue.

Technical details

While updating the page design, @syarynovskyi decided to hide this button, because it's not working:

Need to remove hidden in scope of this issue.

Edited by Serhii Yarynovskyi