Skip to content

Code Insights: Add filters section to standalone page (backend insight)

Administrator requested to merge vk/add-filters-to-standalone-page into main

Created by: vovakulikov

Closes: https://github.com/sourcegraph/sourcegraph/issues/34763

Background

This PR adds the drill-down panel component (horizontal mode) to the standalone backend insight page.

Screenshot 2022-05-06 at 17 16 38

How to test

  • Gather the insight id that you want to look at on the standalone page (you can go to the edit UI of this insight and copy the insight id in URL of edit page
  • Go to the /insights/insight/<id> URL

Test plan

  • Make sure that filter logic works as expected (both search and repositories filters)
  • Make sure that "save as new view" logic creates a new insights with pre-defined filters

Follow up work

In this version of this component this filter view doesn't have a collapsed state (we have this state in our designs about this panel here

Follow up issue: https://github.com/sourcegraph/sourcegraph/issues/35044

App preview:

Check out the client app preview documentation to learn more.

Merge request reports

Loading