Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-18 01:41:55 +00:00
co-authored by renee-png
parent 05550e1191
commit 4ab142e60e
8 changed files with 49 additions and 4 deletions
+1 -1
View File
@@ -47,7 +47,7 @@ function NewCase() {
useEffect(() => {
(async () => {
const [{ data: cs }, { data: us }] = await Promise.all([
supabase.from("clients").select("id, name").order("name"),
supabase.from("clients").select("id, name").is("archived_at", null).order("name"),
supabase.from("profiles").select("id, full_name, email").order("full_name"),
]);
setClients(cs ?? []);
+1
View File
@@ -48,6 +48,7 @@ function StatusUpdatesPage() {
const { data, error } = await supabase
.from("cases")
.select("id, case_number, title, client:clients(name)")
.is("archived_at", null)
.order("opened_at", { ascending: false })
.limit(500);
if (error) toast.error("Could not load cases", { description: error.message });
+1 -1
View File
@@ -93,7 +93,7 @@ function TasksPage() {
.order("due_date", { ascending: true, nullsFirst: false }),
supabase.from("task_assignees").select("task_id, user_id"),
supabase.from("profiles").select("id, full_name, email"),
supabase.from("cases").select("id, case_number, title"),
supabase.from("cases").select("id, case_number, title").is("archived_at", null),
]);
setTasks((t.data ?? []) as TaskRow[]);
setAssignees((a.data ?? []) as AssigneeRow[]);