First to Site
Release 3.5

Title Status Prediction & Milestone Preservation

Predict title status from SOC dates and preserve milestone data for titled projects

Overview

Added a title status prediction API and landing page link, alongside a fix that prevents milestone data from being cleared on titled projects without a plan number. A full E2E test harness validates the entire title status and milestone flow.

What Changed

Title Status Prediction (PR #693)

  • New TitleStatusPredictionController API endpoint returns predicted title dates based on SOC date + 28 day calculation.
  • Address autocomplete dropdown now displays predicted title date and SOC information from dossier-api.
  • Landing page includes a Title Prediction link for direct lookups.
  • Unit tests cover the prediction logic.

Milestone Preservation

  • ProjectCrudController now calls shouldPreserveMilestoneDataWithoutPlanNumber() to prevent wiping milestone data when a titled project has no plan number.
  • Previously, saving a titled project without a plan number would clear all milestone fields.

E2E Test Harness

  • e2e-admin-title-status-milestones.ts and the Playwright variant provide automated coverage for the admin title status and milestone editing flow.
  • Auth0User session persistence via /debug/test-login for reliable test authentication.
  • Auto-reauth when sessions expire mid-test (PR #704).

Files Touched

FileChange
app/src/Controller/Api/TitleStatusPredictionController.phpNew prediction endpoint
app/src/Controller/Admin/ProjectCrudController.phpMilestone preservation logic
app/src/Repository/ProjectRepository.phpSOC date and milestone query methods
app/assets/controllers/address_autocomplete_controller.jsPredicted title date display
scripts/e2e-admin-title-status-milestones.tsE2E test suite
scripts/e2e-admin-title-status-milestones-playwright.tsPlaywright E2E variant

Changelog Reference

  • feat: preserve milestone data for titled projects and add title status prediction (6ea6f39)
  • feat: add title prediction link to address autocomplete and landing page (b45e2f5)
  • feat: add e2e test harness for title status and milestone flows (97e8e87)
  • fix: auto-reauth in Playwright e2e test via debug test-login (03cad62)