Custom frontend skipped designer custom_js / field_rules, so workflow
gates relying on computed fields never passed.
- Recommend: compute & send sa_valid (+ real rate-card premium) so the
Meeting Scheduled -> Product Recommended stage gate passes; add inline
validity hint; success copy now reflects whether the gate advanced
- Assign: thread form_data through LookupField so owner_agent options are
region-filtered (field_rules filter_options cascade); clear agent on
region change
- add src/lib/recommend.ts (faithful port of the Recommend custom_js)
Verified via live UI E2E: lead reaches Product Recommended (sa_valid=true,
premium=21000) and owner agent matches the chosen region.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>