Files
pleno-vue/tests
TRU-83 bugfix sub-agent 12fe4745d7 fix(self-serve): restrict Dognvask machine to single vehicle type (traekker) (TRU-84)
The Dognvask machine is a single-vehicle-type wash machine. When the
current lane resolves to a Dognvask machine type, the path editor and
scope guide now:

- restrict the vehicle type filter to the 'traekker' (tractor unit) entry
  in both the main toolbar and the scope guide
- show a visible 'Dognvask: trækker only' hint badge so operators can
  see why the options are limited
- auto-correct the vehicle type filter when the user switches to or from
  a Dognvask-configured lane (clearing the filter if no traekker type
  is configured, otherwise snapping to the only allowed option)

Detection compares the resolved selfserve_machine_types row name against
'dognvask' (case-insensitive). The allowed vehicle type is matched by
label/name against 'traekker' / 'tractor' / 'tractor unit' to tolerate
the various Danish/English renderings used across the system.

This follows the same pattern introduced in TRU-91 (path editor machine
filter), which scoped machine-button options to the current lane's
machine type.
2026-08-17 18:30:52 +00:00
..