Co-authored-by: renee-png <262607627+renee-png@users.noreply.github.com>
This commit is contained in:
gpt-engineer-app[bot]
2026-04-24 03:35:51 +00:00
co-authored by renee-png
parent e429ffeab9
commit 06a848a766
+3 -2
View File
@@ -7,7 +7,8 @@ import { Button } from "@/components/ui/button";
import { Card, CardContent } from "@/components/ui/card";
import { Badge } from "@/components/ui/badge";
import { Input } from "@/components/ui/input";
import { Loader2, Inbox as InboxIcon, RefreshCcw, Search, Mail, MailOpen, Archive, ArchiveRestore, Trash2 } from "lucide-react";
import { Loader2, Inbox as InboxIcon, RefreshCcw, Search, Mail, MailOpen, Archive, ArchiveRestore, Trash2, Link2 } from "lucide-react";
import { Link } from "@tanstack/react-router";
import { toast } from "sonner";
import { useAuth } from "@/lib/auth";
@@ -48,7 +49,7 @@ function InboxPage() {
setLoading(true);
let query = supabase
.from("incoming_emails")
.select("id, received_at, from_address, from_name, to_addresses, subject, snippet, body_text, body_html, is_read, is_archived, has_attachments, attachment_count")
.select("id, received_at, from_address, from_name, to_addresses, subject, snippet, body_text, body_html, is_read, is_archived, has_attachments, attachment_count, case_id, match_status, match_suggestions, matched_case:cases(id, case_number, title)")
.order("received_at", { ascending: false })
.limit(200);
query = showArchived ? query.eq("is_archived", true) : query.eq("is_archived", false);