fix(command-center): disable Open Live View when display unreachable (#2264)#2274
fix(command-center): disable Open Live View when display unreachable (#2264)#2274Mikecranesync wants to merge 1 commit into
Conversation
…reachable Replace the always-active `<a>` link with a disabled `<button>` when `!node.live`, preventing a broken blank tab from opening. The amber warning text now explains the button will re-enable once the HMI service is reachable. Closes #2264. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
🤖 AI Code ReviewReview by: groq (llama-3.3-70b-versatile) Review of Pull Request #2264🔴 IMPORTANT: Security VulnerabilitiesNo security vulnerabilities, such as hardcoded secrets, SQL injection, path traversal, or command injection, were found in the provided diff. 🔴 IMPORTANT: Missing Error HandlingThe provided diff does not introduce any network/IO operations that could crash in production due to missing error handling. However, it's essential to ensure that any potential errors when accessing 🟡 WARNING: Logic Bugs or Incorrect AssumptionsThe logic change introduced in 🟡 WARNING: Missing Input ValidationThe code uses 🔵 SUGGESTION: Code Quality Improvements
✅ GOOD: Noteworthy Good Practices
Overall, the pull request seems to address the issue of disabling the "Open Live View" when the display is unreachable. However, ensuring the correctness and robustness of the Generated by the MIRA automated code review pipeline (Groq → Cerebras → Gemini cascade) |
MIRA staging gate — ✅ PASSEngine + NeonDB staging branch + Groq cascade against fixed questions, graded on the 5-dimension rubric in
Rubric: |
Summary
node.liveisfalse, the "Open Live View"<a>link is replaced by a disabled<button>that cannot be clickednode.liveistrue, behavior is unchanged (active blue link, no warning)Fixes #2264.
Root cause
The link was unconditionally rendered as
<a href={displayHref} target="_blank">regardless ofnode.live. The amber warning text was present but the link itself was never disabled, causing a broken empty tab to open when the HMI service was down.Test plan
node.live = false: button appears gray + disabled, tooltip reads "Display is unreachable…", amber message shownnode.live = true: blue link active, no amber message, opens tab normally🤖 Generated with Claude Code