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

WebHost: Add Select All checkbox for OptionSets #4619

Open
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

massimilianodelliubaldini
Copy link
Contributor

@massimilianodelliubaldini massimilianodelliubaldini commented Feb 7, 2025

What is this fixing or adding?

Adds a Select All checkbox for OptionSets, underneath the title. The checkbox is tri-state: Checked when clicked, Unchecked when clicked again, and Indeterminate when a member checkbox of the corresponding OptionSet is clicked. Naturally, clicking the Select All checkbox automatically sets all member checkboxes to Checked, clicking it again automatically sets them all to Unchecked. When Export Options is clicked, this element is filtered out of the YAML keys, so the YAML only retains the member checkbox values.

Looking for feedback - I threw this together in only a couple hours and with some quick input from qwint and Kaito.

How was this tested?

Ran WebHost locally, used Muse Dash options and generated several YAMLs. I tested all three states and reviewed the YAMLs looking for the name of the checkbox. I also generated a seed right from the options page and got a room created with no issue. I did not actually connect to the room.

If this makes graphical changes, please attach screenshots.

Video

image
image

@github-actions github-actions bot added affects: webhost Issues/PRs that touch webhost and may need additional validation. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet. labels Feb 7, 2025
@Exempt-Medic Exempt-Medic added the is: enhancement Issues requesting new features or pull requests implementing new features. label Feb 8, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
affects: webhost Issues/PRs that touch webhost and may need additional validation. is: enhancement Issues requesting new features or pull requests implementing new features. waiting-on: peer-review Issue/PR has not been reviewed by enough people yet.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants