Skip to content

🐸 Rybbit - open-source and privacy-friendly alternative to Google Analytics that is 10x more intuitive.

Remove started and completed at

Edward Cui943437b9fbd0
diff --git a/client/src/components/SiteSettings/ImportManager.tsx b/client/src/components/SiteSettings/ImportManager.tsx
index c28c692e5..4d9d4926d 100644
--- a/client/src/components/SiteSettings/ImportManager.tsx
+++ b/client/src/components/SiteSettings/ImportManager.tsx
@@ -42,7 +42,6 @@ import {
Loader2,
Database,
} from "lucide-react";
-import { DateTime } from "luxon";
import { useGetSiteImports, useImportSiteData } from "@/api/admin/import";
import { SplitDateRangePicker, DateRange } from "@/components/SplitDateRangePicker";
@@ -369,8 +368,6 @@ export function ImportManager({ siteId, disabled }: ImportManagerProps) {
<TableHead>Source</TableHead>
<TableHead>Status</TableHead>
<TableHead className="text-right">Events</TableHead>
- <TableHead>Started</TableHead>
- <TableHead>Completed</TableHead>
</TableRow>
</TableHeader>
<TableBody>
@@ -413,26 +410,6 @@ export function ImportManager({ siteId, disabled }: ImportManagerProps) {
<TableCell className="text-right">
{imp.importedEvents.toLocaleString()}
</TableCell>
- <TableCell>
- <time
- dateTime={imp.startedAt}
- title={DateTime.fromISO(imp.startedAt).toLocaleString(DateTime.DATETIME_FULL)}
- >
- {DateTime.fromISO(imp.startedAt).toRelative()}
- </time>
- </TableCell>
- <TableCell>
- {imp.completedAt ? (
- <time
- dateTime={imp.completedAt}
- title={DateTime.fromISO(imp.completedAt).toLocaleString(DateTime.DATETIME_FULL)}
- >
- {DateTime.fromISO(imp.completedAt).toRelative()}
- </time>
- ) : (
- "-"
- )}
- </TableCell>
</TableRow>
);
})}
diff --git a/server/src/api/sites/getSiteImports.ts b/server/src/api/sites/getSiteImports.ts
index ac8988225..8eeeda292 100644
--- a/server/src/api/sites/getSiteImports.ts
+++ b/server/src/api/sites/getSiteImports.ts
@@ -42,8 +42,6 @@ export async function getSiteImports(
status: imp.status,
importedEvents: imp.importedEvents,
errorMessage: imp.errorMessage,
- startedAt: imp.startedAt,
- completedAt: imp.completedAt,
fileName: imp.fileName,
}))
});