refactor(workflow-dashboard): reduce cyclomatic complexity in editor #455
Reference in New Issue
Block a user
Delete Branch "fix/449-reduce-dashboard-complexity"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
What
Refactored the
workflow-dashboardpackage to reduce cyclomatic complexity in editor-related handlers and components.Why
Biome's
noExcessiveCognitiveComplexityrule flagged several functions as exceeding the max complexity of 15. This refactor brings them within limits, improving maintainability and readability.Changes
?:) withT | nullper project conventionsbun run checkRef
Fixes #449
LGTM ✅ 纯提取重构,行为保持正确,新增测试覆盖 layout/transIn/validate。