ui: Data Generation view (per-DB tabs, light generate, run status) + topology pulse

This commit is contained in:
mo
2026-06-26 01:17:51 +00:00
parent bac3a90775
commit be526bb0e3
6 changed files with 286 additions and 7 deletions
+10 -1
View File
@@ -68,7 +68,14 @@ export function useCommandCenter() {
const [selectedNode, setSelectedNode] = useState<TopologyNode | null>(null)
const [nodeDetail, setNodeDetail] = useState<NodeDetail | null>(null)
const [nodeBusy, setNodeBusy] = useState(false)
const [mainView, setMainView] = useState<'platform' | 'approvals' | 'presentation' | 'dataquality' | 'knowledge' | 'storage' | 'hdfs' | 'search'>('platform')
const [mainView, setMainView] = useState<'platform' | 'approvals' | 'presentation' | 'dataquality' | 'knowledge' | 'storage' | 'hdfs' | 'search' | 'datagen'>('platform')
const [genPulse, setGenPulse] = useState(false)
const genPulseTimer = useRef<ReturnType<typeof setTimeout> | null>(null)
const pulseFlow = useCallback(() => {
setGenPulse(true)
if (genPulseTimer.current) clearTimeout(genPulseTimer.current)
genPulseTimer.current = setTimeout(() => setGenPulse(false), 60000)
}, [])
const [approvalHighlight, setApprovalHighlight] = useState(false)
const [workbenchMode, setWorkbenchMode] = useState<'agent' | 'sql-postgres' | 'sql-mysql' | 'sql-mongodb' | 'sql-trino' | null>(null)
const [chatExpanded, setChatExpanded] = useState(false)
@@ -336,6 +343,8 @@ export function useCommandCenter() {
nodeBusy,
mainView,
setMainView,
genPulse,
pulseFlow,
approvalHighlight,
setApprovalHighlight,
workbenchMode,