Support workflows in record page layouts (#15471)

https://github.com/user-attachments/assets/275a02a3-7054-45d1-9423-75bb5223a8ba
This commit is contained in:
Baptiste Devessier
2025-10-31 18:45:58 +01:00
committed by GitHub
parent 09c704c8bd
commit 5f0d24798a
34 changed files with 607 additions and 164 deletions
@@ -2,13 +2,8 @@ import { useRecoilComponentValue } from '@/ui/utilities/state/component-state/ho
import { useWorkflowRun } from '@/workflow/hooks/useWorkflowRun';
import { WorkflowRunDiagramCanvas } from '@/workflow/workflow-diagram/components/WorkflowRunDiagramCanvas';
import { workflowDiagramStatusComponentState } from '@/workflow/workflow-diagram/states/workflowDiagramStatusComponentState';
import styled from '@emotion/styled';
import { isDefined } from 'twenty-shared/utils';
const StyledContainer = styled.div`
height: 100%;
`;
export const WorkflowRunVisualizer = ({
workflowRunId,
}: {
@@ -26,9 +21,5 @@ export const WorkflowRunVisualizer = ({
return null;
}
return (
<StyledContainer>
<WorkflowRunDiagramCanvas workflowRunStatus={workflowRun.status} />
</StyledContainer>
);
return <WorkflowRunDiagramCanvas workflowRunStatus={workflowRun.status} />;
};