Allow deleting any branch via keyboard (#13897)
The heart of the fixing is making edges selectable and deletable in `packages/twenty-front/src/modules/workflow/workflow-diagram/utils/transformFilterNodesAsEdges.ts`. ## When Branches are enabled https://github.com/user-attachments/assets/7477c556-d593-4235-8312-e830847192ca ## When Branches are disabled https://github.com/user-attachments/assets/445c98b7-2370-4d60-b2e8-e47b05e8d8a2
This commit is contained in:
committed by
GitHub
parent
dafb43be6d
commit
36dc6cbcb8
+5
@@ -30,6 +30,9 @@ export const useRunWorkflowRunOpeningInCommandMenuSideEffects = () => {
|
||||
const isWorkflowFilteringEnabled = useIsFeatureEnabled(
|
||||
FeatureFlagKey.IS_WORKFLOW_FILTERING_ENABLED,
|
||||
);
|
||||
const isWorkflowBranchEnabled = useIsFeatureEnabled(
|
||||
FeatureFlagKey.IS_WORKFLOW_BRANCH_ENABLED,
|
||||
);
|
||||
|
||||
const runWorkflowRunOpeningInCommandMenuSideEffects = useRecoilCallback(
|
||||
({ snapshot, set }) =>
|
||||
@@ -63,6 +66,7 @@ export const useRunWorkflowRunOpeningInCommandMenuSideEffects = () => {
|
||||
stepInfos: workflowRunRecord.state.stepInfos,
|
||||
trigger: workflowRunRecord.state.flow.trigger,
|
||||
isWorkflowFilteringEnabled,
|
||||
isWorkflowBranchEnabled,
|
||||
});
|
||||
|
||||
if (!isDefined(stepToOpenByDefault)) {
|
||||
@@ -133,6 +137,7 @@ export const useRunWorkflowRunOpeningInCommandMenuSideEffects = () => {
|
||||
apolloCoreClient.cache,
|
||||
objectPermissionsByObjectMetadataId,
|
||||
isWorkflowFilteringEnabled,
|
||||
isWorkflowBranchEnabled,
|
||||
openWorkflowRunViewStepInCommandMenu,
|
||||
getIcon,
|
||||
],
|
||||
|
||||
Reference in New Issue
Block a user