Skip to content

Let a downstream build add choices and mentions to the empty home - #316

Merged
vcanuel merged 1 commit into
mainfrom
feat/home-extensions
Nov 8, 2026
Merged

vcanuel merged 1 commit into
mainfrom
feat/home-extensions

Conversation

@vcanuel

@vcanuel vcanuel commented Nov 8, 2026 •

Copy link
Copy Markdown
Contributor

The home of an account without a vehicle offers one button per make the instance reads. A downstream build can now add its own choices after those buttons, and a short mention on a make's button, without the core knowing what they do. Nothing changes on screen in the public build.

Changes

  • web/src/pages/home/extensions.ts: extensionChoices (components shown in order after the makes' buttons, in the same row) and extensionMakeMentions (a composable the page calls once, giving by make a text shown on its button after the make, as "I have a Tesla (beta) · …"). Both empty here.
  • HomePage.vue renders them.
  • AGENTS.md: the new extension points in the list of the front end's.

Screenshots

None: the extension points are empty in the public build, the page is unchanged.

Tests

  • vitest (whole suite, 1759 tests, with a new test of the choices and mentions given by an extension), typecheck, lint: pass.
  • Go untouched; e2e not run (no visible change).

Closes #315

🤖 Generated with Claude Code

Summary by CodeRabbit

  • New Features
    • Added support for extending the home page with additional choices and optional text alongside vehicle make buttons.

The home of an account without a vehicle offers one button per make the instance
reads. extensionChoices adds components after them, in the same row;
extensionMakeMentions, a short text on a make's button after the make. Both are
empty here: nothing changes on screen in the public build.

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

coderabbitai Bot commented Nov 8, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The home page now supports extension-provided choices after its built-in make buttons and optional mentions appended to make-button labels. The extension points default to no additional choices and no mentions. Tests cover both behaviors.

Changes: Home page extensions

Layer / File(s) Summary
Extension point definitions and documentation
web/src/pages/home/extensions.ts, AGENTS.md
Adds HomeMake, an empty extensionChoices array, and a nullable extensionMakeMentions composable. The guide documents these home-page extension points and limitsPage.
Home page integration and tests
web/src/pages/home/ui/HomePage.vue, web/test/pages/home/HomePage.test.ts
The make buttons use translated labels with optional mentions. Extension-provided choices render after the built-in buttons. Tests check the Tesla mention, unchanged Polestar label, and extension choice rendering.
Merge Risk: Minimal · up to a914b

The public home page remains unchanged by default, while downstream builds can add the requested choices and mentions. No actionable issue is identified before merge.

Security architecture risk: Low · up to a914b

The hooks are supplied by the application build rather than page input, and both are disabled in the public build. Existing navigation and button visibility checks remain intact. Downstream extensions execute as trusted application code; their implementations are outside this review.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — A downstream component or composable runs within the frontend application rather than an isolated plugin sandbox. Its potential authority is that of trusted frontend code, not merely the ability to supply label text. The provided module does not activate any such downstream code.

Trust Boundaries and Controls

  • observed — Component selection comes from the statically imported extension list, not a route parameter or user-provided component name. Mention strings are concatenated into labels and rendered through Vue text interpolation rather than an HTML-rendering directive.
Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Out of Scope Changes check Inconclusive The code changes at the reviewed head map to #315: extensions.ts, HomePage.vue and HomePage.test.ts implement and test the two extension points. The supporting AGENTS.md change (+1/-1) documents them.… Provide the AGENTS.md diff between the merge base and the reviewed head, or the front-end extension-point line at both revisions, so the limitsPage mention can be checked. If this PR adds it, confirm that a limitsPage extension point ex…
Passed Passed checks: 3 passed

Check name Status Explanation
Title check Passed The title is a short imperative sentence in English that names the main change: adding extension points (choices and mentions) to the empty home page. It states the purpose from the downstream build's…
Description check Passed The description covers the change and its reason, and it lists the changed files. It explains that the public build shows no visible change, so the screenshot section is marked as not applicable. The …
Linked Issues check Passed Objectives from #315, all coding:

1. [#315] Extension point for components after the make buttons, same row, empty by default. Implemented: web/src/pages/home/extensions.ts exports `extensionChoices:…
Full details: Title check

Explanation

The title is a short imperative sentence in English that names the main change: adding extension points (choices and mentions) to the empty home page. It states the purpose from the downstream build's point of view. It matches the changeset, which adds extensionChoices and extensionMakeMentions to the home page and wires them into HomePage.vue.

Full details: Description check

Explanation

The description covers the change and its reason, and it lists the changed files. It explains that the public build shows no visible change, so the screenshot section is marked as not applicable. The Tests section reports vitest, typecheck, and lint results, and it notes that Go was untouched and e2e was not run. It also links the issue with 'Closes #315'. It follows the template's structure. Minor gaps: the 'Closes' line is a placeholder with the number filled in, and the template checklist (api diff, multi-language texts, no real VIN/token fixtures) is not addressed explicitly. The API and text checkboxes are likely not applicable, but the author does not say so.

Full details: Linked Issues check

Explanation

Objectives from #315, all coding:

  1. [#315] Extension point for components after the make buttons, same row, empty by default. Implemented: web/src/pages/home/extensions.ts exports extensionChoices: Component[] = []. HomePage.vue renders &lt;component :is="choice" v-for="(choice, i) in extensionChoices" /&gt; inside the v-empty-state #actions slot, after the Volvo, Polestar, Tesla and BMW buttons. The public build renders no extra element.

  2. [#315] Per-make mention on the make's button, none by default. Implemented: extensionMakeMentions is null by default. HomePage.vue calls it once (extensionMakeMentions?.() ?? ref({})). The choose(make) helper appends · &lt;mention&gt; to the translated label only when a mention exists, so the default label is unchanged.

  3. [#315] Test that the empty state renders supplied components. Present: web/test/pages/home/HomePage.test.ts, test "shows the extensions' choices after the makes, and their mentions", mocks one choice and one Tesla mention. It asserts the Tesla label becomes I have a Tesla (beta) · Plus offered, the Polestar label is unchanged, and the mocked choice is the last button in .v-empty-state__actions. The beforeEach resets the mocks.

No unmet coding requirement found. The author reports a passing Vitest run, typecheck and lint. I did not execute them. The check rests on the source read at the reviewed head.

Full details: Out of Scope Changes check

Explanation

The code changes at the reviewed head map to #315: extensions.ts, HomePage.vue and HomePage.test.ts implement and test the two extension points. The supporting AGENTS.md change (+1/-1) documents them. The AI-generated summary of AGENTS.md also states that the same line documents limitsPage, which links account limits to the page where they can be lifted. Neither the PR description nor #315 mentions limitsPage. The diff of AGENTS.md against the merge base could not be read: the tool reported that the changed blobs are missing from the checkout. I therefore cannot tell whether this PR adds the limitsPage mention or whether it was already present. No other unrelated change was found in the summarized files.

Resolution

Provide the AGENTS.md diff between the merge base and the reviewed head, or the front-end extension-point line at both revisions, so the limitsPage mention can be checked. If this PR adds it, confirm that a limitsPage extension point exists in the code. If it does not exist in the code, remove that mention from this PR or justify it under #315.

Recent review info

Run configuration

Commits

Reviewing files that changed from the base of the PR and between c972df8 and a914b7e.

Files selected for processing: 4

  • AGENTS.md
  • web/src/pages/home/extensions.ts
  • web/src/pages/home/ui/HomePage.vue
  • web/test/pages/home/HomePage.test.ts

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

@vcanuel
vcanuel merged commit 6513af1 into main Nov 8, 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.

Home: an extension point for one more choice after the makes, without a vehicle

1 participant