+
+
+ {title}
+ {node && {nodeSummaryLine(node)}}
+
+ {err &&
}
+ {detail?.body?.length === 1 && detail.body[0].kind === 'restricted' && (
+
内容受限({detail.body[0].reason || '权限'})——标题与状态可见,正文不展示
+ )}
+ {detail && detail.meta && !sameSnapshot(detail.meta, overview.meta) && (
+
节点详情与统计快照不同({detail.meta.snapshotRevision} vs {overview.meta.snapshotRevision})——刷新对齐
+ )}
+ {node && node.ref.kind === 'document' && (
+ <>
+
章节状态
+ {!childPage &&
章节按需加载——在左侧树展开
}
+ {childPage && childPage.items.length === 0 &&
无章节
}
+ {childPage && childPage.items.length > 0 && (
+
+ | 章节 | 内容 | 核实 | 来源 | 冲突 | 最近更新 |
+
+ {childPage.items.map(sec => (
+
+ | {sec.title} |
+ {{ complete: '完整', partial: '部分', empty: '空', inaccessible: '受限', unavailable: '不可读' }[sec.state.content] || sec.state.content} |
+ {sec.state.verification === 'not_applicable' ? '—' : sec.state.verification} |
+ {sec.state.sourceCount} |
+ {sec.state.conflictCount} |
+ {sec.lastChangedAt ? new Date(sec.lastChangedAt).toLocaleDateString('zh-CN') : '—'} |
+
+ ))}
+
+
+ )}
+ >
+ )}
+ {node && node.ref.kind === 'section' && (
+
连续正文阅读与依据/影响面板在阅读器视图提供(I3)——本页展示状态摘要
+ )}
+ {detail?.meta?.truncated && (
+
详情已截断:{detail.meta.truncationReasons?.join(';')}
+ )}
+
+ )
+}
diff --git a/src/components/Workspaces.tsx b/src/components/Workspaces.tsx
index 2a3458c..9993be8 100644
--- a/src/components/Workspaces.tsx
+++ b/src/components/Workspaces.tsx
@@ -8,12 +8,13 @@ import { docBridge } from './Workbench'
import { AgentRow } from './Workbench'
import { buildWorkspaceEntries, type WorkspaceEntry } from '../workspaces'
import { RdmAuditWorkspace } from './RdmAuditWorkspace'
+import { DocumentCockpit } from './DocumentCockpit'
/** 体系工具(顺序即 ⌘ 序号)。服务端工作区全员可见;插件管理面板只在系统管理区。
* 追溯审计按命令面能力显隐(增量 2):store.rdmAuditAvailable 为 true 才入列。 */
export function workspaceEntries(): WorkspaceEntry[] {
const s = store.getState()
- return buildWorkspaceEntries(s.serverWorkspaces, { rdmAudit: s.rdmAuditAvailable })
+ return buildWorkspaceEntries(s.serverWorkspaces, { rdmAudit: s.rdmAuditAvailable, rdmCockpit: s.rdmCockpitAvailable })
}
export function Workspaces() {
@@ -36,6 +37,11 @@ export function Workspaces() {