feat: add Fluidd sidebar navigation support via Moonraker DB#23
Draft
bassco wants to merge 2 commits intoJohnBaumb:devfrom
Draft
feat: add Fluidd sidebar navigation support via Moonraker DB#23bassco wants to merge 2 commits intoJohnBaumb:devfrom
bassco wants to merge 2 commits intoJohnBaumb:devfrom
Conversation
Add Fluidd navigation integration alongside the existing Mainsail navi.json approach. Uses Moonraker's database API to inject a KlipperFleet CustomNavLink entry (requires fluidd-core/fluidd#1786). - setup_fluidd_navi.py: install/remove nav link via Moonraker DB API - setup_moonraker.py: add/remove persistent_files for any update_manager section, used to preserve klipperfleet.html across Fluidd updates - install.sh: deploy redirect shim to Fluidd web root + register as persistent_files in [update_manager fluidd] - uninstall.sh: reverse all of the above Reference: fluidd-core/fluidd#1802 (comment) Signed-off-by: Andrew Basson <andrew.basson@gmail.com>
Signed-off-by: Andrew Basson <andrew.basson@gmail.com>
16 tasks
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.
Summary
Adds Fluidd navigation integration alongside the existing Mainsail
navi.jsonapproach. Instead of a file-based sidebar config, Fluidd stores custom navigation links in Moonraker's database. This PR injects a KlipperFleet link via the Moonraker DB API.Blocked on: fluidd-core/fluidd#1786 (custom navigation links with drag-to-reorder and expandable sidebar)
Changes
install_scripts/setup_fluidd_navi.py— New script that adds/removes aCustomNavLinkentry in Moonraker's DB atuiSettings.navigation.customLinks. Uses a stable UUID v5 id derived from "klipperfleet". Matches entries by id or title for idempotent install/uninstall.install_scripts/setup_moonraker.py— Extended with--add-persistent-fileand--remove-persistent-fileflags to managepersistent_filesin any[update_manager <section>]block. Used to registerklipperfleet.htmlin[update_manager fluidd]so Moonraker preserves it across Fluidd updates.install.sh— Deploys redirect shim to Fluidd web root, registers it as a persistent file, and injects the DB nav entry.uninstall.sh— Removes the DB nav entry, the redirect shim, and the persistent_files registration.How it works
setup_fluidd_navi.pywrites to Moonraker's database — the nav link appears in Fluidd's sidebar (users can reorder/hide/delete it via #1786's UI)klipperfleet.htmlredirect shim is deployed to Fluidd's web root (~/fluidd/)setup_moonraker.py --add-persistent-file fluidd klipperfleet.htmlensures Moonraker preserves the shim when Fluidd updatesReference
Test plan
klipperfleet.htmlsurvives the update