Code Insights: Remove views area page
Created by: vovakulikov
Closes https://github.com/sourcegraph/sourcegraph/issues/22462
Background
Historically Code Insights pages with insights are built on top of the ViewContent
component from the /views
product area. ViewContent
uses QueryInputInViewContent
which uses a lot of infrastructure props from the top level of the app. That means that if we want to render code insights on some page we have to specify all these infrastructure props. That requires a lot of information from top-level components and usually inconvenient from a development point of view, plus that increases the complexity of using code insights as independent components.
Changes
This PR removes /views
area and all related components. By this, all consumers of the InsightsViewContent
component were supplied and currently don't require a lot of infrastructure props (like pattern type, setting cascade, etc)