Repository navigation
feat(overview): add a device map card to the overview - #318
Merged
Merged
Conversation
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e core The renderer of the energy plant moves to devicemap-live.js, which exposes window.DeviceMapLive.create(config). energy-plant.js keeps only the plant configuration (fixed energy and balance layers, role edges switch, node tap) plus the role edge switch and the row focus listener. The data flow layer is loaded and drawn by the core when its layer is on. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Role edges end at the balance node, so they show with the balance or the data layer. The shared edgeVisible() rule stays unchanged. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Alpine component deviceMapCard reads its options from the data-map-* attributes of the card section and builds the shared renderer core with a per-instance config. Zoom, pan and fit come from the viewport controller, attached after every render. Modal taps open only real devices, the dimmed opacity is 25 percent. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
… and tap modes Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
destroy() left a pending registry refresh armed, so a map that was already gone could fetch energy once more. The timer is now cleared and the pending flag reset. Also covers the card hint timer, the two-card test on one window, and a live-core test for the cleared refresh. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e grid swap Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Adds the device_map card to the layout editor palette and its nine options (four layers, role edges, automation links, edge style, line width, tap) to the options dialog, with defaults and load/save mapping. Catalog keys for de and en are added for the card and the new options. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…on wake attach() now cancels a running fit spring before rebinding, so the old cytoscape instance gets no further viewport calls. The dashboard-panel-changed wake also refreshes energy when the card is active, so returning to the overview no longer shows stale values until the next registry update. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
…e other cards Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Developer-Simon
force-pushed
the
feat/devicemap-card
branch
from
December 4, 2026 21:46
e7c0b37 to
979149d
Compare
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.
Squash-merge commit message
Highlight translations
Tour
{ "*": { "steps": [ { "panel": "overview-panel", "target": "device-map-card", "device": "any", "need": "edit_layout", "title": {"de": "Device-Map auf der Übersicht", "en": "Device map on the overview"}, "text": { "de": "Die Anordnung aus der Device-Map gibt es jetzt als Karte mit Live-Werten und Energiefluss. Du fügst sie im Layout-Editor hinzu und wählst dort die Ebenen. Zoomen geht mit Strg und Mausrad oder mit zwei Fingern, „Einpassen“ holt die ganze Anlage zurück.", "en": "The device map layout is now available as a card with live values and energy flow. Add it in the layout editor and choose its layers there. Zoom with Ctrl and the mouse wheel or with two fingers, Fit brings the whole plant back." } } ] } }Summary
Adds
device_mapas a new overview card type. It shows the saved device map read-only with live values, energy flow, zoom and pan, and the layers chosen in the layout editor.Checks
scripts/dev/check_tracked_secrets.shis clean.