Skip to content

Conversation

csehatt741
Copy link
Contributor

Summary

A new feature was implemented to shuffle any number field in the workflow editor.

  • showShuffle was added to the schemas of both integer and floating point field settings in workflow.ts
  • a new utility function, randomFloat, was created in randomFloat.ts to be able to generate random floating point numbers
  • useIntegerField and useFloatField were extended to generate a new random value and dispatch the changed value when the Shuffle button is clicked
  • Show Shuffle toggle was added to NodeFieldElementIntegerSettings and NodeFieldElementFloatSettings
  • IntegerFieldInput, IntegerFieldSlider, IntegerFieldInputAndSlider, FloatFieldInput, FloatFieldSlider, FloatFieldInputAndSlider were extended with the Shuffle button
  • new tanslations, showShuffle and shuffle, were added to en.json

Related Issues / Discussions

Closes #7788

Checklist

  • The PR has a short but descriptive title, suitable for a changelog
  • Tests added / updated (if applicable)
  • Documentation added / updated (if applicable)
  • Updated What's New copy (if doing a release after this PR)

@github-actions github-actions bot added the frontend PRs that change frontend files label Aug 20, 2025
Copy link
Collaborator

@psychedelicious psychedelicious left a comment

Choose a reason for hiding this comment

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

Couple minor comments - apply to both integer and float

@csehatt741 csehatt741 force-pushed the feat/shuffle-seed-button-on-workflows branch from 1001f32 to b4db065 Compare August 21, 2025 09:21
Copy link
Collaborator

@psychedelicious psychedelicious left a comment

Choose a reason for hiding this comment

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

Thanks!

@psychedelicious psychedelicious merged commit c5689ca into invoke-ai:main Aug 21, 2025
13 checks passed
@csehatt741 csehatt741 deleted the feat/shuffle-seed-button-on-workflows branch August 22, 2025 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
frontend PRs that change frontend files
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[enhancement]: Shuffle Seed button on workflows
2 participants