Papermark is the open-source DocSend alternative and secure data rooms with built-in analytics and custom domains.
feat: add downloadedAt for visitors
Marc Seitzee9ee9c32950
diff --git a/components/visitors/visitors-table.tsx b/components/visitors/visitors-table.tsxindex 73e0ff6c..3d3e1828 100644--- a/components/visitors/visitors-table.tsx+++ b/components/visitors/visitors-table.tsx@@ -19,7 +19,7 @@ import { durationFormat, timeAgo } from "@/lib/utils";import ChevronDown from "@/components/shared/icons/chevron-down";import VisitorChart from "./visitor-chart";import { VisitorAvatar } from "./visitor-avatar";-import { BadgeCheckIcon, BadgeInfoIcon } from "lucide-react";+import { BadgeCheckIcon, BadgeInfoIcon, DownloadCloudIcon } from "lucide-react";import { BadgeTooltip } from "@/components/ui/tooltip";export default function VisitorsTable({ numPages }: { numPages: number }) {@@ -82,6 +82,14 @@ export default function VisitorsTable({ numPages }: { numPages: number }) {<BadgeInfoIcon className="h-4 w-4 text-blue-500 hover:text-blue-600" /></BadgeTooltip>)}+ {view.downloadedAt && (+ <BadgeTooltip+ content={`Downloaded ${timeAgo(view.downloadedAt)}`}+ key="download"+ >+ <DownloadCloudIcon className="h-4 w-4 text-cyan-500 hover:text-cyan-600" />+ </BadgeTooltip>+ )}</>) : ("Anonymous"