diff --git a/src/routes/inbox.index.tsx b/src/routes/inbox.index.tsx index ef44246..8cd547e 100644 --- a/src/routes/inbox.index.tsx +++ b/src/routes/inbox.index.tsx @@ -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);