Skip to content

Jdb/sort-chart-series

Administrator requested to merge jdb/sort-chart-series into main

Created by: unclejustin

This PR sorts the results for insight series data by semantic version first then alphabetically.

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

Before

PixelSnap 2022-04-05 at 16 19 49

After

PixelSnap 2022-04-05 at 16 22 25

Test plan

Unit tests have been added to test the sorting function.

The updated results of this can be seen in storybook under /?path=/story/web-insights-smartinsightsviewgridexample--smart-insights-view-grid-example and in the screenshots above.

To manually test you need to create an insight with many results. A "Detect and Track" insight would be the best choice.

App preview:

Merge request reports

Loading