Ci config mode#43
Merged
Merged
Conversation
Render the config (setup) mode wizard to a self-contained static site for visual review and CI publishing, without flashing a device. generate.lua runs the real gluon-web model classes and every package's config-mode/wizard/* section files against stubbed router backends, then walks the form tree and emits HTML mirroring the gluon-web view templates. Because it uses the same wizard-section discovery the router does, plugins appear automatically. The output is paired with the unmodified gluon.css and gluon-web-model.js, so dependency show/hide, validation and dynlists behave as on a device. build.sh renders into out/ (lua/lua5.1, falling back to nix-shell) and copies in the real CSS/JS. A GitHub Pages workflow builds on relevant changes and deploys from the default branch. Signed-off-by: Florian Maurer <fmaurer@disroot.org> Assisted-by: Claude:claude-opus-4-8
Generalise the preview from the wizard alone to the whole config-mode page tree. Run every package's controllers to build the same navigation the dispatcher builds, then render each model() page (network, WLAN, remote access / SSH keys, automatic updates, node role, logging, private WLAN, mesh-vpn-fastd, plus the wizard) with mock backends and a working menu. Each page is written to its own HTML file; index.html redirects to the wizard. Pages that need live device state and fail to render degrade to a placeholder instead of breaking the site; template()/call() entries (info, upgrade) are shown as placeholders. Plugins that register config-mode pages appear automatically. Signed-off-by: Florian Maurer <fmaurer@disroot.org> Assisted-by: Claude:claude-opus-4-8
The iwinfo stub returned empty lists, so the per-radio transmission power selects were absent and the outdoor HT Mode select (revealed when "installed outdoors" is enabled) offered only "(default)". Return representative txpower and HT-mode values from the mock so these options render meaningfully, like on a 5 GHz device. Signed-off-by: Florian Maurer <fmaurer@disroot.org> Assisted-by: Claude:claude-opus-4-8
Set cellular_device true and add a gluon 'cellular' uci section so the Cellular admin page registers and renders its fields (SIM PIN, APN, type, auth, ...) with the uplink enabled. Signed-off-by: Florian Maurer <fmaurer@disroot.org> Assisted-by: Claude:claude-opus-4-8
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.