mirror of
https://github.com/eliasstepanik/core.git
synced 2026-01-10 23:58:28 +00:00
* feat: remove trigger and run base on bullmq * fix: telemetry and trigger deploymen * feat: add Ollama container and update ingestion status for unchanged documents * feat: add logger to bullmq workers * 1. Remove chat and deep-search from trigger 2. Add ai/sdk for chat UI 3. Added a better model manager * refactor: simplify clustered graph query and add stop conditions for AI responses * fix: streaming * fix: docker docs --------- Co-authored-by: Manoj <saimanoj58@gmail.com>
50 lines
1.5 KiB
TypeScript
50 lines
1.5 KiB
TypeScript
import { json, type LoaderFunctionArgs } from "@remix-run/node";
|
|
import { useLoaderData } from "@remix-run/react";
|
|
import { Inbox } from "lucide-react";
|
|
import { PageHeader } from "~/components/common/page-header";
|
|
import { LogDetails } from "~/components/logs/log-details";
|
|
import { LogOptions } from "~/components/logs/log-options";
|
|
|
|
import { getIngestionQueueForFrontend } from "~/services/ingestionLogs.server";
|
|
import { requireUserId } from "~/services/session.server";
|
|
|
|
export async function loader({ request, params }: LoaderFunctionArgs) {
|
|
const userId = await requireUserId(request);
|
|
const logId = params.logId;
|
|
|
|
try {
|
|
const log = await getIngestionQueueForFrontend(logId as string, userId);
|
|
return json({ log: log });
|
|
} catch (e) {
|
|
return json({ log: null });
|
|
}
|
|
}
|
|
|
|
export default function InboxNotSelected() {
|
|
const { log } = useLoaderData<typeof loader>();
|
|
|
|
if (!log) {
|
|
return (
|
|
<div className="flex h-full w-full flex-col">
|
|
<PageHeader title="Episode" showTrigger={false} />
|
|
<div className="flex h-full flex-col items-center justify-center gap-2">
|
|
<Inbox size={30} />
|
|
No episode data found
|
|
</div>
|
|
</div>
|
|
);
|
|
}
|
|
|
|
return (
|
|
<div className="flex h-[calc(100vh_-_20px)] w-full flex-col overflow-hidden">
|
|
<PageHeader
|
|
title="Episode"
|
|
showTrigger={false}
|
|
actionsNode={<LogOptions id={log.id} status={log.status} />}
|
|
/>
|
|
|
|
<LogDetails log={log as any} />
|
|
</div>
|
|
);
|
|
}
|