"use client"; import Link from "next/link"; import { FileText, Play, RotateCw } from "lucide-react"; import { api, formatDateTime } from "@/lib/api"; import type { FeishuSession, TaskRun } from "@/lib/types"; import StatusBadge from "./StatusBadge"; export default function SessionTable({ sessions, onChanged }: { sessions: FeishuSession[]; onChanged: () => void }) { async function run(id: number, reprocess = false) { await api.post(`/sessions/${id}/${reprocess ? "reprocess" : "process"}`, {}); onChanged(); } return (
{sessions.map((session) => ( ))} {sessions.length === 0 ? ( ) : null}
日期 标题 老师 飞书资料 状态 问答 待审 入库 失败原因 操作
{session.date ?? "-"} {session.title} {session.teachers ?? "-"} {session.feishu_doc_url ? ( {session.feishu_doc_url} ) : ( - )} {session.qa_count} {session.pending_review_count} {session.standard_qa_count} {session.failed_reason ?? "-"}
详情
暂无场次
); }