Skip to content

feat: Make workflow read only by disabling drag-and-drop and edge handles #163

@handreyrc

Description

@handreyrc

Description

Make the workflow read only if the readOnly prop parameter is true.

Motivation

When in read only mode it should not be possible to drag nodes and edges around and also visualize and interact with edge handles.

Proposed Implementation

  • Disable react flow drag handlers preventing nodes from being dragged in read-only mode.
  • Hide edge handles in read only mode.

Definition of Done

  • Implementation: It should not be possible to move nodes arround, visualize and interact with edge handles in read only mode.
  • Unit Tests: Comprehensive unit tests are included and passing.
  • Integration Tests: Verified within the monorepo and target environments (Web/VS Code).
  • Documentation: Updated README.md, ADRs, or official docs.
  • Performance: No significant regression in editor responsiveness.
  • Accessibility: UI changes comply with accessibility standards.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request
No fields configured for Feature.

Projects

Status
Next

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions