Skip to content

Add code suggestions UI

Doug Stull requested to merge 405126-add-code-suggestions-ui into master

What does this MR do and why?

Adds a group based UI for controlling enrollment into the ai assisted web ide code suggestions using group

📓

  • documentation MR !117029 (merged) is a dependency of this MR.
  • design/etc as per #405126

Screenshots or screen recordings

Screenshot_2023-04-07_at_1.15.12_PM

How to set up and validate locally

  1. Setup gdk to simulate SaaS - https://docs.gitlab.com/ee/development/ee_features.html#simulate-a-saas-instance and restart GDK
  2. Enable the ai_assist_ui and ai_assist_flag
    Feature.enable(:ai_assist_ui)
    Feature.enable(:ai_assist_flag)
  3. Create new top level group or use an existing.
  4. Visit the admin path to edit the plan of the group such as: http://gdk.test:3000/admin/groups/non-owner-notification/edit
  5. Update the plan to be Ultimate and Save

Screenshot_2023-04-07_at_11.07.12_AM

  1. Visit the group's Settings -> General -> Permissions and group features
  2. Find the Code Suggestions area and toggle/save the setting.

MR acceptance checklist

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

Related to #405126

Edited by Doug Stull

Merge request reports