mirror of
https://github.com/Hestia-Homes/assessment-model.git
synced 2026-07-22 08:48:34 +00:00
Delete WorkPhaseStats type and its four computation blocks (coordination, design, install, lodgement) from transforms.ts and types.ts — the computed values were never read by any component. Extract mapDbRowToHubspotDeal, DealRow, and the coordinator/designer aliases into a new dealQuery.ts module, eliminating the verbatim duplication between the live tracker page and the deal detail page. Replace the inline doc status computation in [dealId]/page.tsx with calls to the existing fetchDocsByDealId and computeDocStatusMap from docStatus.ts, so both paths now share a single implementation. |
||
|---|---|---|
| .. | ||
| 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 | ||