mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-06-13 01:06:03 +00:00
cold
This commit is contained in:
@@ -177,3 +177,7 @@
|
||||
transform: scale(0.95) rotate(-4deg);
|
||||
}
|
||||
}
|
||||
|
||||
.react-flow__attribution {
|
||||
opacity: 0.2 !important;
|
||||
}
|
||||
|
||||
@@ -358,7 +358,10 @@ export default function WorkflowDetailContent({ id }: { id: string }) {
|
||||
<Upload className="size-4 mr-1" />
|
||||
{t('workflows.import')}
|
||||
</Button>
|
||||
<Button onClick={handleSave} disabled={isSaving || !basicInfo.name.trim()}>
|
||||
<Button
|
||||
onClick={handleSave}
|
||||
disabled={isSaving || !basicInfo.name.trim()}
|
||||
>
|
||||
{isSaving ? t('common.saving') : t('common.create')}
|
||||
</Button>
|
||||
</div>
|
||||
|
||||
@@ -83,7 +83,6 @@ export default function WorkflowDebugger({
|
||||
const [activeTab, setActiveTab] = useState<string>('context');
|
||||
const [autoScroll, setAutoScroll] = useState(true);
|
||||
const [newVariable, setNewVariable] = useState({ key: '', value: '' });
|
||||
const [, setExpandedNodes] = useState<Set<string>>(new Set());
|
||||
const pollCancelledRef = useRef(false);
|
||||
|
||||
const {
|
||||
@@ -107,7 +106,6 @@ export default function WorkflowDebugger({
|
||||
clearDebugLogs,
|
||||
setDebugContext,
|
||||
resetDebugContext,
|
||||
addWatchedVariable,
|
||||
removeWatchedVariable,
|
||||
resetDebugState,
|
||||
} = useWorkflowStore();
|
||||
@@ -311,19 +309,6 @@ export default function WorkflowDebugger({
|
||||
}
|
||||
}, [workflowId, debugExecutionId, t, resetDebugState]);
|
||||
|
||||
// Toggle node expansion
|
||||
const toggleNodeExpanded = (nodeId: string) => {
|
||||
setExpandedNodes((prev) => {
|
||||
const newSet = new Set(prev);
|
||||
if (newSet.has(nodeId)) {
|
||||
newSet.delete(nodeId);
|
||||
} else {
|
||||
newSet.add(nodeId);
|
||||
}
|
||||
return newSet;
|
||||
});
|
||||
};
|
||||
|
||||
// Add custom variable
|
||||
const handleAddVariable = () => {
|
||||
if (newVariable.key.trim()) {
|
||||
|
||||
Reference in New Issue
Block a user