feat(contacts): standardize company Address (US-only country, state dropdown, inline validation) (PMS-581) #393
Loading…
Reference in a new issue
No description provided.
Delete branch "feat/PMS-581-company-address-validation"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
PMS-581 (rewritten direction)
Standardizes the company Address block. The product is US-only, so Country is fixed to the US and State becomes a US-state dropdown; the remaining free-text fields get the same inline validation as the rest of the form.
Commits (small, logical)
errorprop + FormGuard (red outline, focus-first). City capped 100, street lines 255.Postal Code rule unchanged.
No migration / data safety
No schema change. Legacy non-code State and non-US Country values are preserved as selectable options, so editing an old company never silently rewrites or drops them. (Backfilling those to canonical codes is noted as a follow-up on the ticket.)
Verified
dx build clean (35s), no warnings, fmt clean. Dev app serves this branch.
Test
Companies > New/edit > Address: State is a dropdown of US states; Country shows United States (US-only); leaving City/Street with an over-long or control-char value shows an inline error; a blank country saves as US.
🤖 Generated with Claude Code