Downtime catalog

This commit is contained in:
Marcelo
2026-05-06 00:36:48 +00:00
parent 0491237bad
commit bfc1673d89
42 changed files with 8035 additions and 1093 deletions

View File

@@ -105,6 +105,7 @@ export async function getRecapTimelineForMachine(params: {
ts: true,
cycleCount: true,
actualCycleTime: true,
theoreticalCycleTime: true,
workOrderId: true,
sku: true,
},
@@ -151,10 +152,10 @@ export async function getRecapTimelineForMachine(params: {
ts: row.ts,
cycleCount: row.cycleCount,
actualCycleTime: row.actualCycleTime,
theoreticalCycleTime: row.theoreticalCycleTime,
workOrderId: row.workOrderId,
sku: row.sku,
}));
const events: TimelineEventRow[] = eventsRaw.map((row) => ({
ts: row.ts,
eventType: row.eventType,