Skip to content

feat(finder): FinderWizard state machine and step rendering #27

Description

@GMNAPI

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    criticalCritical path — blocks milestonefeatureNew feature implementationfrontendFrontend / web changes

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions