import { Trans, msg } from '@lingui/macro'; import { useLingui } from '@lingui/react'; import { File, FileCheck, FileClock, FileCog, FileEdit, Mail, MailOpen, PenTool, UserPlus, UserSquare2, Users, } from 'lucide-react'; import { setupI18nSSR } from '@documenso/lib/client-only/providers/i18n.server'; import { getDocumentStats } from '@documenso/lib/server-only/admin/get-documents-stats'; import { getRecipientsStats } from '@documenso/lib/server-only/admin/get-recipients-stats'; import { getUserWithSignedDocumentMonthlyGrowth, getUsersCount, getUsersWithSubscriptionsCount, } from '@documenso/lib/server-only/admin/get-users-stats'; import { getSignerConversionMonthly } from '@documenso/lib/server-only/user/get-signer-conversion'; import { CardMetric } from '~/components/(dashboard)/metric-card/metric-card'; import { SignerConversionChart } from './signer-conversion-chart'; import { UserWithDocumentChart } from './user-with-document'; export default async function AdminStatsPage() { await setupI18nSSR(); const { _ } = useLingui(); const [ usersCount, usersWithSubscriptionsCount, docStats, recipientStats, signerConversionMonthly, // userWithAtLeastOneDocumentPerMonth, // userWithAtLeastOneDocumentSignedPerMonth, MONTHLY_USERS_SIGNED, ] = await Promise.all([ getUsersCount(), getUsersWithSubscriptionsCount(), getDocumentStats(), getRecipientsStats(), getSignerConversionMonthly(), // getUserWithAtLeastOneDocumentPerMonth(), // getUserWithAtLeastOneDocumentSignedPerMonth(), getUserWithSignedDocumentMonthlyGrowth(), ]); return (

Instance Stats

Document metrics

Recipients metrics

Charts

); }