import { json } from "@remix-run/node"; import { Link, useLoaderData } from "@remix-run/react"; import { type LoaderFunctionArgs } from "@remix-run/server-runtime"; import { IngestionLogsTable } from "~/components/logs"; import { getIngestionLogs } from "~/services/ingestionLogs.server"; import { requireUserId } from "~/services/session.server"; export async function loader({ request }: LoaderFunctionArgs) { const userId = await requireUserId(request); const url = new URL(request.url); const page = Number(url.searchParams.get("page") || 1); const { ingestionLogs, pagination } = await getIngestionLogs(userId, page); return json({ ingestionLogs, pagination }); } export default function Logs() { const { ingestionLogs, pagination } = useLoaderData(); return (

Logs

View and monitor your data ingestion logs. These logs show the history of data being loaded into memory, helping you track and debug the ingestion process.

{Array.from({ length: pagination.pages }, (_, i) => ( {i + 1} ))}
); }