Skip to content

Add a "preview search" button to the search insight creation UI query section

Created by: Joelkw

Internal and external users have asked about getting a "preview" function for the search, to validate that they're actually tracking the right things.

While live preview is cool and helps you "trust" insights, if you want to verify your query's results, you can't just copy/paste it due to the repo filters being input separately (which makes sense for the use cases here).

A simple version is just a button and was already in our figma mock

Note – this shouldn't just copy over your search query to a Sourcegraph search page, but also add repo: filters for every repo in the repositories field on this page.