Client-side state machine for the 8-question wizard. Central orchestrator of the Finder feature.
State shape: { stepIndex, answers, showVerdict }
Features:
- Linear step navigation with back support (restores previous answers)
- Early-exit: after each answer,
computeEligibility() is called — if allDisqualified, jumps directly to verdict
- Dynamic rent options: rent question options change based on prior location + contractType answers
TaxCurrentInject — inline sub-question injected before the familyLandlord step (avoids extra step index)
- Privacy notice: "Les teves respostes no s'emmagatzemen"
Status: ✅ Implemented in web/src/app/finder/FinderWizard.tsx
Effort: M (~7h)
Deps: #24 (schema), #26 (primitives)
Client-side state machine for the 8-question wizard. Central orchestrator of the Finder feature.
State shape:
{ stepIndex, answers, showVerdict }Features:
computeEligibility()is called — ifallDisqualified, jumps directly to verdictTaxCurrentInject— inline sub-question injected before thefamilyLandlordstep (avoids extra step index)Status: ✅ Implemented in
web/src/app/finder/FinderWizard.tsxEffort: M (~7h)
Deps: #24 (schema), #26 (primitives)