armer-button: Show offline state when vehicle is disconnected#2620
Conversation
Automated PR Review (Claude)0. SummaryVerdict: MINOR SUGGESTIONS Minor items to consider: 1.1, 6.1, 9.1. This PR adds an offline state to the 1. Correctness & Implementation Bugs1.1 ( No other correctness issues found. The reactivity pattern is correct — 2. AGENTS.md AdherenceNo findings. The PR:
3. Security
4. PerformanceNo findings. The 5. UI / UXNo findings. The offline state uses a gray pill ( 6. Code Quality & Style6.1 ( if (vehicleStore.isArmed) {
disarm()
} else {
arm()
}This is purely stylistic and the existing form works fine. 7. TestsNo findings. The existing file has no unit tests, and this PR doesn't change that. The change is a small UI behavior addition that would be best validated visually (as the PR video demonstrates). 8. DocumentationNo findings. No README update needed — this is a bug fix for an existing widget with no Lite/Standalone divergence. 9. Nitpicks / Optional9.1 ( Generated by Claude. This is advisory; a human reviewer must still approve. |
Render a gray "Offline" pill and block arm/disarm interactions while the vehicle is unreachable, so the widget no longer implies a stale armed state after a GCS disconnection.
Clear the cached `isArmed` value on vehicle disconnection so the UI no longer briefly shows the previous armed state when the vehicle comes back online before a fresh arm callback fires.
53618c7 to
c2b3fe9
Compare
Render a gray "Offline" pill and block arm/disarm interactions while the vehicle is unreachable, so the widget no longer implies a stale armed state after a GCS disconnection.
Cap.2026-04-22.at.18.36.00.mp4
Fix #2619