InsightsList used >= when picking category leaders, so User 1 was always credited on ties. Leaders are now chosen with strict >; tied metrics show the existing equal notes and do not award strengths or improvement recommendations.
Changes
Add pickScoreLeader helper that returns null on equal scores
Award strengths only when a developer strictly leads a category
Show insights.equal.* / banner.tie copy for tied metrics and final scores
Skip category recommendations when scores are tied
Add insights-list.test.tsx coverage for ties and strict leads
Testing
pnpm exec vitest run src/features/comparison/tests/insights-list.test.tsx
Fixes tie handling in the insights comparison so User 1 is no longer always credited as the leader when scores are equal. Category leaders are now chosen with strict > comparisons, and tied metrics display the existing equal notes without awarding strengths or improvement recommendations.
Adds pickScoreLeader, which returns null when scores are tied.
Awards strengths and recommendations only when a developer strictly leads a category.
Shows tie copy for the summary, key differences, and final scores when applicable.
Adds insights-list.test.tsx coverage for tied scores and strict category leads.
Confidence Score: 5/5
The PR appears safe to merge.
Summary
InsightsList now treats equal scores as ties instead of crediting the first developer.
Comparison insights report ties when developers have equal scores.
No actionable issues found. Tests were not run because dependencies are not installed.