feat: add impact delta computation with TDD tests

Implements computeImpactDeltas pure function with 8 TDD tests covering replace/add/none modes and null weight/price handling. Adds useImpactDeltas hook, categoryId to ThreadWithCandidates, and selectedSetupId state to uiStore.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-03 18:06:46 +02:00
parent 1a5e6a303e
commit 818db73432
6 changed files with 213 additions and 0 deletions

View File

@@ -40,6 +40,7 @@ interface ThreadWithCandidates {
name: string;
status: "active" | "resolved";
resolvedCandidateId: number | null;
categoryId: number;
createdAt: string;
updatedAt: string;
candidates: CandidateWithCategory[];