ui/src/design/WorkflowDiagram/index.stories.tsx
File index.stories.tsx
has 308 lines of code (exceeds 250 allowed). Consider refactoring. Open
Open
import Button from "../Button";
import { ButtonBar } from "../ButtonBar";
import { Card } from "../Card";
import { Orientation } from "./types";
import WorkflowDiagram from "./index";
Function UpdateWorkflow
has 48 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const UpdateWorkflow = () => {
const [workflow, setWorkflow] = useState(exampleWorkflow);
const [orientation, setOrientation] = useState<Orientation>("horizontal");
return (
Function ComplexWorkflowDiagram
has 44 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
export const ComplexWorkflowDiagram = () => {
const allStates = [
"validate-input-2",
"request-prediction",
"evaluate-created-prediction",