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: Support multi-select during check/generate file upload #2138

Merged
merged 3 commits into from
Sep 11, 2023

Conversation

remyjette
Copy link
Collaborator

@remyjette remyjette commented Aug 31, 2023

What is this fixing or adding?

This will allow the user to select multiple YAML files via Shift-Click or Control-Click in their browser when generating a game via the site instead of having to zip them locally first.

Implements this suggestion from #general-suggestions: https://discord.com/channels/731205301247803413/1139359972401102940

There were some suggestions in that thread to make this even better that aren't implemented here, but I agree with " just allowing multi-select in the prompt would go a long, long ways to make it easier" and chose to implement that for now.

How was this tested?

Locally by running WebHost.py. Validated that single-YAML and single-zip uploads still work as expected, then also tried multiple YAMLs. For fun I also tried multiple zips, then a zip+yaml upload and those worked too. I don't think multiple zips or zip+yamls is a particularly common use case but I see no reason to block it either.

If this makes graphical changes, please attach screenshots.

This will allow the user to select multiple YAML files via Shift-Click
or Control-Click in their browser when generating a game via the site
instead of having to zip them locally first.
@remyjette remyjette changed the title [WebHost] Support multi-select during check/generate file upload WebHost: Support multi-select during check/generate file upload Aug 31, 2023
Copy link
Member

@Berserker66 Berserker66 left a comment

Choose a reason for hiding this comment

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

Tested it and it works fine for me. The button still says "File" rather than "File(s)" or such.

@remyjette
Copy link
Collaborator Author

Tested it and it works fine for me. The button still says "File" rather than "File(s)" or such.

Updated generate.html to say "File(s)"

check.html just says "Upload" so I left it as-is, but I can change to "Upload File(s)" for consistency if you want

@Berserker66
Copy link
Member

Consistency does sound nice to me. @LegendaryLinux any comments?

Copy link
Member

@LegendaryLinux LegendaryLinux left a comment

Choose a reason for hiding this comment

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

This looks good to me!

@LegendaryLinux LegendaryLinux merged commit 57c13ff into ArchipelagoMW:main Sep 11, 2023
12 checks passed
@remyjette remyjette deleted the multi-upload branch September 22, 2023 00:08
@ThePhar ThePhar added is: enhancement Issues requesting new features or pull requests implementing new features. affects: webhost Issues/PRs that touch webhost and may need additional validation. labels Oct 16, 2023
FlySniper pushed a commit to FlySniper/Archipelago that referenced this pull request Nov 14, 2023
…ipelagoMW#2138)

* Support multi-select during check/generate file upload

This will allow the user to select multiple YAML files via Shift-Click
or Control-Click in their browser when generating a game via the site
instead of having to zip them locally first.

* Update generate.html: File -> File(s)

* Change check.html button text to "Upload File(s)" to match generate.html
Jouramie pushed a commit to Jouramie/Archipelago that referenced this pull request Feb 28, 2024
…ipelagoMW#2138)

* Support multi-select during check/generate file upload

This will allow the user to select multiple YAML files via Shift-Click
or Control-Click in their browser when generating a game via the site
instead of having to zip them locally first.

* Update generate.html: File -> File(s)

* Change check.html button text to "Upload File(s)" to match generate.html
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

5 participants