Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: Add updateHiddenOutputs helper function to manage output visibility #6932

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

Cristhianzl
Copy link
Member

This pull request introduces a new helper function to update hidden outputs and integrates it into the existing codebase. The most important changes include the addition of the updateHiddenOutputs function and its usage in relevant hooks.

New Helper Function:

Integration of Helper Function:

Type Definitions:

BEFORE UPDATING:
image

AFTER UPDATING:
image

The outputs remained hidden, whether using the single update button or the 'Update All' button.

…den outputs in the frontend CustomNodes module

♻️ (use-update-all-nodes.ts): refactor useUpdateAllNodes hook to update hidden outputs for all nodes in the frontend CustomNodes module
♻️ (use-update-node-code.ts): refactor useUpdateNodeCode hook to update hidden outputs for a specific node's code in the frontend CustomNodes module
♻️ (index.ts): refactor types in the flow module to include OutputFieldType for better type checking and consistency
@Cristhianzl Cristhianzl requested a review from lucaseduoli March 5, 2025 15:04
@Cristhianzl Cristhianzl self-assigned this Mar 5, 2025
@dosubot dosubot bot added size:M This PR changes 30-99 lines, ignoring generated files. enhancement New feature or request javascript Pull requests that update Javascript code labels Mar 5, 2025
@github-actions github-actions bot added enhancement New feature or request and removed enhancement New feature or request labels Mar 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request javascript Pull requests that update Javascript code size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant