Tanstack Start
Fuel & alertsFuel events

Fuel events — theft and Mark as Alert

Flag a detected theft window as a fleet alert when your role allows create fuel alert.

When the action appears

In the fuel events table, a Mark as Alert control is shown only for rows whose type is Theft (case-insensitive match in the app).

Other event types (for example refuel, drain) do not show this action.

Permission

You need create fuel alert (create_fuel_alert). Without it, the button is not rendered (see Permissions and access).

What happens when you confirm

  1. You choose Mark as Alert on a theft row.
  2. A confirmation dialog explains that the theft event will be flagged from the row’s start and end time.
  3. On confirm, the client calls the fuel events mark as alert API with:
    • the current vehicle id
    • the sensor id from the row
    • startTime and endTime from the event

Success shows a toast: the event was marked as an alert. Failures keep you on the dialog until you cancel or retry.

Operational tips

  • Ensure the time range on the fuel event screen covers the theft you care about before generating results.
  • After marking, follow up in Alerts if your process requires assignment or resolution (see Alerts inbox).

On this page