Fix submission flow for street address

Update submission and moderation pipeline to correctly handle `street_address`. This includes:
- Adding `street_address` to the Zod schema in `ParkForm.tsx`.
- Ensuring `street_address` is included in `tempLocationData` for park and composite park creations in `entitySubmissionHelpers.ts`.
- Preserving `street_address` when editing submissions in `submissionItemsService.ts`.
- Saving `street_address` when new locations are created during submission approval in `submissionItemsService.ts`.
This commit is contained in:
gpt-engineer-app[bot]
2025-11-06 14:15:45 +00:00
parent fc7c2d5adc
commit 9159b2ce89
3 changed files with 6 additions and 0 deletions

View File

@@ -43,6 +43,7 @@ const parkSchema = z.object({
closing_date_precision: z.enum(['day', 'month', 'year']).optional(),
location: z.object({
name: z.string(),
street_address: z.string().optional(),
city: z.string().optional(),
state_province: z.string().optional(),
country: z.string(),