Skip to content

Offer a BMW or a MINI on the home page without a vehicle - #314

Merged
vcanuel merged 1 commit into
mainfrom
fix/home-bmw
Nov 8, 2026
Merged

vcanuel merged 1 commit into
mainfrom
fix/home-bmw

Conversation

@vcanuel

@vcanuel vcanuel commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

The home page of an account without a vehicle asks which car it is, but offered Volvo, Polestar and Tesla only: an owner of a BMW or a MINI, read by BMW CarData, found it on the Connection page alone.

Changes

  • "I have a BMW or MINI (beta)", to the Connection page's BMW tab (#bmw), while the flag source.bmw is on (on by default), as the tab itself.
  • The text says how each make offered is read, a part per make joined with Intl.ListFormat in the interface's language, instead of six sentences for each combination (with or without Volvo, its key, Tesla). The keys home.empty.text, keyText, noVolvoText, keyTextNoTesla, textNoTesla and polestarText give way to ask, reads, volvo, volvoKey, polestar, tesla, bmw and noVolvo, in the eight languages.

Screenshots

None taken: the empty state gains a fourth button of the same style.

Tests

  • task web-lint and task web-test (1,758 tests) passed.
  • HomePage.test.ts: the BMW button and the whole sentence listed, and the BMW left out while its flag is off; the flags are mocked apart.
  • Not run: task unit-go (no Go change), the browser tests.

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added BMW/MINI to the home-page vehicle setup guidance and selection options, with a connection link when available.
    • Updated the empty-state guidance to reflect which vehicle makes are available and whether Volvo access is configured.
    • Added Tesla and BMW/MINI beta labels where applicable.
  • Documentation
    • Updated home-page guidance across supported languages.

The home page of an account without a vehicle offered Volvo, Polestar and
Tesla only, though BMW CarData reads BMWs and MINIs: an owner found them on
the Connection page alone. It now offers them too, to the BMW tab, while the
flag source.bmw is on. Its text says how each make offered is read, a part
per make joined as the language lists, rather than one sentence for each
combination of the instance's makes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Explain Change →

Caution

Review failed

The pull request is closed.

Walkthrough

The home page now builds localized empty-state guidance from the available vehicle makes and Volvo configuration. It also shows a BMW connection button when the BMW source flag is enabled. Locale files and HomePage tests are updated.

Changes: Home empty state

Layer / File(s) Summary
Compose localized vehicle guidance
web/src/pages/home/ui/HomePage.vue, web/src/shared/i18n/locales/*.json, web/test/pages/home/HomePage.test.ts
The page combines translated descriptions for Volvo, Polestar, Tesla, and BMW/MINI according to the applicable flags and Volvo configuration. Locale files define the separate prompts and provider descriptions.
Add BMW connection entry
web/src/pages/home/ui/HomePage.vue, web/test/pages/home/HomePage.test.ts
The page shows a BMW connection button linking to the BMW tab when the BMW flag is enabled. Tests check the link and verify that disabling the flag hides the BMW option while Tesla remains visible.

Possibly related issues

Possibly related PRs

@vcanuel
vcanuel merged commit c972df8 into main Nov 8, 2026
7 of 8 checks passed
@vcanuel
vcanuel deleted the fix/home-bmw branch November 8, 2026 18:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant