Skip to content

feat: Add Toggle for Collapsing Nodes#1899

Open
camielvs wants to merge 1 commit intomasterfrom
03-04-feat_add_toggle_for_collapsing_nodes
Open

feat: Add Toggle for Collapsing Nodes#1899
camielvs wants to merge 1 commit intomasterfrom
03-04-feat_add_toggle_for_collapsing_nodes

Conversation

@camielvs
Copy link
Collaborator

@camielvs camielvs commented Mar 5, 2026

Description

Remove auto-collapsing of nodes based on editor.position.height and instead introduce a new annotation editor.collapsed for manual toggling of whether the node is collapsed.

Users can now toggle collapsed state via a switch in the task configuration section. Collapsed state is no longer directly related to the values entered in editor.position. Instead, editor.position height and width values will be used for the uncollapsed node state, if provided.

Collapse logic & rendering is unchanged from before.

Related Issue and Pull requests

Closes https://github.com/Shopify/oasis-frontend/issues/476

Type of Change

  • Improvement

Checklist

  • I have tested this does not break current pipelines / runs functionality
  • I have tested the changes on staging

Screenshots (if applicable)

image.png

Test Instructions

  • Select a task; preferably one with many inputs & outputs
  • navigate to the task configuration section
  • toggle "collapse node" on and off. confirm the node on the canvas collapses appropriately
  • modify the task's editor.position annotation to add a height value. confirm it does not affect collapsed state.

Additional Comments

@github-actions
Copy link

github-actions bot commented Mar 5, 2026

🎩 To tophat this PR:

You can add the following URL parameter to your browser to tophat this PR:

`?tophat_location=03-04-feat_add_toggle_for_collapsing_nodes/903d602`

Copy link
Collaborator Author

camielvs commented Mar 5, 2026

@camielvs camielvs force-pushed the 03-04-feat_add_toggle_for_collapsing_nodes branch from 5b0d62f to 7aa131f Compare March 5, 2026 00:56
@camielvs camielvs force-pushed the 03-04-feat_add_toggle_for_collapsing_nodes branch from 7aa131f to 903d602 Compare March 5, 2026 01:56
@camielvs camielvs marked this pull request as ready for review March 5, 2026 02:28
@camielvs camielvs requested a review from a team as a code owner March 5, 2026 02:28
return annotations;
}

const { [key]: _, ...rest } = annotations;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Smart =)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants