Skip to content

Region layer renders on mini-map but not on main workflow canvas #5120

@aglinxinyuan

Description

@aglinxinyuan

What happened?

When View → Regions is toggled on, the region hulls (soft-coloured outlines around each region of operators during execution) appear only on the mini-map in the bottom-right corner. The main workflow canvas stays empty no matter how the checkbox is flipped.

Expected: the toggle should drive both surfaces — hulls visible on the main canvas when on, hidden when off.

Root cause: the main editor permanently carries a hide-region CSS class that forces display: none on every region element, while toggleRegion() only flips a body/visibility attribute. The mini-map has no such class, so the same model elements render there. Regression from #4495

How to reproduce?

  1. Open a workflow with at least two connected operators.
  2. Run it so the backend emits region updates.
  3. Toggle View → Regions on.
  4. Observe: hulls show on the mini-map but never on the main canvas.

Branch

main

Commit Hash (Optional)

dd39f93

What browsers are you seeing the problem on?

No response

Relevant log output

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No fields configured for Bug.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions