ui: Data Generation view (per-DB tabs, light generate, run status) + topology pulse
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user