Tanstack Start
Maintenance & work ordersIncidents

Incidents — create, edit, delete

Fields, validation, and steps for incident dialogs.

Incident dialogs share the same validation style as issues: Zod schema + react-hook-form.

Create Incident

Steps

  1. Open Incidents — list.
  2. Select New Incident.
  3. Complete the form.
  4. Submit to create.

Fields

FieldRequiredValidation / notes
TitleYesNon-empty string.
VehicleYesUUID string from vehicle select.
CategoryYesUUID string from category select.
PriorityYesUUID string from priority select.
StatusYesObject with id, name, value where value is one of: Open, Closed, Pending, Approved, Rejected. Default create flow uses Open.
DescriptionNoFree text.
AttachmentsNoSame shape as issues: id, name, size ≥ 0, type.

After save (reviewed build)

The incident is prepended to the table with a generated id and reporter metadata, updating only the local list state.

Edit Incident

Use the row Edit action, adjust fields, and save. Same validation as create.

Delete Incident

Use Delete from the row menu, confirm in the modal, and the row is filtered out of local state.

Troubleshooting

On this page