From 2ca31bb21dc5006ef02396a900d335f0a658dff6 Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Mon, 3 Nov 2025 15:22:18 -0500 Subject: [PATCH] fixed make --- app.js | 29 ++++++++++++++++++++++++----- 1 file changed, 24 insertions(+), 5 deletions(-) diff --git a/app.js b/app.js index 574f3f3..e63e1df 100644 --- a/app.js +++ b/app.js @@ -137,7 +137,8 @@ function Desks(inDesks) for(const [pass, scan] of desk.pass) { - const drawDirtyAsCaution = scan.need_empty.length>0 && scan.need_empty.length0 && scan.need_empty.length"), + DOM.td("⇉"), desk.make.map((part, index, array)=> { const partPass = part.pass.get(pass); @@ -185,11 +186,29 @@ function Desks(inDesks) } }; + + if(latest) + { + attributes.class = Tag("PartGood") + } + else + { + attributes.class = Tag("PartEmpty") + } + if( (desk.need.length==0 && !latest) || scan.make_dirty.includes(index)) { - attributes.class = Tag("PartDirty") + + if(!latest && caution) + { + attributes.class = Tag("PartCaution") + } + else + { + attributes.class = Tag("PartDirty"); + } } - + return DOM.td( Div.Part( attributes, @@ -208,7 +227,7 @@ function Desks(inDesks) DOM.tr( DOM.th(), desk.need.map((part, index)=>DOM.th(part.name)), - DOM.th(), + DOM.th("→"), desk.make.map((part, index)=>DOM.th(part.name)) ) ),