Skip to content

fix(menu): "No connection" instead of the car's last state without the server - #847

Merged
joszz merged 1 commit into
mainfrom
fix/menu-no-server
Dec 1, 2026
Merged

joszz merged 1 commit into
mainfrom
fix/menu-no-server

Conversation

@joszz

@joszz joszz commented Dec 1, 2026

Copy link
Copy Markdown
Owner

Why

While the server cannot be reached, this page hears nothing new about the car, yet the menu's status row kept showing the car's last known state: a green "Online" next to a page that says it has no connection (see the status-no-server screenshot). On a phone, with the menu open over the page, the green "Online" was all you saw.

What

  • Menu row: while the server cannot be reached it says No connection, in amber, with the link-slash icon. This follows the existing rule that a signed-out gateway goes before the car: when no new data can arrive, the missing link is the news. A new menuConnectionState in utils/carConnection.ts puts noServer ahead of every car state.
  • Connection dialog: still shows the car's and the MG account's state, but in grey, as last known, with a hint: GarageStack cannot be reached, so this is what this device last heard. The server row already says "Not reachable".
  • Translations: carStatus.noServer and carStatus.noServerHint in all five locales.
  • Screenshot: status-no-server retaken, with its caption in the gallery README and on the site.

The menu's status row saying No connection in amber

Testing

  • pnpm check passes (2394 tests), including new specs for menuConnectionState, the menu row without the server (text, class, icon, and that the dialog still gets the car's state) and the grey badges and hint in the dialog.
  • screenshots:check: 58 screenshots, all in place and shown.
  • Retook the shot against the demo: the row reads "No connection" in amber and Refresh is gone. The online shot taken alongside is unchanged.

🤖 Generated with Claude Code

…t the server

While the server cannot be reached, nothing new arrives about the car, yet
the menu's status row kept showing its last known state, a green "Online".
The row now says "No connection" in amber with a broken link icon, the way
it already puts a signed-out gateway before the car. The Connection dialog
keeps the car's and the MG account's last known state, in grey, with a
hint saying why. The status-no-server screenshot is retaken.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@joszz
joszz enabled auto-merge December 1, 2026 19:22
@joszz
joszz merged commit 2fc04e7 into main Dec 1, 2026
28 checks passed
@joszz
joszz deleted the fix/menu-no-server branch December 1, 2026 19:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant