Repository navigation
fix(menu): "No connection" instead of the car's last state without the server - #847
Merged
Merged
Conversation
…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>
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.
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-serverscreenshot). On a phone, with the menu open over the page, the green "Online" was all you saw.What
link-slashicon. 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 newmenuConnectionStateinutils/carConnection.tsputsnoServerahead of every car state.carStatus.noServerandcarStatus.noServerHintin all five locales.status-no-serverretaken, with its caption in the gallery README and on the site.Testing
pnpm checkpasses (2394 tests), including new specs formenuConnectionState, 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.🤖 Generated with Claude Code