Repository navigation
Polestar: beta mark, variant picker by model and year, admission on the credentials - #86
Merged
Merged
Conversation
The extension's Admission sent an account to its route before the Volvo ID authorization only: an account could still give an application key or a Polestar credential through the API. PUT /connection/api-key and PUT /connection/polestar now ask it first and refuse with 403 not_admitted, nothing stored; a failure to read it is a 500. The forms tell the user to reload the page, where the extension's guards lead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
The Data Portal is not yet checked on a real car: the Connection page says so beside the Polestar heading. Co-Authored-By: Claude Opus 5.5 <[email protected]>
A Polestar of the Data Portal is offered every variant of its brand, a long list of several models and years. The vehicle's settings now ask for the model first (shown when the variants are of several), then list that model's variants of the vehicle's model year, the others folded under a toggle. Pressing another model forgets a variant of the previous one. GET /variants gives each variant's family, which the form groups them by: a model's name is no word to cut from the variant's. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Closed
8 tasks done
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.
Part of #52
Changes
Admission on the credentials.
PUT /connection/api-keyandPUT /connection/polestarnow ask the extension'sAdmissionfirst. An account held back gets403 not_admitted(the JSON error, the route named in its message) and nothing is stored; a failure to read the admission is a500 internal. On the application key, the409 instance_keycheck still comes first. The forms show a generic message ("reload the page") and leave the redirect to the extension's guards.TestAdmissionOfCredentialscovers held, failing and admitted accounts for both routes.Beta mark. A chip beside the Polestar heading on the Connection page (en/fr/sv).
Variant picker. The vehicle's settings ask for the model first, then the variant:
GET /variantsgives each option'sfamily(the contract and golden files are regenerated). The form groups by it: a family can be two words ("Polestar 2"), so cutting names was no option.aria-pressedin a labelledrole="group", one always pressed) show only when the variants are of several models, i.e. a Polestar of the Data Portal; a Volvo is offered its own family's only.aria-expanded/aria-controls), opened when it holds the chosen variant. Unknown year, or no variant of it: everything listed.name, so one radio stays checked across them.VariantLabel.vue, shared by both groups.AGENTS.mdis updated (extension points, Polestar credential, vehicle settings, Connection page).Tests
task unit: green (Go lint 0 issues, Vitest 1268 tests, coverage ~97 %, build).go test ./internal/apion each commit.task e2e: 120 passed, 2 skipped (the wrong-password tests, two projects only), including a new Playwright/axe test of a Polestar's model then variant on the four projects.🤖 Generated with Claude Code