Code Insights: Fix query data points link generation
Created by: vovakulikov
Closes https://github.com/sourcegraph/sourcegraph/issues/38097
During the unification work and refactoring around chart data logic we lost a few important things in the link generation logic (repositories filter and context filter that we recently added in the drill-down filters)
Test plan
- Go to the dashboard page
- Click any data points
- Make sure that the search page is opened with the right query/filters/context values
- Go to the standalone insight page
- Change filters and check the search page again
- Go to the edit UI and make sure that the live preview data points links open the search page with the right query/repositories/filters values
App preview:
Check out the client app preview documentation to learn more.