From 372b7fa9f89ec41e4b77385ed6d67e3ea98efbb4 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:56:52 +0000 Subject: [PATCH 01/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/integrations/supabase/types.ts | 4 ++-- .../20260417005650_5b36b216-3458-4ecb-adaf-606b27333bac.sql | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) create mode 100644 supabase/migrations/20260417005650_5b36b216-3458-4ecb-adaf-606b27333bac.sql diff --git a/src/integrations/supabase/types.ts b/src/integrations/supabase/types.ts index 2d612e2..fd008f6 100644 --- a/src/integrations/supabase/types.ts +++ b/src/integrations/supabase/types.ts @@ -808,7 +808,7 @@ export type Database = { | "closed_won" | "closed_lost" | "closed" - client_type: "hoa" | "individual" | "business" + client_type: "hoa" | "individual" | "business" | "condo" invoice_status: "draft" | "sent" | "paid" | "overdue" | "void" } CompositeTypes: { @@ -946,7 +946,7 @@ export const Constants = { "closed_lost", "closed", ], - client_type: ["hoa", "individual", "business"], + client_type: ["hoa", "individual", "business", "condo"], invoice_status: ["draft", "sent", "paid", "overdue", "void"], }, }, diff --git a/supabase/migrations/20260417005650_5b36b216-3458-4ecb-adaf-606b27333bac.sql b/supabase/migrations/20260417005650_5b36b216-3458-4ecb-adaf-606b27333bac.sql new file mode 100644 index 0000000..dd829de --- /dev/null +++ b/supabase/migrations/20260417005650_5b36b216-3458-4ecb-adaf-606b27333bac.sql @@ -0,0 +1 @@ +ALTER TYPE public.client_type ADD VALUE IF NOT EXISTS 'condo'; \ No newline at end of file From a922e7b4f59090d87be1bb3469364ef48d585e3b Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:57:00 +0000 Subject: [PATCH 02/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/clients/client-form-dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/clients/client-form-dialog.tsx b/src/components/clients/client-form-dialog.tsx index f255bb3..f5d1ec2 100644 --- a/src/components/clients/client-form-dialog.tsx +++ b/src/components/clients/client-form-dialog.tsx @@ -21,7 +21,7 @@ const boardMember = z.object({ }); const schema = z.object({ - client_type: z.enum(["hoa", "individual", "business"]), + client_type: z.enum(["hoa", "condo"]), name: z.string().trim().min(1, "Required").max(200), primary_contact_name: z.string().trim().max(120).optional().or(z.literal("")), primary_contact_email: z.string().trim().email("Invalid email").max(255).optional().or(z.literal("")), From 3375fc8bbef3f1842ea66841dff75b0a1c11380c Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:57:06 +0000 Subject: [PATCH 03/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/clients/client-form-dialog.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/clients/client-form-dialog.tsx b/src/components/clients/client-form-dialog.tsx index f5d1ec2..41b0593 100644 --- a/src/components/clients/client-form-dialog.tsx +++ b/src/components/clients/client-form-dialog.tsx @@ -163,8 +163,7 @@ export function ClientFormDialog({ HOA / Association - Business - Individual + Condominium From cba64ddd0fcd13c3a6b2b494c3880c06a72cd289 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:57:16 +0000 Subject: [PATCH 04/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/clients/client-form-dialog.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/clients/client-form-dialog.tsx b/src/components/clients/client-form-dialog.tsx index 41b0593..1968890 100644 --- a/src/components/clients/client-form-dialog.tsx +++ b/src/components/clients/client-form-dialog.tsx @@ -95,6 +95,7 @@ export function ClientFormDialog({ }, [open, client, form]); const clientType = form.watch("client_type"); + const isAssociation = clientType === "hoa" || clientType === "condo"; const board = form.watch("board_members"); const addBoardMember = () => { From d0969955e79b348dbc3658e371a51e0bad5059db Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:57:21 +0000 Subject: [PATCH 05/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/clients/client-form-dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/clients/client-form-dialog.tsx b/src/components/clients/client-form-dialog.tsx index 1968890..376c339 100644 --- a/src/components/clients/client-form-dialog.tsx +++ b/src/components/clients/client-form-dialog.tsx @@ -176,7 +176,7 @@ export function ClientFormDialog({ name="name" render={({ field }) => ( - {clientType === "hoa" ? "Association name" : "Name"} + {isAssociation ? "Association name" : "Name"} From e12352d94593219901c5ba8e22bc185fd2d19299 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:57:27 +0000 Subject: [PATCH 06/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/clients/client-form-dialog.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/clients/client-form-dialog.tsx b/src/components/clients/client-form-dialog.tsx index 376c339..ac212b5 100644 --- a/src/components/clients/client-form-dialog.tsx +++ b/src/components/clients/client-form-dialog.tsx @@ -184,8 +184,7 @@ export function ClientFormDialog({ /> - {clientType === "hoa" && ( -
+ {isAssociation && ( Date: Fri, 17 Apr 2026 00:57:32 +0000 Subject: [PATCH 07/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/clients/client-form-dialog.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/clients/client-form-dialog.tsx b/src/components/clients/client-form-dialog.tsx index ac212b5..775f93d 100644 --- a/src/components/clients/client-form-dialog.tsx +++ b/src/components/clients/client-form-dialog.tsx @@ -185,6 +185,7 @@ export function ClientFormDialog({
{isAssociation && ( +
Date: Fri, 17 Apr 2026 00:57:36 +0000 Subject: [PATCH 08/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/components/clients/client-form-dialog.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/clients/client-form-dialog.tsx b/src/components/clients/client-form-dialog.tsx index 775f93d..024bbef 100644 --- a/src/components/clients/client-form-dialog.tsx +++ b/src/components/clients/client-form-dialog.tsx @@ -293,7 +293,7 @@ export function ClientFormDialog({ )} />
- {clientType === "hoa" && ( + {isAssociation && (
From 15974096118e8d5d7cfa1a817a4e03461644fdea Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:57:44 +0000 Subject: [PATCH 09/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/cases.$caseId.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/cases.$caseId.tsx b/src/routes/cases.$caseId.tsx index 6382c77..a9a02c0 100644 --- a/src/routes/cases.$caseId.tsx +++ b/src/routes/cases.$caseId.tsx @@ -145,7 +145,7 @@ function CaseDetail() { Time Expenses Invoices - {data.client?.client_type === "hoa" && ( + {(data.client?.client_type === "hoa" || data.client?.client_type === "condo") && ( Collections )} From c9ffa043262576975f246a7510c7d36330ac13d6 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:57:51 +0000 Subject: [PATCH 10/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/cases.$caseId.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/cases.$caseId.tsx b/src/routes/cases.$caseId.tsx index a9a02c0..09d6cbe 100644 --- a/src/routes/cases.$caseId.tsx +++ b/src/routes/cases.$caseId.tsx @@ -155,7 +155,7 @@ function CaseDetail() { - {data.client?.client_type === "hoa" && ( + {(data.client?.client_type === "hoa" || data.client?.client_type === "condo") && ( )} From 7968729638c2ec8b5de36544c0d780618db15e8e Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:57:56 +0000 Subject: [PATCH 11/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/clients.$clientId.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/clients.$clientId.tsx b/src/routes/clients.$clientId.tsx index 1932322..408ffbf 100644 --- a/src/routes/clients.$clientId.tsx +++ b/src/routes/clients.$clientId.tsx @@ -81,7 +81,7 @@ function ClientDetail() { } const Icon = - client.client_type === "hoa" ? Building2 : client.client_type === "business" ? Building : User; + client.client_type === "hoa" || client.client_type === "condo" ? Building2 : User; const canEdit = isAdmin || client.created_by === user?.id; return ( From e851a15758477ef81cf0c770c511a9ae69e672b3 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:58:07 +0000 Subject: [PATCH 12/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/clients.$clientId.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/clients.$clientId.tsx b/src/routes/clients.$clientId.tsx index 408ffbf..4998d12 100644 --- a/src/routes/clients.$clientId.tsx +++ b/src/routes/clients.$clientId.tsx @@ -117,7 +117,7 @@ function ClientDetail() {
- {client.client_type === "hoa" && ( + {(client.client_type === "hoa" || client.client_type === "condo") && ( <> From fcab67f13c62a23e7c7582c22deeb7f10d33164f Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:58:11 +0000 Subject: [PATCH 13/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/clients.$clientId.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/clients.$clientId.tsx b/src/routes/clients.$clientId.tsx index 4998d12..2b99d7c 100644 --- a/src/routes/clients.$clientId.tsx +++ b/src/routes/clients.$clientId.tsx @@ -153,7 +153,7 @@ function ClientDetail() { - {client.client_type === "hoa" && client.board_members?.length > 0 && ( + {(client.client_type === "hoa" || client.client_type === "condo") && client.board_members?.length > 0 && (
From 649172b1753e3628cee7fd9c6b27fda9ccb09428 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Fri, 17 Apr 2026 00:58:17 +0000 Subject: [PATCH 14/14] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/clients.index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/clients.index.tsx b/src/routes/clients.index.tsx index 5ad5774..6a697d7 100644 --- a/src/routes/clients.index.tsx +++ b/src/routes/clients.index.tsx @@ -45,7 +45,7 @@ function ClientsList() { ); const typeIcon = (t: string) => - t === "hoa" ? Building2 : t === "business" ? Building : User; + t === "hoa" || t === "condo" ? Building2 : User; return (