feat: sovende flows siger hvorfor — planlæggerens grund i oversigten (Sover — EGG 86 % (kræver 90)) og i loggen højst én gang i timen pr. flow — 1.62.303

This commit is contained in:
2026-10-17 09:44:37 +02:00
parent d8cc3b33bf
commit 13c566bfa2
7 changed files with 76 additions and 5 deletions
@@ -66,7 +66,10 @@ function SmartPickupFrame:flowCells(adEnv, run)
end
-- kædeflow uden traktor: sig hvorfor det står stille i stedet for flowets regel
if ADFlowView.isIdleChain(run) then status = i18n:getText("spu_flow_chainIdle") end
if run.sleeping then status = i18n:getText("spu_flow_sleeping") end
if run.sleeping then
local why = ADFlowSleep ~= nil and ADFlowSleep.getSleepReason ~= nil and ADFlowSleep.getSleepReason(run.id) or nil
status = why ~= nil and string.format(i18n:getText("spu_flow_sleepingWhy"), ADFlowSleep.shortReason(why)) or i18n:getText("spu_flow_sleeping")
end
local name = (run.id == self.selectedRunId and "> " or "") .. ADFlowView.listName(run)
return {name, products, from, to, string.format("%d/%d", row.running, row.total), status}
end