From e91086a9bdada9ce8e23b8949e8b792e1fe9d115 Mon Sep 17 00:00:00 2001 From: Florian Date: Sun, 7 Dec 2025 16:45:07 -0600 Subject: [PATCH] [DOC] Sort firmware dropdown lists alphabetically (#2258) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sort the web uploader firmware selection dropdowns alphabetically for better user experience. Applies to both dev and release builds. 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-authored-by: Florian <1technophile@users.noreply.github.com> Co-authored-by: Claude Opus 4.5 --- scripts/gen_wu.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/gen_wu.py b/scripts/gen_wu.py index ee3a173a..f33157b0 100644 --- a/scripts/gen_wu.py +++ b/scripts/gen_wu.py @@ -74,7 +74,7 @@ with open(manif_path + filename, 'wb') as output_file: wu_file = open(vue_path + 'web-uploader.vue', 'w') wu_file.write(wu_temp_p1) -for name in os.listdir(manif_path): +for name in sorted(os.listdir(manif_path)): if 'firmware.bin' in name and ('esp32c3' not in name ) and ('esp32s3' not in name ) and ('esp32' in name or 'ttgo' in name or 'heltec' in name or 'thingpulse' in name or 'theengs' in name or 'lilygo' in name or 'shelly' in name or 'tinypico' in name): fw = name.split('-firmware')[0] man_file = fw + '.manifest.json' @@ -92,7 +92,7 @@ for name in os.listdir(manif_path): wu_file.write(wu_temp_p2) -for name in os.listdir(manif_path): +for name in sorted(os.listdir(manif_path)): if 'firmware.bin' in name and ('esp32c3' in name ): fw = name.split('-firmware')[0] man_file = fw + '.manifest.json' @@ -110,7 +110,7 @@ for name in os.listdir(manif_path): wu_file.write(wu_temp_p3) -for name in os.listdir(manif_path): +for name in sorted(os.listdir(manif_path)): if 'firmware.bin' in name and ('esp32s3' in name ): fw = name.split('-firmware')[0] man_file = fw + '.manifest.json' @@ -128,7 +128,7 @@ for name in os.listdir(manif_path): wu_file.write(wu_temp_p4) -for name in os.listdir(manif_path): +for name in sorted(os.listdir(manif_path)): if 'firmware.bin' in name and ('nodemcu' in name or 'sonoff' in name or 'rf-wifi-gateway' in name or 'manual-wifi-test' in name or 'rfbridge' in name): fw = name.split('-firmware')[0] man_file = fw + '.manifest.json'