Skip to content

Commit

Permalink
[conductor-oss#343]fix:workflow diagram canvas width issue
Browse files Browse the repository at this point in the history
updated orkes-workflow-visualizer version to 1.0.1
  • Loading branch information
najeebkp committed Dec 27, 2024
1 parent e0780c3 commit ca7eae8
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
2 changes: 1 addition & 1 deletion ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"moment": "^2.29.2",
"monaco-editor": "^0.44.0",
"node-forge": "^1.3.0",
"orkes-workflow-visualizer": "^1.0.0",
"orkes-workflow-visualizer": "^1.0.1",
"parse-svg-path": "^0.1.2",
"prop-types": "^15.7.2",
"react": "^18.3.1",
Expand Down
1 change: 1 addition & 0 deletions ui/src/pages/definition/WorkflowDefinition.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -378,6 +378,7 @@ export default function Workflow() {
{dag && dag?.workflowDef && (
<WorkflowVisualizer
maxHeightOverride
maxWidthOverride
pannable
zoomable
zoom={0.7}
Expand Down
5 changes: 3 additions & 2 deletions ui/src/pages/execution/TaskDetails.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ export default function TaskDetails({
{tabIndex === 0 && (
<WorkflowVisualizer
maxHeightOverride
maxWidthOverride
pannable
zoomable
zoom={0.7}
Expand All @@ -48,9 +49,9 @@ export default function TaskDetails({
const selectedTaskRefName =
data?.data?.task?.executionData?.status === "PENDING"
? pendingTaskSelection(data?.data?.task)?.workflowTask
?.taskReferenceName
?.taskReferenceName
: taskWithLatestIteration(execution?.tasks, { ref: data.id })
?.referenceTaskName;
?.referenceTaskName;
setSelectedNode(data);
setSelectedTask({ ref: selectedTaskRefName });
}}
Expand Down
8 changes: 4 additions & 4 deletions ui/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -9046,10 +9046,10 @@ optionator@^0.9.1:
type-check "^0.4.0"
word-wrap "^1.2.5"

orkes-workflow-visualizer@^1.0.0:
version "1.0.0"
resolved "https://registry.npmjs.org/orkes-workflow-visualizer/-/orkes-workflow-visualizer-1.0.0.tgz"
integrity sha512-74AP8HZeAnWja8oQCgkexik9P+oBt9EBdM13joip1VdUOklIDknSFCRKDmtNXERxU/STEcU9hEDlwOvdl3Za4w==
orkes-workflow-visualizer@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/orkes-workflow-visualizer/-/orkes-workflow-visualizer-1.0.1.tgz#18b48a4ab00673cdfd3ee070bdc1083d4df296ea"
integrity sha512-vIoliMzp3q6CB0z8kIFYgbqF/VtOINgbb9QvmX8ALWXdIHEQoCKL7j+w9Y1fns0WoWiIny/TVqxkeVPdUjXbMg==
dependencies:
date-fns "^2.29.3"
lodash "^4.17.21"
Expand Down

0 comments on commit ca7eae8

Please sign in to comment.