Skip to content

Add 1 click creation for search based insight creation UI

Administrator requested to merge code-insights/one-click-creation into main

Created by: vovakulikov

Closes https://github.com/sourcegraph/sourcegraph/issues/21323

This PR adds a button to the search page → 'Create Insight' which actually leads the user to the creation UI with prefilled query and repo values from the search query on the search page.

Progress checklist

  • Add 1 click create functionality
  • Write unit test for URL query params parse logic
  • Add a centralized way for code insight experimental checks
  • Proofread the create button text

Search page with insight button

image

Search based creation UI with pre-filled repo and query inputs

image

Merge request reports

Loading