Repository navigation
Add favicons and improve feature flag handling and cleanup - #3606
Conversation
29b0298 to
bc7eead
Compare
bc7eead to
f6f9da9
Compare
5b9fc1a to
906b008
Compare
906b008 to
5086d02
Compare
5086d02 to
b99b21c
Compare
mha1
left a comment
There was a problem hiding this comment.
Tested ok on Nomad, SuperP and Bayck Gemini RX.
b99b21c to
46cdac4
Compare
I've asked for another review as I've pushed some more changes which give us another pretty big saving. I promiise theres no more 😄 |
clean up hashchange listener fix connections help list markup scope hardware layout DOM queries extract inline layout styles replace mui JS with minimal replacements for overlay, ripple and select fields
46cdac4 to
502704b
Compare
mha1
left a comment
There was a problem hiding this comment.
No problem, keep 'em coming. No obvious issues with Nomad, SuperP and Bayck DB Gemini RX. (maybe have another look at the save button color logic)
6e2d262 to
c6a4c73
Compare
c6a4c73 to
a532598
Compare
CapnBry
left a comment
There was a problem hiding this comment.
Tested on
- BAYCKRC 900/2400 Dual Band Gemini RX
- EP2
- RadioMaster TX16S Internal 2.4GHz TX
- RadioMaster Bandit 900MHz TX
- Radiomaster Nexus-XR True Diversity 2.4GHz RX
- RadioMaster ER6 2.4GHz Diversity+6xPWM RX
Every button and drop down and LED color change seems to light up and respond properly as far as I can tell. Everything looks the same! A lot of work to just make things better with no outward appearance changes. Smaller firmware though? I'll take it!
a532598 to
6b8c22b
Compare
Summary
Build and tooling
src/html/package.json,src/html/vite.config.js, andsrc/html/babel.config.jsonas part of the web build upgrade and cleanup.src/html/scripts/check-syntax.mjsandsrc/html/scripts/check-lint.mjs.src/html/eslint.config.jsto support the stricter validation flow.Feature-flag and asset-size work
src/html/feature-blocks-plugin.jsto support comment-based feature blocks more reliably, including nested block handling.FEATURESobject out of runtime app code into the build side viasrc/html/features.jsandsrc/html/dev-mock-plugin.js.src/html/src/pages/continuous-wave.js,src/html/src/pages/update-panel.js, andsrc/html/src/app.jsto use the new build-time feature gating.@babel/plugin-transform-runtimeplugin to reduce the duplicated decorator helper code (big savings here!)mui.jsand have our own implementations for ripple effects, overlay and select inputs. This also provides big savings.UI behavior and hardware gating
src/html/src/app.js.src/html/src/utils/hardware-schema.js.src/html/src/pages/hardware-layout.jsandsrc/html/src/utils/libs.js.src/html/src/page-groups/general-group.js,src/html/src/page-groups/advanced-group.js, and a few smaller UI files.Firmware Size Comparison Output
FCC/Unified_ESP32C3_2400_RX/firmware.binFCC/Unified_ESP32C3_2400_TX/firmware.binFCC/Unified_ESP32C3_900_RX/firmware.binFCC/Unified_ESP32C3_900_TX/firmware.binFCC/Unified_ESP32C3_LR1121_RX/firmware.binFCC/Unified_ESP32C3_LR1121_TX/firmware.binFCC/Unified_ESP32S3_2400_RX/firmware.binFCC/Unified_ESP32S3_2400_TX/firmware.binFCC/Unified_ESP32S3_900_RX/firmware.binFCC/Unified_ESP32S3_900_TX/firmware.binFCC/Unified_ESP32S3_LR1121_RX/firmware.binFCC/Unified_ESP32S3_LR1121_TX/firmware.binFCC/Unified_ESP32_2400_RX/firmware.binFCC/Unified_ESP32_2400_TX/firmware.binFCC/Unified_ESP32_900_RX/firmware.binFCC/Unified_ESP32_900_TX/firmware.binFCC/Unified_ESP32_LR1121_RX/firmware.binFCC/Unified_ESP32_LR1121_TX/firmware.binFCC/Unified_ESP8285_2400_RX/firmware.binFCC/Unified_ESP8285_2400_TX/firmware.binFCC/Unified_ESP8285_900_RX/firmware.binFCC/Unified_ESP8285_900_TX/firmware.binLBT/Unified_ESP32C3_2400_RX/firmware.binLBT/Unified_ESP32C3_2400_TX/firmware.binLBT/Unified_ESP32C3_LR1121_RX/firmware.binLBT/Unified_ESP32C3_LR1121_TX/firmware.binLBT/Unified_ESP32S3_2400_RX/firmware.binLBT/Unified_ESP32S3_2400_TX/firmware.binLBT/Unified_ESP32S3_LR1121_RX/firmware.binLBT/Unified_ESP32S3_LR1121_TX/firmware.binLBT/Unified_ESP32_2400_RX/firmware.binLBT/Unified_ESP32_2400_TX/firmware.binLBT/Unified_ESP32_LR1121_RX/firmware.binLBT/Unified_ESP32_LR1121_TX/firmware.binLBT/Unified_ESP8285_2400_RX/firmware.binLBT/Unified_ESP8285_2400_TX/firmware.bin