Displays a customer support dashboard with conversation counts, ticket stats, message totals, resolution rates, and recent conversations from the database.
// Source: https://github.com/Hesper-Labs/owly | License: MIT | Copyright 2026 Owly
// Provided via justclaw.it.com; keep this notice with the code.
import { Header } from "@/components/layout/header";
import { StatCard } from "@/components/ui/stat-card";
import { OnboardingChecklist } from "@/components/ui/onboarding-checklist";
import { prisma } from "@/lib/prisma";
import {
MessageSquare,
Ticket,
Phone,
Mail,
MessageCircle,
CheckCircle,
Clock,
} from "lucide-react";
import { formatRelativeTime, getChannelLabel, getStatusColor } from "@/lib/utils";
async function getStats() {
const [
totalConversations,
activeConversations,
totalTickets,
openTickets,
totalMessages,
recentConversations,
] = await Promise.all([
prisma.conversation.count(),
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search 40K more like it.
Get a free API key