Skip to content

Commit b900add

Browse files
committed
feat(preprod): Sort insight diff by total potential savings
Sort insights by total_savings_change descending within each tab so the biggest opportunities surface first. Fixes EME-997
1 parent 0dc0fdd commit b900add

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

static/app/views/preprod/buildComparison/main/insightComparisonSection.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,10 @@ export function InsightComparisonSection({
150150
}
151151
}
152152

153+
for (const insights of Object.values(byTab)) {
154+
insights.sort((a, b) => b.total_savings_change - a.total_savings_change);
155+
}
156+
153157
return {
154158
byTab,
155159
counts: {

0 commit comments

Comments
 (0)