Maintenance
Create and track maintenance work orders for your aircraft, linked to open squawks.
Work orders provide a structured way to track maintenance tasks — beyond just logging squawks. Each work order has a priority, status, assigned mechanic, estimated and actual hours, and an optional link to the squawk that triggered the work.
Work orders are visible to admins, owners, and mechanics only.
Work orders live on the aircraft detail page under the Work Orders tab. Navigate to Aircraft → [tail number] → Work Orders.
| Status | Meaning |
|---|---|
| Open | Work is pending |
| In Progress | Work has started |
| Completed | Work is done |
| Cancelled | Work order voided |
When a work order is marked completed, the completed_at timestamp is recorded automatically.
When creating a work order, you can select from any open (unresolved) squawk on that aircraft. This creates a clear audit trail from the reported defect to the corrective maintenance action. The linked squawk is shown on the work order card.
Closing the work order does not automatically resolve the squawk — resolve the squawk separately from the Squawks tab once the work is complete and signed off.
The Work Orders tab shows a badge with the count of open and in-progress work orders (blue badge). This gives maintainers a quick view of how much is outstanding.
supabase-migration-v38.sql.