fix(dashboard): the Steuerungen page saves only devices entered by hand #1101

Merged
sharang merged 1 commits from fix/devices-exported-only into main 2026-12-01 14:50:11 +00:00
Owner

Split out of #1100 on Sharang's word, so this stage bug doesn't wait for the AML check.

Bug, live on stage since #1096

  • Since #1096 the Steuerungen page also lists a TIA export's devices.
  • Every add, firmware change or remove saved the page's whole list as the target's hand-entered devices, exported ones included.
  • The exported devices would then stay forever, even after the next export replaced them.

Fix

  • DeviceCheck carries exported_in (the export's file name) for exported devices.
  • The page saves and edits only hand-entered devices. Entered devices are listed first, so the selected index is the same in both lists.
  • An exported device shows "Aus dem TIA-Export ; ändert sich mit dem nächsten Export." instead of "Firmware ändern / Entfernen".

Checked

  • Integration test: the device list names the export.
  • In #1100's local run with 55 exported devices: adding one controller by hand saved exactly that one.
  • Clippy with CI flags is clean (core, agent, dashboard server and web).

🤖 Generated with Claude Code

https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9

Split out of #1100 on Sharang's word, so this stage bug doesn't wait for the AML check. **Bug, live on stage since #1096** - Since #1096 the Steuerungen page also lists a TIA export's devices. - Every add, firmware change or remove saved the page's whole list as the target's hand-entered `devices`, exported ones included. - The exported devices would then stay forever, even after the next export replaced them. **Fix** - `DeviceCheck` carries `exported_in` (the export's file name) for exported devices. - The page saves and edits only hand-entered devices. Entered devices are listed first, so the selected index is the same in both lists. - An exported device shows "Aus dem TIA-Export <file>; ändert sich mit dem nächsten Export." instead of "Firmware ändern / Entfernen". **Checked** - Integration test: the device list names the export. - In #1100's local run with 55 exported devices: adding one controller by hand saved exactly that one. - Clippy with CI flags is clean (core, agent, dashboard server and web). 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang added 1 commit 2026-12-01 14:27:29 +00:00
fix(dashboard): the Steuerungen page saves only devices entered by hand
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Agent integration (pull_request) Successful in 5m2s
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 22m12s
81d6d87778
Since #1096 the page lists a TIA export's devices too, and every add,
firmware change or remove saved the whole list into the target's
entered devices, exported ones included. The device list now says which
export a device comes from (exported_in); the page saves and edits only
entered devices, and an exported one shows where it comes from instead
of the edit buttons.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Q9inRcu428A2iNjDHPEAT9
sharang merged commit 6df14d907c into main 2026-12-01 14:50:11 +00:00
Sign in to join this conversation.