Add 1 click creation for search based insight creation UI
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