Code Insights: Migrate dashboard chart cards to new chart and card components API
Created by: vovakulikov
Based on https://github.com/sourcegraph/sourcegraph/pull/33676 Closes https://github.com/sourcegraph/sourcegraph/issues/32944
Background
In this PR we migrate our charts on the dashboard page. This implies that we don't use anymore shared model around charts from the 'sourcegraph' package that we used to have when we were dealing with extension API in code insights.
Since this PR is turned out a bit bigger than I expected here is some important parts (comments) of this PR
- Migration Built In (runtime) insight card
- Improvements around fetching types in generic insight fetcher hook`
- Adjust backend insight chart data deserialisation
- Migrate Backend insight card
Test plan
- Make sure that all dashboard charts (lang stats, search based, capture group) work properly in different browsers (Safari, Chrome, Firefox)
- Make sure that datum links work properly and have no regression
- Make sure that dashboard looks correct on different viewport sizes
App preview:
Check out the client app preview documentation to learn more.