Maintain roadside-assistance units
Open Rescue → Units. The page requires manage:rescue_units, while its list API additionally requires view:rescue; have both to load and edit. Module and current scope still apply. Search label/plate/operator, filter available/unavailable/all and use server pages/page size; changes reset page1. Cards/table show label, plate, operator/contact, capability badges, availability, last coordinates and last-seen when recorded.
Only the first three capability badges are shown plus an overflow count; this is not a complete suitability assessment or live GPS feed.
Operational details
Create or Edit opens a dialog. Label is required, 1–120 characters; plate optional ≤20 and uppercased by the input, operator name ≤200, phone ≤50. Add capability text using Add or Enter; empty/exact duplicate entries are ignored. Remove an individual badge locally. Maximum 20 capabilities. Set availability in the draft then Save; the capability text still in the input is not included until added as a badge.
Blank optional fields are sent null and clear previous values; an empty capability list clears it. Save creates/updates and closes on success. Cancel/close discards unsaved changes; reopening seeds saved data.
The row availability switch writes immediately without confirmation, independently of the dialog Save. This flag can be edited manually even while an intervention exists; verify active dispatches and physical availability before making a unit selectable again. Normal assignment marks it busy and decline/completion/cancellation release it, but a manual flag is not proof all those processes are resolved. Lost responses need reload/list inspection before another toggle.
No unit-delete, vehicle/professional binding picker, location editor or operator-account assignment is mounted here. Changing the displayed operator name/phone does not establish the app account’s ownership relation. Last position comes from separate app/API updates; check timestamp and do not assume editing a label refreshes it. If list loading fails use Retry; distinguish an access failure from no available units. On save error inspect the message, correct the draft and recheck persisted state before repeating creation.