Add member address, state normalization, account inheritance, fix member form
- Address field on member table (jsonb, same format as account) - Members inherit email, phone, address from account when not provided - State normalization: "Texas" → "TX", "california" → "CA" via shared util - Member form drops zodResolver to fix optional field validation flashing - Account name auto-format: "First Last - Account" - US state lookup with full name + code support
This commit is contained in:
@@ -28,7 +28,7 @@ function NewAccountPage() {
|
||||
|
||||
// Auto-generate account name from member if not provided
|
||||
if (!accountData.name && memberFirstName && memberLastName) {
|
||||
accountData.name = `${memberLastName}, ${memberFirstName}`
|
||||
accountData.name = `${memberFirstName} ${memberLastName} - Account`
|
||||
}
|
||||
|
||||
const account = await accountMutations.create(accountData)
|
||||
|
||||
Reference in New Issue
Block a user