Archipelago/WebHostLib/templates
Chris Wilson 5e3c5dedf3
WebHost: Massive overhaul of options pages (#2614)
* Implement support for option groups. WebHost options pages still need to be updated.

* Remove debug output

* In-progress conversion of player-options to Jinja rendering

* Support "Randomize" button without JS, transpile SCSS to CSS, include map file for later editors

* Un-alphabetize options, add default group name for item/location Option classes, implement more option types

* Re-flow UI generation to avoid printing rows with unsupported or invalid option types, add support for TextChoice options

* Support all remaining option types

* Rendering improvements and CSS fixes for prettiness

* Wrap options in a form, update button styles, fix labels, disable inputs where the default is random, nuke the JS

* Minor CSS tweaks, as recommended by the designer

* Hide JS-required elements in noscript tag. Add JS reactivity to range, named-range, and randomize buttons.

* Fix labels, add JS handling for TextChoice

* Make option groups collapsable

* PEP8 current option_groups progress (#2604)

* Make the python more PEP8 and remove unneeded imports

* remove LocationSet from `Item & Location Options` group

* It's ugly, but YAML generation is working

* Stop generating JSON files for player-options pages

* Do not include ItemDict entries whose values are zero

* Properly format yaml output

* Save options when form is submitted, load options on page load

* Fix options being omitted from the page if a group has an even number of options

* Implement generate-game, escape option descriptions

* Fix "randomize" checkboxes not properly setting YAML options to "random"

* Add a separator between item/location groups and items/locations in their respective lists

* Implement option presets

* Fix docs to detail what actually ended up happening

* implement option groups on webworld to allow dev sorting (#2616)

* Force extremely long item/location/option names with no spaces to text-wrap

* Fix "randomize" button being too wide in single-column display, change page header to include game name

* Update preset select to read "custom" when updating form inputs. Show error message if the user doesn't input a name

* Un-break weighted-options, add option group names to weighted options

* Nuke weighted-options. Set up framework to rebuild it in Jinja.

* Generate styles with scss, remove styles which will be replaced, add placeholders for worlds

* Support Toggle, DefaultOnToggle, and Choice options in weighted-options

* Implement expand/collapse without JS for worlds and option groups

* Properly style set options

* Implement Range and NamedRange. Also, CSS is hard.

* Add support for remaining option types. JS and backend still forthcoming.

* Add JS functionality for collapsing game divs, populating span values on range updates. Add <noscript> tag to warn users with JS disabled.

* Support showing/hiding game divs based on range value for game

* Add support for adding/deleting range rows

* Save settings to localStorage on form submission

* Save deleted options on form submission

* Break weighted-options into a per-game page.

- Break weighted-options into a per-game page
- Add "advanced options" links to supported games page
- Use details/summary tags on supported games, player-options, and weighted-options
- Fix bug preventing previously deleted rows from being removed on page load if JS is enabled
- Move route handling for options pages to options.py
- Remove world handling from weighted-options

* Implement loading previous settings from localStorage on page load if JS is enabled

* Weighted options can now generate YAML files and single-player games

* options pages now respect option visibility settings for simple and complex pages

* Remove `/weighted-settings` redirect, fix weighted-options link on player-options page

* Fix instance of AutoWorld not having access to proper `random`

* Catch instances of frozenset along with set

* Restore word-wrap in tooltips

* Fix word wrap in player-options labels

* Add `dedent` filter to help with formatting tooltips in player-options

* Do not change the ordering of keys when printing yaml files

* Move necessary import out of conditional statement

* Expand only the first option group by default on both options pages

* Respect option visibility when generating yaml template files

* Swap to double quotes

* Replace instances of `/weighted-settings` with `/weighted-options`, swap out incomplete links

* Strip newlines and spaces after applying dedent filter

* Fix documentation for option groups

* Update site map

* Update various docs

* Sort OptionSet lists alphabetically

* Minor style tweak

* Fix extremely long text overflowing tooltips

* Convert player-options to use CSS grid instead of tables

* Do not display link to weighted-options page on supported games if the options page is an external link

* Update worlds/AutoWorld.py

Bugfix by @alwaysintreble

Co-authored-by: Aaron Wagener <mmmcheese158@gmail.com>

* Fix NamedRange options not being properly set if a preset it loaded

* Move option-presets route into options.py

* Include preset name in YAML if not "default" and not "custom"

* Removed macros for PlandoBosses and DefaultOnToggle, as they were handled by their parent classes

* Fix not disabling custom inputs when the randomize button is clicked

* Only sort OptionList and OptionSet valid_keys if they are unordered

* Quick style fixes for player-settings to give `select` elements `text-overflow: ellipsis` and increase base size of left-column

* Prevent showing a horizontal scroll bar on player-options if the browser width was beneath a certain threshold

* Fix a bug in weighted-options which prevented inputting a negative value for new range inputs

---------

Co-authored-by: Aaron Wagener <mmmcheese158@gmail.com>
2024-05-18 00:11:57 -04:00
..
header [Webhost] header closing tag moved after mobile menu (#1650) 2023-04-05 19:27:56 -04:00
playerOptions WebHost: Massive overhaul of options pages (#2614) 2024-05-18 00:11:57 -04:00
weightedOptions WebHost: Massive overhaul of options pages (#2614) 2024-05-18 00:11:57 -04:00
404.html Add subdirectory handling for zelda3, factorio, and minecraft. Add generic 404 page. 2021-06-14 19:35:02 -04:00
autotablepage.html update jinja templates to use base static files 2021-05-13 00:41:49 +02:00
check.html WebHost: Support multi-select during check/generate file upload (#2138) 2023-09-11 16:57:14 -04:00
checkResult.html WebHost: offer combined yaml file on /check if successful (#2337) 2023-10-22 02:02:30 +02:00
faq.html Updates to WebHost 2021-08-22 20:01:58 -04:00
gameInfo.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00
generate.html Core: set consistent server defaults (#2566) 2024-01-14 21:24:34 +01:00
genericTracker.html WebHost: Refactor `tracker.py`, removal of dead code, and tweaks to layouts of some tracker pages. (#2438) 2023-11-18 12:29:35 -06:00
glossary.html docs: add common terms documentation to website (#680) 2022-06-27 23:34:47 -04:00
hostGame.html WebHost: Fixed some document titles (#1063) 2022-10-06 18:01:07 -04:00
hostRoom.html Webhost: open graph support for /room (#2580) 2023-12-17 00:08:40 -05:00
islandFooter.html WebHost: Copyright update time. (#2660) 2024-01-03 18:43:41 -06:00
landing.html WebHost: link to stats from the use statistics directly on landing (#2242) 2023-10-02 20:52:58 -04:00
macros.html Webhost: add file downloads to the room api endpoint (#2780) 2024-04-11 05:05:52 +02:00
multitracker.html WebHost: Refactor `tracker.py`, removal of dead code, and tweaks to layouts of some tracker pages. (#2438) 2023-11-18 12:29:35 -06:00
multitrackerHintTable.html WebHost: Refactor `tracker.py`, removal of dead code, and tweaks to layouts of some tracker pages. (#2438) 2023-11-18 12:29:35 -06:00
multitrackerNavigation.html WebHost: Refactor `tracker.py`, removal of dead code, and tweaks to layouts of some tracker pages. (#2438) 2023-11-18 12:29:35 -06:00
multitracker__ALinkToThePast.html ALTTP: Updates and refactors to multi-tracker and player tracker. (#3183) 2024-04-20 18:29:41 -04:00
multitracker__Factorio.html WebHost: Refactor `tracker.py`, removal of dead code, and tweaks to layouts of some tracker pages. (#2438) 2023-11-18 12:29:35 -06:00
ootTracker.html Update small and boss key counters during the normal update cycle 2021-09-24 23:10:26 +00:00
pageWrapper.html WebHost: flash each message only once (#2547) 2023-12-01 21:19:41 +01:00
seedError.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00
siteMap.html WebHost: Massive overhaul of options pages (#2614) 2024-05-18 00:11:57 -04:00
startPlaying.html Webhost: Fix a typo on Start Playing page (#3122) 2024-04-11 19:31:42 -04:00
stats.html Fix chart indent 2022-04-20 14:30:36 -07:00
supportedGames.html WebHost: Massive overhaul of options pages (#2614) 2024-05-18 00:11:57 -04:00
tablepage.html update jinja templates to use base static files 2021-05-13 00:41:49 +02:00
templates.html [WebHost] Fix /templates page referencing the wrong directory 2022-01-24 19:11:44 -05:00
tracker__ALinkToThePast.html ALTTP: Updates and refactors to multi-tracker and player tracker. (#3183) 2024-04-20 18:29:41 -04:00
tracker__ChecksFinder.html WebHost: Refactor `tracker.py`, removal of dead code, and tweaks to layouts of some tracker pages. (#2438) 2023-11-18 12:29:35 -06:00
tracker__Minecraft.html WebHost: Refactor `tracker.py`, removal of dead code, and tweaks to layouts of some tracker pages. (#2438) 2023-11-18 12:29:35 -06:00
tracker__OcarinaOfTime.html WebHost: Refactor `tracker.py`, removal of dead code, and tweaks to layouts of some tracker pages. (#2438) 2023-11-18 12:29:35 -06:00
tracker__Starcraft2.html SC2: Fix HERC upgrades (#3044) 2024-03-28 15:38:34 +01:00
tracker__SuperMetroid.html WebHost: Refactor `tracker.py`, removal of dead code, and tweaks to layouts of some tracker pages. (#2438) 2023-11-18 12:29:35 -06:00
tracker__Timespinner.html WebHost: Refactor `tracker.py`, removal of dead code, and tweaks to layouts of some tracker pages. (#2438) 2023-11-18 12:29:35 -06:00
tutorial.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00
tutorialLanding.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00
userContent.html WebHost: allow deleting Rooms and Seeds, as well as their associated data (#3071) 2024-04-02 16:45:07 +02:00
viewSeed.html WebHost: fix indentation (#2240) 2023-10-02 20:07:31 +02:00
waitSeed.html Website Style Upgrade (#353) 2022-03-28 20:12:17 -04:00