mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-07-22 08:48:34 +00:00
Created removalState.ts with two functions: deriveEffectiveRemovalState (single DB row → EffectiveRemovalState) and computeRemovalStatusByDeal (ordered rows → RemovalStatusByDeal map, owns deduplication). Created removalState.test.ts with 11 tests covering all 6 (type, status) combinations and the map-building edge cases (empty input, deduplication, none entries excluded). live/page.tsx: replaced a 14-line seen-set loop with a single computeRemovalStatusByDeal(removalRows) call. live/[dealId]/page.tsx: replaced an if/else block with deriveEffectiveRemovalState(removalRows[0]). |
||
|---|---|---|
| .. | ||
| actions | ||
| api | ||
| auth/error | ||
| components | ||
| db | ||
| domna | ||
| email_templates | ||
| engineDb | ||
| help | ||
| home | ||
| hooks | ||
| lib | ||
| onboarding | ||
| portfolio/[slug] | ||
| shadcn_components/ui | ||
| types | ||
| utils | ||
| verify/[token] | ||
| globals.css | ||
| layout.tsx | ||
| page.tsx | ||
| ReactQueryProvider.tsx | ||
| utils.test.ts | ||
| utils.ts | ||