feat: add visual blueprint editor for custom blueprints#39
Draft
EpicLPer wants to merge 1 commit into
Draft
Conversation
Introduce a self-contained blueprint editor view with live SVG preview, button placement, and save support for user-owned blueprints.
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.
DISCLAIMER: AI generated code with Cursor. See Discussion here about this: #38
Summary
Draft PR for a visual blueprint editor — feedback welcome before merge.
Adds a self-contained editor view for user/custom blueprints (bundled blueprints remain read-only):
d) button supportblueprint/savewebsocket with YAML validation; blocks overwriting bundled blueprintsArchitecture (v4 frontend)
frontend/src/switch-manager-blueprint-editor.ts(standalone Lit component)switch-manager-panel.tsfor/switch_manager/blueprint/newand.../edit/:idonlyHA_COMPONENTSruntime load listcd frontend && npm run buildBackend
blueprint/savewebsocket endpointeditableguard on bundled blueprintsasync_remove_panelon setup/unload)Maintenance note
I may not be able to maintain this long-term; happy for ongoing upkeep to live with the project if it lands.
Test plan
cd frontend && npm run buildproduces the committed bundle