工作台外壳让位:ProjectDetail 一个可见块都不渲染,七站页头全部换成 NodeHead
症状(2026-11 第十一轮 · 用户「要进一步把各级的信息归拢并提供交互的层次清晰」):项目身份 在外壳被说了两遍——那条面包屑工具条写着项目名 + 镜头/合格/任务/成本 + 「展开概况」+ 「删除项目」,展开后的 4 张指标卡加 12 节点流程条坐在正文上方,每一站都要先滚过这两屏 才看到自己真正的内容;「分镜与脚本」正文最重(看板 + 编辑抽屉),以前只能靠 `useBriefStore` 把概况折起来,等于用一个偏好去补层次划分的漏洞。概览页页头上还坐着一颗 「归档项目」——那是**项目级**动作,却出现在**环节级**位置上。 做法:①`pages/ProjectDetail.tsx` 重写成纯数据壳:按路由 `loadProject` + `startPolling` (卸载必停,否则离开工作台后每 6 秒还在请求上一个项目)、三种兜底 (`Loading` / `Empty` / `ErrorText`)、`<Outlet />`,其余全部删掉——面包屑工具条、 「展开概况」按钮、`StatGrid`、流程进度 Panel、删除二次确认都不再渲染。 ②`stores/project.ts` 删掉 `useBriefStore`(连同 `BRIEF_KEY` 与 `initialBrief()`): 概况整块搬进了顶栏控制台展开的抽屉,「折叠概况」这个偏好本身不再成立。 ③七站(流程概览 / 资产管理 / 分镜与脚本 / 任务调度中心 / 质检与审核 / 时间线合成 / 导出与成本)把 `<PageHead>` 换成 `<NodeHead>`,属性一律不动,只改组件名与注释里的名字; `Overview.tsx` 额外删掉页头那颗「归档项目」按钮和它的 `setArchived`(`isArchived` 还被流程状态文案用着,留着),流程概览这一页从此只回答「流程走到哪、下一节点缺什么、 在总控台下什么指令」。 为什么数据装载还留在外壳而不是搬进抽屉:workflow 与 stats 同时被顶栏控制台、七站正文、 概况抽屉三处读,读的是同一份 `stores/project.ts`;轮询放在路由壳层一次就够,抽屉关掉 也不该停止刷新项目状态。层级于是变成干净的四层——顶栏胶囊(项目入口)→ 抽屉(项目层) → NodeHead(环节层)→ Panel(内容层),每一级只在属于自己的那一处发言(R18)。main
parent
787a687238
commit
19bc63ba44
|
|
@ -1,63 +1,44 @@
|
|||
/**
|
||||
* 项目工作台外壳:标题行 + 可折叠「项目概况」+ 各业务子页(<Outlet/>)。
|
||||
* 「页签」这个词从本轮起只指页面内部页签(UI规范 §6.4),路由级子页不叫页签——
|
||||
* 内容页没有外壳级页签条(§6.1)。
|
||||
* 项目工作台外壳:**只做数据装载与轮询,一个可见块都不渲染**(<Outlet/> 之外)。
|
||||
*
|
||||
* 症状(本轮 · 用户第 8 条):这一层的页头写着「← 项目总览 + 已交付 + 全部 12 个节点已完成」
|
||||
* 再加一行 24px 的项目名,而这四样在应用顶栏的流程控制台里全都有——
|
||||
* 同一屏两遍项目信息,八个子页每一页都要先读一遍重复的标题行。
|
||||
* 做法:外壳这一层压成**一条面包屑工具条**(Toolbar = 只有卡头的 Card):
|
||||
* 左端 `项目总览 / 项目名` 只回答「我在哪个项目里」;右端放这一层仅有的两个动作
|
||||
* (展开概况、删除项目);状态、进度、当前节点交还顶栏,这里不再重复。
|
||||
* 环节名(资产管理 / 分镜与脚本…)与各页的主按钮由**子页自己的 PageHead** 负责(第 1 条)。
|
||||
*
|
||||
* GL-1:项目概况(4 张指标卡 + 12 节点流程条)在桌面端同样要能收起。
|
||||
* 以前只有 ≤900px 才折叠,正文被顶出首屏 ≈470px,每个子页都要先滚一屏废话。
|
||||
* 折叠状态记在 project.ts(useBriefStore):分镜工作台共用同一份偏好,不会各说各话。
|
||||
* 折叠以后这一行仍然带着概览摘要(镜头/合格/任务/成本——顶栏没有的四项,状态不重复)。
|
||||
* 症状(2026-11 第十一轮 · 用户第 2 条原话「项目总览、展开、归档(删除)和顶部
|
||||
* 系统 Header 的项目总览应该整合到一处…点击展开侧面的面板」「要进一步把各级的
|
||||
* 信息归拢并提供交互的层次清晰」):项目身份在一屏里说了三遍——顶栏流程控制台
|
||||
* (名称·状态·进度·当前节点)、外壳这条面包屑工具条(项目名 + 镜头/合格/任务/
|
||||
* 成本 + 展开概况 + 删除项目)、概览页页头(归档项目);4 张指标卡和 12 节点
|
||||
* 流程条还坐在正文上方,每一站都要先滚过它们。层级也是错的:项目级的动作
|
||||
* (归档 / 删除)出现在页面级的位置上。
|
||||
* 做法:四级层次各归各位,外壳让位——
|
||||
* ① 顶栏流程控制台 = 全站唯一的项目身份入口(点击开右侧抽屉,见
|
||||
* `app/layout/PipelineConsole.tsx`);
|
||||
* ② `app/layout/ProjectBriefDrawer.tsx` = 项目层(身份 / 指标 / 流程 /
|
||||
* 七站跳转 / 归档 / 删除),所以「展开概况」这颗按钮整颗删掉;
|
||||
* ③ `NodeHead` = 环节层页头(七站各一张带底纹的卡,见 `components/ui/Page.tsx`);
|
||||
* ④ `Panel` = 内容层。
|
||||
* 外壳只剩下:按路由换项目、每 6 秒轮询、三种兜底(载入 / 未找到 / 错误)。
|
||||
* 为什么数据还挂在这里而不是抽屉里:workflow 与 stats 同时被顶栏控制台、
|
||||
* 各子页和抽屉三处读,读的是 project.ts 那一份 store;轮询放在路由壳层
|
||||
* 一次就够,抽屉关掉也不该停止刷新项目状态。
|
||||
*/
|
||||
import { useEffect, useState } from 'react'
|
||||
import { Link, Outlet, useNavigate, useParams } from 'react-router-dom'
|
||||
import * as api from '../api/client'
|
||||
import { fmtMoney, pct, statusLabel } from '../lib/format'
|
||||
import { Breadcrumb, Button, Empty, ErrorText, LINK_CLS, Loading, Notice, PageStack, Panel, PanelHead, Stat, StatGrid, Toolbar, Value } from '../components/ui'
|
||||
import { WorkflowBar } from '../components/media/WorkflowBar'
|
||||
import { loadProject, startPolling, stopPolling, useBriefStore, useProjectStore } from '../stores/project'
|
||||
import { IconBolt, IconChart, IconChevronDown, IconChevronUp, IconClock, IconClose, IconDelete, IconTracks } from '../components/icons'
|
||||
import { useEffect } from 'react'
|
||||
import { Link, Outlet, useParams } from 'react-router-dom'
|
||||
import { Empty, ErrorText, LINK_CLS, Loading } from '../components/ui'
|
||||
import { loadProject, startPolling, stopPolling, useProjectStore } from '../stores/project'
|
||||
|
||||
export default function ProjectDetail() {
|
||||
const { id: idParam } = useParams()
|
||||
const id = Number(idParam)
|
||||
const navigate = useNavigate()
|
||||
const [error, setError] = useState('')
|
||||
const [confirming, setConfirming] = useState(false)
|
||||
const summaryOpen = useBriefStore((s) => s.open)
|
||||
const setSummaryOpen = useBriefStore((s) => s.set)
|
||||
const { project, workflow, stats, loading, error: storeError } = useProjectStore()
|
||||
|
||||
const nextStep = workflow.find((s: any) => s.state === 'active' || s.state === 'failed')
|
||||
const taskHint = Object.entries<any>(stats?.task_status || {}).map(([k, v]) => `${statusLabel(k)} ${v}`).join(' · ')
|
||||
const { project, loading, error: storeError } = useProjectStore()
|
||||
|
||||
/* 切项目:重新拉一次详情,并让轮询跟着新 id 走(卸载时一定停掉,
|
||||
否则离开工作台后每 6 秒还在请求上一个项目) */
|
||||
useEffect(() => {
|
||||
if (!Number.isFinite(id)) return
|
||||
setError('')
|
||||
setConfirming(false)
|
||||
void loadProject(id, false)
|
||||
startPolling(id)
|
||||
return stopPolling
|
||||
}, [id])
|
||||
|
||||
async function removeProject() {
|
||||
try {
|
||||
await api.del(`/api/projects/${id}`, { purge_files: true })
|
||||
navigate('/')
|
||||
} catch (exc: any) {
|
||||
setError(exc?.message || String(exc))
|
||||
}
|
||||
}
|
||||
|
||||
if (loading && !project) return <Loading>正在载入项目…</Loading>
|
||||
|
||||
if (!project) {
|
||||
|
|
@ -69,77 +50,10 @@ export default function ProjectDetail() {
|
|||
)
|
||||
}
|
||||
|
||||
const st = stats || {}
|
||||
/* 这一行只在**概况折叠时**出现:收起后它就是那条紧凑横条,是这一层唯一的信息源。
|
||||
展开时下面四张 Stat 卡已经逐字给出了同样四个数字(镜头/合格/任务/成本),
|
||||
横条再重复一遍就是第 8 条要清掉的重复;项目状态、轨道进度、当前节点在顶栏
|
||||
流程控制台上也有,同样不写。 */
|
||||
const briefLine = `镜头 ${st.shots_approved || 0}/${st.shots || 0}`
|
||||
+ ` · 合格 ${pct(st.progress_ratio)} · 任务 ${st.tasks_active || 0}/${st.tasks || 0}`
|
||||
+ ` · 成本 ${fmtMoney(st.cost?.total_cost, st.cost?.currency)}`
|
||||
return (
|
||||
<PageStack className="min-w-0">
|
||||
{/* 一条面包屑代替原来的「返回 + 状态 Tag + 节点 Tag + 24px 项目名」:
|
||||
右端两个动作就是这一层的全部职责(收放概况、删除项目)。
|
||||
项目状态由 project.ts 每 6 秒轮询,页面无需再单独刷新。 */}
|
||||
<Toolbar
|
||||
info={<Breadcrumb items={[{ label: '项目总览', to: '/' }, { label: project.name }]} />}
|
||||
sub={summaryOpen ? undefined : briefLine}
|
||||
actions={<>
|
||||
<Button aria-expanded={summaryOpen} onClick={() => setSummaryOpen(!summaryOpen)}
|
||||
title={summaryOpen ? '收起项目概况,把首屏让给内容页' : '展开项目概况:指标卡与流程进度'}
|
||||
icon={summaryOpen ? <IconChevronUp /> : <IconChevronDown />}>
|
||||
{summaryOpen ? '收起概况' : '展开概况'}
|
||||
</Button>
|
||||
<Button type="text" danger title="删除整个项目:分镜、任务与已生成素材一起清除"
|
||||
onClick={() => setConfirming((v) => !v)} icon={<IconDelete />}>
|
||||
删除项目
|
||||
</Button>
|
||||
</>}
|
||||
/>
|
||||
|
||||
<ErrorText>{error || storeError}</ErrorText>
|
||||
|
||||
{confirming && (
|
||||
<Notice danger onClose={() => setConfirming(false)}>
|
||||
<div className="flex flex-wrap items-center justify-between gap-3 w-full min-w-0">
|
||||
<span className="min-w-0">删除《{project.name}》会同时清除分镜、任务与已生成素材,确认?</span>
|
||||
<div className="flex flex-wrap items-center gap-2 ">
|
||||
<Button icon={<IconClose />} onClick={() => setConfirming(false)}>取消</Button>
|
||||
<Button icon={<IconDelete />} type="primary" danger onClick={removeProject}>确认删除</Button>
|
||||
</div>
|
||||
</div>
|
||||
</Notice>
|
||||
)}
|
||||
|
||||
{/* 展开后的概览:指标卡 + 12 节点流程条。折叠入口只有面包屑那一颗按钮。 */}
|
||||
{summaryOpen && (
|
||||
<>
|
||||
<StatGrid>
|
||||
{/* 「主数字 + 灰分母」走 kit Stat 的 <i> 约定(字号/颜色只定义一次),
|
||||
页面不再自己写 text-base text-text-quaternary 这套私有度量。 */}
|
||||
<Stat icon={<IconTracks />} label="镜头(合格/总数)"
|
||||
value={<>{st.shots_approved || 0}<i>/ {st.shots || 0}</i></>}
|
||||
hint={`${statusLabel('failed')} ${st.shots_failed || 0} · ${st.shots_rejected || 0} 驳回`} />
|
||||
<Stat icon={<IconClock />} label="时长(计划/已生成)"
|
||||
value={<>{(st.planned_duration || 0).toFixed(1)}s<i>/ {(st.generated_duration || 0).toFixed(1)}s</i></>}
|
||||
hint={`镜头合格进度 ${pct(st.progress_ratio)}`} />
|
||||
<Stat icon={<IconBolt />} label="任务(活跃/总数)"
|
||||
value={<>{st.tasks_active || 0}<i>/ {st.tasks || 0}</i></>}
|
||||
hint={taskHint || '暂无任务'} />
|
||||
<Stat icon={<IconChart />} label="成本 / 成片" value={fmtMoney(st.cost?.total_cost, st.cost?.currency)}
|
||||
hint={`${(st.exports || []).length} 个导出记录`} />
|
||||
</StatGrid>
|
||||
|
||||
<Panel className="mb-0">
|
||||
<PanelHead title="流程进度"
|
||||
right={nextStep ? <Value>下一步:{nextStep.label} — {nextStep.detail}</Value> : undefined} />
|
||||
<WorkflowBar workflow={workflow} />
|
||||
</Panel>
|
||||
</>
|
||||
)}
|
||||
|
||||
<div className="min-w-0">
|
||||
<ErrorText>{storeError}</ErrorText>
|
||||
<Outlet />
|
||||
</PageStack>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@ import { fromExport } from '../../lib/media'
|
|||
import { useAutoRefresh } from '../../hooks'
|
||||
import { Select } from '../../components/forms'
|
||||
import { MediaThumb } from '../../components/media/MediaThumb'
|
||||
import { PageHead, ActionGroup, Button, Clamp, Value, Chip, ErrorText, ExtLink, Field, FormGrid, FormRow, Grid, IconText, Info, Input, LineHint, OptionGrid, Toolbar, LINK_CLS, MONO, MUTED, MUTED_MONO, NumberInput, PageStack, Panel, PanelHead, Row, Spinner, Stat, StatGrid, Status, Table, Tag } from '../../components/ui'
|
||||
import { NodeHead, ActionGroup, Button, Clamp, Value, Chip, ErrorText, ExtLink, Field, FormGrid, FormRow, Grid, IconText, Info, Input, LineHint, OptionGrid, Toolbar, LINK_CLS, MONO, MUTED, MUTED_MONO, NumberInput, PageStack, Panel, PanelHead, Row, Spinner, Stat, StatGrid, Status, Table, Tag } from '../../components/ui'
|
||||
import { refresh, useProjectStore } from '../../stores/project'
|
||||
import { presetLabel, presets as FALLBACK_PRESETS, useSystemStore } from '../../stores/system'
|
||||
import { notify } from '../../stores/notice'
|
||||
|
|
@ -171,7 +171,7 @@ export default function Delivery() {
|
|||
<PageStack>
|
||||
{/* 页头(第 1 条):出片是这一页唯一整页成立的主操作,从「合成导出」的表末尾提到页头;
|
||||
面板里只剩预设与参数,勾选完直接在最上方按同一颗按钮。 */}
|
||||
<PageHead
|
||||
<NodeHead
|
||||
title="导出与成本"
|
||||
sub="按预设合成成片,核对成本台账与每一次生成的可复现参数。"
|
||||
actions={<>
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ import * as api from '../../api/client'
|
|||
import { fmtAgo, fmtMoney, statusLabel } from '../../lib/format'
|
||||
import { useAutoRefresh } from '../../hooks'
|
||||
import { Select } from '../../components/forms'
|
||||
import { PageHead, ActionGroup, Actions, Button, Check, Ctlbar, Divider, Count, ErrorText, ExtLink, Field, Info, Layout, LinkButton, MONO, MUTED, MUTED_MONO, NumberInput, PageStack, Panel, PanelHead, ProgressBar, Row, Spinner, Status, Table, Tag, TagGroup, Toolbar, Value, Clamp } from '../../components/ui'
|
||||
import { NodeHead, ActionGroup, Actions, Button, Check, Ctlbar, Divider, Count, ErrorText, ExtLink, Field, Info, Layout, LinkButton, MONO, MUTED, MUTED_MONO, NumberInput, PageStack, Panel, PanelHead, ProgressBar, Row, Spinner, Status, Table, Tag, TagGroup, Toolbar, Value, Clamp } from '../../components/ui'
|
||||
import { refresh, useProjectStore } from '../../stores/project'
|
||||
import { useSystemStore } from '../../stores/system'
|
||||
import { notify } from '../../stores/notice'
|
||||
|
|
@ -201,7 +201,7 @@ export default function Dispatch() {
|
|||
<PageStack>
|
||||
{/* 页头(第 1 条):入队是这一页唯一整页成立的主操作,从「分镜任务清单」的卡头里提出来。
|
||||
卡头只留「预计成本 · 共 N 行」这句清单自身的口径。 */}
|
||||
<PageHead
|
||||
<NodeHead
|
||||
title="任务调度中心"
|
||||
sub="按分镜清单入队生成与配音任务,跟踪队列、重试与并发;模型本身的配置在模型管理中心。"
|
||||
actions={<Button type="primary" disabled={!!busy} onClick={enqueue} icon={<IconPlayCircle />}>入队所选 / 全部待生成</Button>}
|
||||
|
|
|
|||
|
|
@ -21,7 +21,7 @@ import { Select } from '../../components/forms'
|
|||
import { AudioPlay } from '../../components/media/AudioPlay'
|
||||
import { MediaThumb } from '../../components/media/MediaThumb'
|
||||
import { RecordAudio, type RecordPickMeta } from '../../components/media/RecordAudio'
|
||||
import { ActionGroup, Actions, BarRight, Block, Button, CARD_ROW, CardActions, Check, Chip, ChipBar, Ctlbar, Divider, Drawer, Empty, ErrorText, ExtLink, Field, FieldBlock, FilePick, FormGrid, FormRow, IconText, Info, Input, LINK_CLS, LineHint, LinkButton, MONO, MUTED, MUTED_MONO, Notice, NumberInput, PageHead, PageStack, Panel, PanelHead, Row, SearchInput, SectionTitle, Spinner, Table, Tabs, Tag, TagGroup, TextArea, Toolbar, Value, cellWrap } from '../../components/ui'
|
||||
import { ActionGroup, Actions, BarRight, Block, Button, CARD_ROW, CardActions, Check, Chip, ChipBar, Ctlbar, Divider, Drawer, Empty, ErrorText, ExtLink, Field, FieldBlock, FilePick, FormGrid, FormRow, IconText, Info, Input, LINK_CLS, LineHint, LinkButton, MONO, MUTED, MUTED_MONO, Notice, NumberInput, NodeHead, PageStack, Panel, PanelHead, Row, SearchInput, SectionTitle, Spinner, Table, Tabs, Tag, TagGroup, TextArea, Toolbar, Value, cellWrap } from '../../components/ui'
|
||||
import { useSystemStore } from '../../stores/system'
|
||||
import { refresh, useProjectStore } from '../../stores/project'
|
||||
import { notify } from '../../stores/notice'
|
||||
|
|
@ -729,9 +729,9 @@ export default function Library() {
|
|||
return (
|
||||
<PageStack>
|
||||
{/* 页头(第 1 条):环节名 + 职责说明 + 这一页的主操作。
|
||||
主操作是「新建当前面板的资产」——它整页成立,所以进 PageHead;
|
||||
主操作是「新建当前面板的资产」——它整页成立,所以进 NodeHead;
|
||||
两个跨页跳转是另一层意思,自成一组并排放左边。 */}
|
||||
<PageHead
|
||||
<NodeHead
|
||||
title="资产管理"
|
||||
sub="集中维护人物、声音与场景。资产可单独调用模型生成,绑定到分镜后会自动进入视频参考素材与提示词。"
|
||||
actions={<>
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import { refresh, useProjectStore } from '../../stores/project'
|
|||
import { notify } from '../../stores/notice'
|
||||
import { useAutoRefresh } from '../../hooks'
|
||||
import { Select } from '../../components/forms'
|
||||
import { PageHead, Actions, Button, CardRow, Chip, Info, Ctlbar, Divider, ErrorText, Field, FieldBlock, FormGrid, FormRow, Grid, IconText, Input, LINK_CLS, Layout, LinkButton, LogBox, LogRow, MONO, Notice, MUTED, MUTED_MONO, NumberInput, PageStack, Panel, PanelHead, Row, SearchInput, Stack, Stat, Table, Tag, TagGroup, TextArea, Value, Clamp } from '../../components/ui'
|
||||
import { NodeHead, Actions, Button, CardRow, Chip, Info, Ctlbar, Divider, ErrorText, Field, FieldBlock, FormGrid, FormRow, Grid, IconText, Input, LINK_CLS, Layout, LinkButton, LogBox, LogRow, MONO, Notice, MUTED, MUTED_MONO, NumberInput, PageStack, Panel, PanelHead, Row, SearchInput, Stack, Stat, Table, Tag, TagGroup, TextArea, Value, Clamp } from '../../components/ui'
|
||||
import AgentConsole from './AgentConsole'
|
||||
import { IconBolt, IconCheck, IconChevronRight, IconChevronUp, IconClose, IconFolder, IconGrid, IconImage, IconPass, IconTracks, IconUser, IconVoice } from '../../components/icons'
|
||||
/**
|
||||
|
|
@ -220,22 +220,6 @@ export default function Overview() {
|
|||
})()
|
||||
const suggestions = NEXT_ACTIONS[project?.current_stage] || NEXT_ACTIONS.create_project
|
||||
|
||||
/** 归档是项目状态里唯一由人决定的开关,取消归档后由后端重新推算真实节点 */
|
||||
const setArchived = async (on: boolean) => {
|
||||
if (!id) return
|
||||
setSaving(true)
|
||||
setError('')
|
||||
try {
|
||||
await api.patch(`/api/projects/${id}`, { status: on ? 'archived' : 'draft' })
|
||||
notify(on ? '项目已归档,不再自动推进流程' : '已取消归档,流程状态按镜头真实进度重算')
|
||||
await refresh()
|
||||
} catch (exc: any) {
|
||||
setError(exc.message)
|
||||
} finally {
|
||||
setSaving(false)
|
||||
}
|
||||
}
|
||||
|
||||
const save = async () => {
|
||||
if (!id) return
|
||||
setSaving(true)
|
||||
|
|
@ -254,17 +238,13 @@ export default function Overview() {
|
|||
|
||||
return (
|
||||
<PageStack>
|
||||
{/* 页头(第 1 条):这一页的主操作只有「归档 / 取消归档」——它决定后端还推不推流程节点,
|
||||
作用域是整个项目而不是「项目设置」那张卡,所以从卡头提到页头。
|
||||
「编辑 / 保存设置」改的是表单本身,留在原卡头(离开那块就不成立)。 */}
|
||||
<PageHead
|
||||
{/* 页头(2026-11 第十一轮):原先右端那颗「归档项目」是**项目级**动作,
|
||||
却坐在**环节级**页头上,和外壳的面包屑、顶栏控制台各说一遍项目信息。
|
||||
归档/删除现在统一收进顶栏控制台展开的「项目概况」抽屉,这一页只回答
|
||||
「流程走到哪、下一节点缺什么、在总控台下指令」,所以页头没有动作。 */}
|
||||
<NodeHead
|
||||
title="流程概览"
|
||||
sub="看清流程走到了哪一步、下一个节点还缺什么,并在总控台里下达任务指令。"
|
||||
actions={<Button icon={<IconFolder />} disabled={saving}
|
||||
title="项目状态由后端按镜头与任务真实进度回写,这里只提供归档开关;归档后不再自动推进流程节点。"
|
||||
onClick={() => setArchived(!isArchived)}>
|
||||
{isArchived ? '取消归档' : '归档项目'}
|
||||
</Button>}
|
||||
/>
|
||||
|
||||
<AgentConsole />
|
||||
|
|
|
|||
|
|
@ -13,7 +13,7 @@ import { useAutoRefresh } from '../../hooks'
|
|||
import { Select } from '../../components/forms'
|
||||
import { AudioPlay } from '../../components/media/AudioPlay'
|
||||
import { MediaThumb } from '../../components/media/MediaThumb'
|
||||
import { PageHead, ActionGroup, Actions, Button, Check, ChipBar, Ctlbar, Divider, Empty, ErrorText, Field, FormRow, Row, BarRight, SegmentedTabs, Count, IconText, Info, Input, Layout, LineHint, MONO, MUTED, MUTED_MONO, NumberInput, PageStack, Panel, PanelHead, SectionTitle, Spinner, Status, Table, Tag, TagGroup, TextArea, Toolbar, Value, Clamp } from '../../components/ui'
|
||||
import { NodeHead, ActionGroup, Actions, Button, Check, ChipBar, Ctlbar, Divider, Empty, ErrorText, Field, FormRow, Row, BarRight, SegmentedTabs, Count, IconText, Info, Input, Layout, LineHint, MONO, MUTED, MUTED_MONO, NumberInput, PageStack, Panel, PanelHead, SectionTitle, Spinner, Status, Table, Tag, TagGroup, TextArea, Toolbar, Value, Clamp } from '../../components/ui'
|
||||
import { refresh, useProjectStore } from '../../stores/project'
|
||||
import { notify } from '../../stores/notice'
|
||||
import { IconAim, IconDownload, IconEye, IconPass, IconReject, IconReload, IconRetry } from '../../components/icons'
|
||||
|
|
@ -203,10 +203,10 @@ export default function Review() {
|
|||
|
||||
return (
|
||||
<PageStack>
|
||||
{/* 页头(第 1 条):三个批量动作是这一页的主操作,整页成立 → 进 PageHead。
|
||||
{/* 页头(第 1 条):三个批量动作是这一页的主操作,整页成立 → 进 NodeHead。
|
||||
症状(第 6 条):它们以前和六个只读计数挤在同一张卡头里,
|
||||
左端是一排会折行的表格、右端是三颗长文案按钮,窄屏先把按钮压成两行。 */}
|
||||
<PageHead
|
||||
<NodeHead
|
||||
title="质检与审核"
|
||||
sub="机器质检给出技术指标与画面判定,人工审核决定放行;驳回会把镜头退回生成环节重做。"
|
||||
actions={<>
|
||||
|
|
|
|||
|
|
@ -28,7 +28,7 @@ import { refresh, useProjectStore } from '../../stores/project'
|
|||
import { options, useSystemStore } from '../../stores/system'
|
||||
import { notify } from '../../stores/notice'
|
||||
import { openPreview, usePreviewOpen } from '../../stores/preview'
|
||||
import { PageHead, ActionGroup, Actions, BarRight, Between, BLOCK_TONE, Button, CARD_ROW, Check, Checkbox, Chip, ChipBar, CloseButton, Ctlbar, DRAWER_ACTIONS, DRAWER_BODY, DRAWER_HEAD, DRAWER_TITLE, Divider, Empty, ErrorText, ExportMenu, ExtLink, Field, FieldBlock, FilePick, FormGrid, FormRow, IconText, Input, LINK_CLS, LinkButton, Loading, MUTED, MUTED_MONO, MaybeNumberInput, Mono, Notice, NumberInput, PageStack, Panel, PanelHead, Row, Scrim, SearchInput, SectionTitle, Spinner, Status, TAG_DENSE, Table, Tabs, Tag, TagGroup, TextArea, Toolbar, Value, ViewSwitch, cellWrap, type Columns } from '../../components/ui'
|
||||
import { NodeHead, ActionGroup, Actions, BarRight, Between, BLOCK_TONE, Button, CARD_ROW, Check, Checkbox, Chip, ChipBar, CloseButton, Ctlbar, DRAWER_ACTIONS, DRAWER_BODY, DRAWER_HEAD, DRAWER_TITLE, Divider, Empty, ErrorText, ExportMenu, ExtLink, Field, FieldBlock, FilePick, FormGrid, FormRow, IconText, Input, LINK_CLS, LinkButton, Loading, MUTED, MUTED_MONO, MaybeNumberInput, Mono, Notice, NumberInput, PageStack, Panel, PanelHead, Row, Scrim, SearchInput, SectionTitle, Spinner, Status, TAG_DENSE, Table, Tabs, Tag, TagGroup, TextArea, Toolbar, Value, ViewSwitch, cellWrap, type Columns } from '../../components/ui'
|
||||
import { floatingLayerOpen } from '../../lib/layers'
|
||||
import { IconAdd, IconArrowDown, IconArrowUp, IconAudit, IconCheck, IconChevronUp, IconClose, IconCompose, IconCopy, IconDelete, IconDownload, IconDragHandle, IconEdit, IconEye, IconGrid, IconImage, IconListOrdered, IconMic, IconParams, IconPlayCircle, IconReload, IconRetry, IconSearch, IconSound, IconToTop, IconUpload, IconVideo, IconWarn } from '../../components/icons'
|
||||
|
||||
|
|
@ -1085,8 +1085,8 @@ export default function Storyboard() {
|
|||
分隔线全都自己定,于是它是全站唯一「像卡皮、但不是卡」的横条。
|
||||
现在它就是 <Toolbar>(只有卡头的 Card),指标改成一行摘要文字。 */}
|
||||
{/* 页头(第 1 条):「导入」和「新建」是同一件事的两种入口(都是往工作台里加镜头),
|
||||
永远并排,整页成立 → 进 PageHead,不再混在吸顶工具条的视图切换旁边。 */}
|
||||
<PageHead
|
||||
永远并排,整页成立 → 进 NodeHead,不再混在吸顶工具条的视图切换旁边。 */}
|
||||
<NodeHead
|
||||
title="分镜与脚本"
|
||||
sub="逐镜维护脚本、关键帧与提示词。看板适合逐镜对照画面,分镜表适合一屏看更多、批量改参数。"
|
||||
actions={<>
|
||||
|
|
@ -1099,7 +1099,8 @@ export default function Storyboard() {
|
|||
/>
|
||||
|
||||
{/* 吸顶工具条只剩「这一页现在是什么规模 + 用哪种版式看」。
|
||||
概况折叠归外壳(面包屑那一行已有同一颗按钮,共用 useBriefStore,不再重复一颗)。 */}
|
||||
项目概况不在这里也不在外壳:入口只有顶栏那颗流程控制台,点开是右侧抽屉,
|
||||
所以这一页不再重复一颗「展开概况」(2026-11 第十一轮)。 */}
|
||||
<Toolbar
|
||||
sticky
|
||||
info={<Value>共 {shots.length} 镜 · 计划 {plannedDuration.toFixed(1)}s · 已合格 {approvedCount} 镜{issueCount ? ` · 有阻塞 ${issueCount} 镜` : ''}</Value>}
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ import { refresh, useProjectStore } from '../../stores/project'
|
|||
import { useSystemStore } from '../../stores/system'
|
||||
import { notify } from '../../stores/notice'
|
||||
import { openPreview } from '../../stores/preview'
|
||||
import { PageHead, ActionGroup, Actions, Button, Check, Chip, ChipBar, Ctlbar, Divider, Empty, ErrorText, ExtLink, Field, FieldBlock, FilePick, FormGrid, FormRow, Grid, Count, IconText, Input, IssueRow, Layout, LineHint, MONO, MUTED, MUTED_MONO, MaybeNumberInput, Mono, NumberInput, OptionGrid, PageStack, Panel, PanelHead, Row, Spinner, Status, Table, Tag, TagGroup, TextArea, Toolbar, Value } from '../../components/ui'
|
||||
import { NodeHead, ActionGroup, Actions, Button, Check, Chip, ChipBar, Ctlbar, Divider, Empty, ErrorText, ExtLink, Field, FieldBlock, FilePick, FormGrid, FormRow, Grid, Count, IconText, Input, IssueRow, Layout, LineHint, MONO, MUTED, MUTED_MONO, MaybeNumberInput, Mono, NumberInput, OptionGrid, PageStack, Panel, PanelHead, Row, Spinner, Status, Table, Tag, TagGroup, TextArea, Toolbar, Value } from '../../components/ui'
|
||||
import { IconAdd, IconArrowDown, IconArrowUp, IconCheck, IconChevronDown, IconChevronUp, IconClose, IconDelete, IconEdit, IconEye, IconMic, IconPass, IconSound, IconStar, IconTracks, IconWarn } from '../../components/icons'
|
||||
|
||||
/**
|
||||
|
|
@ -412,8 +412,8 @@ export default function Timeline() {
|
|||
(名字 <b>、TagGroup、SectionTitle 当标签用、两颗按钮,四种高度挤一排)。
|
||||
现在它是「只有卡头的卡」:名字进卡头标题、计数进 sub、版本操作进 extra。 */}
|
||||
{/* 页头(第 1 条):时间线版本是这一页的全局对象——下拉选中哪一版,
|
||||
「设为当前 / 删除」就作用于哪一版,三件必须同排,所以整组提进 PageHead。 */}
|
||||
<PageHead
|
||||
「设为当前 / 删除」就作用于哪一版,三件必须同排,所以整组提进 NodeHead。 */}
|
||||
<NodeHead
|
||||
title="时间线合成"
|
||||
sub="把有产物的镜头按镜序编排版本,逐段核对画面、配音与字幕,再交给导出。"
|
||||
actions={<>
|
||||
|
|
|
|||
|
|
@ -79,22 +79,3 @@ export const refresh = () => {
|
|||
const id = useProjectStore.getState().id
|
||||
return id ? loadProject(id) : Promise.resolve()
|
||||
}
|
||||
|
||||
/* ── 项目概况(4 张指标卡 + 12 节点流程条)的折叠状态 ──────────────────────
|
||||
放在共享层而不是 ProjectDetail 私有:「分镜与脚本」正文最重(看板 + 编辑抽屉),
|
||||
工作台自己也得有办法让上面那两屏立刻让位。偏好记 localStorage,跨页签保持。 */
|
||||
const BRIEF_KEY = 'nex.project.brief.open'
|
||||
|
||||
function initialBrief(): boolean {
|
||||
let saved: string | null = null
|
||||
try { saved = localStorage.getItem(BRIEF_KEY) } catch { return true }
|
||||
return saved === null ? true : saved === '1'
|
||||
}
|
||||
|
||||
export const useBriefStore = create<{ open: boolean; set: (open: boolean) => void }>((set) => ({
|
||||
open: initialBrief(),
|
||||
set: (open) => {
|
||||
set({ open })
|
||||
try { localStorage.setItem(BRIEF_KEY, open ? '1' : '0') } catch { /* 隐私模式:当场生效即可 */ }
|
||||
}
|
||||
}))
|
||||
|
|
|
|||
Loading…
Reference in New Issue