Skip to content

Feature: Update VolumeSpecific Action to Use Text Input with Validation #76

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

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

Conversation

droid-sheep
Copy link

@droid-sheep droid-sheep commented Apr 9, 2025

Description: This pull request updates the Set Volume to Specific Value action to improve flexibility and input validation. The input type has been changed from number to textinput, allowing the use of variables. Additionally, validation logic has been added to ensure the input is a valid number within the range of 0 to 100.

Changes:

  • Changed the input type for the value option from number to textinput.

  • Enabled the use of variables in the input (useVariables: true).

  • Validation: Ensure the input is a valid numeric value using a regular expression /^\d+$/.

  • Validation: Check that the numeric value is within the range of 0 to 100.

  • Added warning logs for invalid or out-of-range inputs.

Benefits:
Increased flexibility by allowing variable-based inputs.
Prevents potential issues caused by invalid or out-of-range inputs.

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.

1 participant