Skip to content

M2 · Vehicles

Conforms to the decisions through D108. Written on 2026-11-25 in the team session on #748. Earlier M2 work on /vehicles shipped as pull requests without a tab here.

  • D108 (M2-10) · A car has an owner. The add-car sheet asks for Perusahaan rental, none preselected, and sends rental_company_id to create_vehicle(); the picker lists the names rental_company_names() returns, active ones only (R-VEH-70, R-VEH-71, R-VEH-74, R-VEH-75). The Partner column and the sheet's rental company show to a holder of vehicle:write at any pool too (R-VEH-41, R-VEH-46).
  • D3 (M2-10) · Who may add a car for which company is decided by create_vehicle(); the page offers only the member's own list and shows vehicle.rental_company_not_held and vehicle.field_invalid beside the field (R-VEH-72).
  • D10 (M2-10) · vehicle.field_required and vehicle.field_invalid with rental_company_id, vehicle.rental_company_not_held and master_data.operator_company_locked (R-MD-86) have texts in lib/errors/texts.ts.
  • D7 and D29 (M2-10) · The all-companies flag texts no longer mention the operator's cars (R-ACC-175, R-ACC-176, R-ACC-178, R-ACC-179, R-ACC-185, R-ACC-201); zuki approved the mockup without a "milik operator" badge and with the hint "Pemilik mobil.".
Field Value
ID FE-M2-10
Goal Add car asks for a rental company; the flag texts, Partner column and TOP lock follow D108
Before pnpm supabase db reset
Run pnpm e2e:local e2e/vehicle-create.spec.ts e2e/vehicle-photos.spec.ts e2e/vehicles.spec.ts e2e/master-data.spec.ts e2e/invitations.spec.ts e2e/member-access.spec.ts e2e/member-status.spec.ts
Expect Every journey passes, R-VEH-70, R-VEH-71, R-VEH-72, R-VEH-75 and R-MD-86 among them
Check Playwright's report; pnpm lint, pnpm typecheck, pnpm docs:rules
If it fails A refusal key that is not the rule's points at create_vehicle() or retire_master_data(): stop and ask be. An empty picker points at rental_company_names().
Undo Revert the change; the journeys leave their rental companies inactive and clear their overrides and lists
Level L0
Runs