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
TitleStatusPredictionControllerAPI 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
ProjectCrudControllernow callsshouldPreserveMilestoneDataWithoutPlanNumber()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.tsand the Playwright variant provide automated coverage for the admin title status and milestone editing flow.- Auth0User session persistence via
/debug/test-loginfor reliable test authentication. - Auto-reauth when sessions expire mid-test (PR #704).
Files Touched
| File | Change |
|---|---|
app/src/Controller/Api/TitleStatusPredictionController.php | New prediction endpoint |
app/src/Controller/Admin/ProjectCrudController.php | Milestone preservation logic |
app/src/Repository/ProjectRepository.php | SOC date and milestone query methods |
app/assets/controllers/address_autocomplete_controller.js | Predicted title date display |
scripts/e2e-admin-title-status-milestones.ts | E2E test suite |
scripts/e2e-admin-title-status-milestones-playwright.ts | Playwright 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)