From 2feb02175628cd99094fb42241cb7fb1d8268ddc Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 15:45:40 +0000 Subject: [PATCH 1/9] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/integrations/supabase/types.ts | 3 +++ ...260419154537_4a5c5615-6f4e-4ae3-bd8e-561943247c3b.sql | 9 +++++++++ 2 files changed, 12 insertions(+) create mode 100644 supabase/migrations/20260419154537_4a5c5615-6f4e-4ae3-bd8e-561943247c3b.sql diff --git a/src/integrations/supabase/types.ts b/src/integrations/supabase/types.ts index 7246c52..321fb7b 100644 --- a/src/integrations/supabase/types.ts +++ b/src/integrations/supabase/types.ts @@ -1490,6 +1490,7 @@ export type Database = { description: string | null id: string name: string + pricing_type: string sort_order: number updated_at: string } @@ -1503,6 +1504,7 @@ export type Database = { description?: string | null id?: string name: string + pricing_type?: string sort_order?: number updated_at?: string } @@ -1516,6 +1518,7 @@ export type Database = { description?: string | null id?: string name?: string + pricing_type?: string sort_order?: number updated_at?: string } diff --git a/supabase/migrations/20260419154537_4a5c5615-6f4e-4ae3-bd8e-561943247c3b.sql b/supabase/migrations/20260419154537_4a5c5615-6f4e-4ae3-bd8e-561943247c3b.sql new file mode 100644 index 0000000..7bc0700 --- /dev/null +++ b/supabase/migrations/20260419154537_4a5c5615-6f4e-4ae3-bd8e-561943247c3b.sql @@ -0,0 +1,9 @@ +ALTER TABLE public.fee_schedule_items + ADD COLUMN IF NOT EXISTS pricing_type text NOT NULL DEFAULT 'hourly'; + +ALTER TABLE public.fee_schedule_items + DROP CONSTRAINT IF EXISTS fee_schedule_items_pricing_type_check; + +ALTER TABLE public.fee_schedule_items + ADD CONSTRAINT fee_schedule_items_pricing_type_check + CHECK (pricing_type IN ('hourly', 'flat')); \ No newline at end of file From f778f7fbdb6c7d4d1a7005b24eb00ce3441793b0 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 15:45:54 +0000 Subject: [PATCH 2/9] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/settings.fees.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/routes/settings.fees.tsx b/src/routes/settings.fees.tsx index abb5560..5eacd8a 100644 --- a/src/routes/settings.fees.tsx +++ b/src/routes/settings.fees.tsx @@ -45,6 +45,7 @@ interface FeeItem { name: string; description: string | null; category: "time" | "expense"; + pricing_type: "hourly" | "flat"; amount: number; billable: boolean; active: boolean; From 4d8a6a3d820ef7391f50753ba5ff07142f516db0 Mon Sep 17 00:00:00 2001 From: "gpt-engineer-app[bot]" <159125892+gpt-engineer-app[bot]@users.noreply.github.com> Date: Sun, 19 Apr 2026 15:46:01 +0000 Subject: [PATCH 3/9] Changes Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com> --- src/routes/settings.fees.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/settings.fees.tsx b/src/routes/settings.fees.tsx index 5eacd8a..e0247aa 100644 --- a/src/routes/settings.fees.tsx +++ b/src/routes/settings.fees.tsx @@ -99,7 +99,7 @@ function FeeSchedulePage() { logging time; expense fees auto-fill the amount when adding an expense. The billable flag becomes the default for new entries.
-