Skip to content

Add the Polestar 4's optional 22 kW onboard charger to the catalog - #463

Merged
vcanuel merged 2 commits into
mainfrom
fix/polestar4-22kw-charger
Nov 24, 2026
Merged

vcanuel merged 2 commits into
mainfrom
fix/polestar4-22kw-charger

Conversation

@vcanuel

@vcanuel vcanuel commented Nov 24, 2026 •

Copy link
Copy Markdown
Contributor

A Polestar 4 with the optional 22 kW onboard charger was stated at 11 kW, with no way to say otherwise: the catalog knew the standard charger only. It now offers both, and assumes 22 kW until the owner states theirs, as for the other variants with an optional charger. The entry's name says that it covers the SUV too.

Changes

  • Catalog, ps4-2024: ac_option_kw: 22, backed by Polestar's German specifications of the coupé and of the SUV (a single option, not part of the Plus pack; the British page states 11 kW only, the option depends on the market). ev-database lists the option for the model years 2024 to 2026 as for 2027: no entry of its own for the first years.
  • Its name gains "(coupé and SUV)": the SUV sells as Rear Motor and Dual Motor on the coupé's battery and chargers. The id does not change.
  • The onboard charger only bounds the cost of an AC charge at a place whose tariff has several prices over it, and that cost is worked out on each read: no rebuild, no update note.

Screenshots

Before After
before after

The vehicle's settings of a Polestar 4 of model year 2027, its variant chosen: the variant's line tells the option, and the onboard charger can be stated. The front end is unchanged: the API was answered by a scenario, its variants generated from the catalog of each side.

Tests

  • task fmt-check lint test-unit and go build ./...: pass.
  • task unit-go stops at govulncheck, on GO-2026-6278 in github.com/gorilla/websocket, which this change does not touch (Raise gorilla/websocket past GO-2026-6278 #461): the unit-go job will fail here as it does on main until that is raised.
  • Not run locally: task integration, task system (the CI's), and no local CodeRabbit review: left to its review here.

Closes #462

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • The Polestar 4 listing now covers both coupé and SUV forms, with Single and Dual Motor configurations.
    • The listing also includes the market-specific 22 kW AC charger option and related specifications.
  • Documentation
    • German manufacturer sources have been added for the charger option and specifications, alongside the existing UK source.

Polestar's German specifications offer a 22 kW onboard charger as a single
option on the coupé and on the SUV, beside the standard 11 kW one: the
catalog stated 11 kW only, which bounded the cost of an AC charge too low
for a car that has the option. Unstated, 22 kW is now assumed, and the
owner states theirs in the vehicle's settings.

The entry's name says that it covers the SUV too, sold as Rear Motor and
Dual Motor on the coupé's battery.

Co-Authored-By: Claude Fable 5.2 <[email protected]>
@coderabbitai

coderabbitai Bot commented Nov 24, 2026 •

Copy link
Copy Markdown

Explain Change →

Warning

Review limit reached

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Next included review available in 24 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

Learn how review limits work.

Review configuration:

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 7a28b68 and f33f1e1.

Files selected for processing: 1

  • internal/catalog/variants.yaml

No actionable comments were generated in the recent review.

Walkthrough

The Polestar 4 catalog entry now covers the coupé and SUV. It records the optional 22 kW AC charger and adds German Polestar sources for the charger and related specifications.

Changes: Polestar 4 catalog

Layer / File(s) Summary
Variant entry and charger data
internal/catalog/variants.yaml
The entry name and comments identify both body styles. The entry records the optional 22 kW AC charger and adds German Polestar sources for the charger and related specifications.

Severity of issue fixed: Medium

Merge Risk: Minimal · previous review 7a28b

This adds the optional 22 kW onboard charger to the Polestar 4 catalog entry and updates the entry name. It only bounds the cost of AC charges at locations whose tariff has multiple prices during the charge. Nothing in the review points to a concrete merge risk.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "Add the Polestar 4's optional 22 kW onboard charger to the catalog" is imperative and in English, and it matches the main change: the PR adds the 22 kW option to the ps4-2024 catalog entry …
Description check Passed The description covers what changed and why (the 22 kW option, the assumed default, the coupé/SUV naming, and no rebuild needed). It includes the before/after screenshots and the test results. The tem…
Linked Issues check Passed [#462] Directly linked issue. The whole-PR diff of internal/catalog/variants.yaml (merge base to head) shows the requested changes to ps4-2024:
- ac_option_kw: 22 added next to ac_max_kw: 11. Th…
Out of Scope Changes check Passed The whole-PR diff against the merge base changes only internal/catalog/variants.yaml (+11/-3, per the summary). Every hunk maps to #462: the comment, the name, ac_option_kw, and the added German s…
Full details: Title check

Explanation

The title "Add the Polestar 4's optional 22 kW onboard charger to the catalog" is imperative and in English, and it matches the main change: the PR adds the 22 kW option to the ps4-2024 catalog entry in internal/catalog/variants.yaml. It also omits the coupé/SUV name change, but that is a secondary aspect.

Full details: Description check

Explanation

The description covers what changed and why (the 22 kW option, the assumed default, the coupé/SUV naming, and no rebuild needed). It includes the before/after screenshots and the test results. The template's checklist items are not all ticked. The PR reports that task unit-go fails on govulncheck, and it says task integration and task system were not run. The template's API diff and multilingual text checkboxes are not addressed. Closes #462 is filled in. The description is mostly complete, so it passes.

Full details: Linked Issues check

Explanation

[#462] Directly linked issue. The whole-PR diff of internal/catalog/variants.yaml (merge base to head) shows the requested changes to ps4-2024:

  • ac_option_kw: 22 added next to ac_max_kw: 11. This meets the first to-do item.
  • The stale comment about the Plus pack is replaced. The new comment states that the 22 kW charger is a single option, not part of the Plus pack, and that it depends on the market. This meets the comment correction.
  • The name gains "(coupé and SUV)", and the id stays ps4-2024. This meets the naming item.
  • German Polestar specification URLs for the coupé and the SUV are added as sources with ac_option_kw in their for lists. The UK source remains.
  • The years field stays [2024]. The PR states that ev-database lists the option for 2024 to 2026 as for 2027, so no separate entry is needed. The issue's model-year check is covered by that statement and the issue's own ev-database citations. I could not verify the external ev-database or Polestar pages from the repository, so this rests on the cited sources.
    The issue asks for catalog data only. The cost-bound behaviour in Pricing.maxPower and allocate is existing code. The diff does not change it, and the issue does not ask for a change there. No coding requirement remains unmet in the reviewed head.
Full details: Out of Scope Changes check

Explanation

The whole-PR diff against the merge base changes only internal/catalog/variants.yaml (+11/-3, per the summary). Every hunk maps to #462: the comment, the name, ac_option_kw, and the added German source entries. The PR description refers to UI screenshots and a front-end form with an "Onboard charger" section. The diff does not change any front-end file, so those screenshots describe existing behaviour and are not PR changes. No unrelated change is present.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between 0da12dd and 7a28b68.

Files selected for processing: 1

  • internal/catalog/variants.yaml

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@vcanuel
vcanuel merged commit ec91267 into main Nov 24, 2026
8 checks passed
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.

Catalog: the Polestar 4's optional 22 kW onboard charger is missing

1 participant