This commit is contained in:
Typer_Body
2026-06-05 21:20:46 +08:00
parent cb0bb44db8
commit cb0cc4d06a
9 changed files with 100 additions and 204 deletions

View File

@@ -177,3 +177,7 @@
transform: scale(0.95) rotate(-4deg);
}
}
.react-flow__attribution {
opacity: 0.2 !important;
}

View File

@@ -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>

View File

@@ -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()) {