From 18b02ab6b7172aea96ee3c33ad34386046315e74 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 26 Apr 2026 08:59:48 +0000 Subject: [PATCH 1/4] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/integrations/supabase/types.ts | 3 +++ .../20260426085945_fbe7902f-92cb-4dee-8b82-10246f03d39f.sql | 2 ++ 2 files changed, 5 insertions(+) create mode 100644 supabase/migrations/20260426085945_fbe7902f-92cb-4dee-8b82-10246f03d39f.sql diff --git a/src/integrations/supabase/types.ts b/src/integrations/supabase/types.ts index afed045..b04d819 100644 --- a/src/integrations/supabase/types.ts +++ b/src/integrations/supabase/types.ts @@ -1059,6 +1059,7 @@ export type Database = { notes: string | null phone: string | null postal_code: string | null + property_address: string | null state: string | null title: string | null updated_at: string @@ -1079,6 +1080,7 @@ export type Database = { notes?: string | null phone?: string | null postal_code?: string | null + property_address?: string | null state?: string | null title?: string | null updated_at?: string @@ -1099,6 +1101,7 @@ export type Database = { notes?: string | null phone?: string | null postal_code?: string | null + property_address?: string | null state?: string | null title?: string | null updated_at?: string diff --git a/supabase/migrations/20260426085945_fbe7902f-92cb-4dee-8b82-10246f03d39f.sql b/supabase/migrations/20260426085945_fbe7902f-92cb-4dee-8b82-10246f03d39f.sql new file mode 100644 index 0000000..a987bdf --- /dev/null +++ b/supabase/migrations/20260426085945_fbe7902f-92cb-4dee-8b82-10246f03d39f.sql @@ -0,0 +1,2 @@ +ALTER TABLE public.contacts + ADD COLUMN IF NOT EXISTS property_address text; \ No newline at end of file From 352628459cf9530f015bcd67297e2cd9963dcc24 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 26 Apr 2026 09:00:03 +0000 Subject: [PATCH 2/4] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/contacts/contact-form-dialog.tsx | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/src/components/contacts/contact-form-dialog.tsx b/src/components/contacts/contact-form-dialog.tsx index 2fb28eb..7d698b9 100644 --- a/src/components/contacts/contact-form-dialog.tsx +++ b/src/components/contacts/contact-form-dialog.tsx @@ -40,6 +40,7 @@ export interface ContactRecord { postal_code?: string | null; notes?: string | null; contact_type?: string | null; + property_address?: string | null; } export function ContactFormDialog({ @@ -92,6 +93,7 @@ export function ContactFormDialog({ postal_code: form.postal_code || null, notes: form.notes || null, contact_type: form.contact_type || "other", + property_address: form.property_address || null, }; let saved: { id: string; name: string } | null = null; if (contact?.id) { @@ -185,6 +187,19 @@ export function ContactFormDialog({ set("postal_code", e.target.value)} /> + {form.contact_type === "homeowner" && ( +
+ Used as the property address on collection ledger statements. +
+