Something went wrong while fetching comments. Please try again.
Created by: vovakulikov
Closes https://github.com/sourcegraph/sourcegraph/issues/24201
This PR moves code insights codebase from ./src/insights/
to ./src/enterprise/insights
. We already moved some parts from the code insight codebase to simplify this PR codebase migration. https://github.com/sourcegraph/sourcegraph/pull/24677. In this PR we do two things
At the moment we have code insights not only on the dashboard page but we render them on the directory and home (search) page. Historically at some point, we used the Extension API for fetching data for code insights. For that, we had introduced some extension API methods getHomepageViews
, getDirectoryView
, ..etc. At the moment we don't use this API for code insights since we had moved our data fetching from Extension API to the main app (PR https://github.com/sourcegraph/sourcegraph/pull/24559). But we still want to support these extension views. But we have code insights only in the enterprise version. In order to render extension like views on in OSS version and render extension like views with Code insights view in the enterprise version, this PR introduces component separation. You can find this system in /src/insights/sections/
components.