From 66f0d22970ac0dba22fa7724402ac633d873f010 Mon Sep 17 00:00:00 2001 From: Seth Trowbridge Date: Mon, 3 Nov 2025 15:32:46 -0500 Subject: [PATCH] need colors finished --- app.js | 14 +++++++++++++- mock-user-folder/graph/room.js | 1 + mock-user-folder/store/room_01/pass_07/u5.json | 8 ++++++++ styles.js | 3 ++- 4 files changed, 24 insertions(+), 2 deletions(-) create mode 100644 mock-user-folder/store/room_01/pass_07/u5.json diff --git a/app.js b/app.js index e63e1df..844fcb2 100644 --- a/app.js +++ b/app.js @@ -150,7 +150,19 @@ function Desks(inDesks) const attributes = {}; - attributes.class = scan.need_dirty.includes(index) ? Tag("PartDirty") : "" + if(latest) + { + attributes.class = Tag("PartGood") + } + else + { + attributes.class = caution ? Tag("PartCaution") : Tag("PartEmpty") + } + + if(scan.need_dirty.includes(index)) + { + attributes.class = Tag("PartDirty") + } return DOM.td( Div.Part( diff --git a/mock-user-folder/graph/room.js b/mock-user-folder/graph/room.js index dc19486..6aa3d0e 100644 --- a/mock-user-folder/graph/room.js +++ b/mock-user-folder/graph/room.js @@ -35,6 +35,7 @@ export default CreateAllRooms({ pass_04:["April"], pass_05:["May"], pass_06:["June"], + pass_07:["July"], } }) }); \ No newline at end of file diff --git a/mock-user-folder/store/room_01/pass_07/u5.json b/mock-user-folder/store/room_01/pass_07/u5.json new file mode 100644 index 0000000..7feb4ea --- /dev/null +++ b/mock-user-folder/store/room_01/pass_07/u5.json @@ -0,0 +1,8 @@ +{ + "p1": [ + [ + 1762201681431, + "underway" + ] + ] +} \ No newline at end of file diff --git a/styles.js b/styles.js index 6e3da7a..eb5b890 100644 --- a/styles.js +++ b/styles.js @@ -24,7 +24,8 @@ export default Gale({ }, PartDirty:{ background:"tomato", - color:"white", + color:"black", + fontWeight:"bolder" }, PartCaution:{ background:"yellow",