首页:顶部一行状态(自动化开关 + 只在异常时出现的服务 / 下载盘 / 站点账号 / 下载器问题), 下面只有「在忙什么」「要我处理」「最近入库」三块;去掉运行状态、计划、缓存、来源健康、 满足率与 0 值铺陈;0 订阅时写「还没有订阅。去搜索添加」。只读对账移出首页,设置里放进 自动化 →「高级」(与存储预算、流水保留、缓存有效期一起默认收起)。 计划页:「智能体巡检」移到最上面——巡检数量少、由用户自己建、每次会花钱,是这页最需要 看的;自动任务任务多、多数不用管,放在下面。自动任务按分类分组、每组可折叠:有失败或 运行中的组默认展开,其余收起为「N 个任务 · 下次 xx」一行,折叠状态记在 localStorage; 维护类整组叫「数据清理」,未接入调度的备份不列。巡检卡只留名称、开关、间隔、上次结果与 费用,目标 / 能力 / 预算 / 模型 / 最近会话收进「详情」。去掉顶部 6 个计数卡。定时任务说明 去掉表名、字段名与实现备注。 任务页:默认隐藏系统任务(无业务对象的引擎步骤、定时任务的成功运行),可一键显示; 标题不再用 ID;耗时移入技术信息;< 1 秒写「< 1 秒」;费用两位小数,不足一分写「< $0.01」。 下载盘相关文案改用「暂停线 / 恢复线」。 Co-Authored-By: Claude Opus 5.5 <[email protected]>
39 lines
1.2 KiB
TypeScript
39 lines
1.2 KiB
TypeScript
import { useQueryClient } from "@tanstack/react-query";
|
|
import { RotateCw } from "lucide-react";
|
|
import { useSearchParams } from "react-router";
|
|
import { agentKeys } from "~/api/agent.ts";
|
|
import { PageHeader } from "~/components/console/page-header.tsx";
|
|
import { PlanBoard } from "~/components/schedules/schedule-board.tsx";
|
|
import { Button } from "~/components/ui/button.tsx";
|
|
import { qk } from "~/lib/query-keys.ts";
|
|
|
|
// FE-6:计划页(定时任务配置)与任务页(运行记录)分开。?job= 高亮并滚到该定时任务;#auto / #checks 定位到节。
|
|
|
|
export const meta = () => [{ title: "计划 · UHD 媒体自动化控制台" }];
|
|
|
|
export default function SchedulesPage() {
|
|
const qc = useQueryClient();
|
|
const [params] = useSearchParams();
|
|
return (
|
|
<>
|
|
<PageHeader
|
|
title="计划"
|
|
actions={
|
|
<Button
|
|
variant="outline"
|
|
size="sm"
|
|
onClick={() => {
|
|
qc.invalidateQueries({ queryKey: qk.all("schedules") });
|
|
qc.invalidateQueries({ queryKey: [...agentKeys.all, "list"] });
|
|
}}
|
|
>
|
|
<RotateCw />
|
|
刷新
|
|
</Button>
|
|
}
|
|
/>
|
|
<PlanBoard highlightJob={params.get("job") ?? undefined} />
|
|
</>
|
|
);
|
|
}
|