better truth table

This commit is contained in:
Seth Trowbridge 2025-11-03 14:02:40 -05:00
parent a573835219
commit cbcf559bac
13 changed files with 102 additions and 43 deletions

21
app.js
View File

@ -149,12 +149,7 @@ function Desks(inDesks)
const attributes = {};
attributes.class = latest ? Tag("PartGood") : Tag("PartEmpty");
if(scan.need_dirty.includes(index))
{
attributes.class = drawDirtyAsCaution ? Tag("PartCaution") : Tag("PartDirty");
}
attributes.class = scan.need_dirty.includes(index) ? Tag("PartDirty") : ""
return DOM.td(
Div.Part(
@ -190,17 +185,11 @@ function Desks(inDesks)
}
};
attributes.class = latest ? Tag("PartGood") : Tag("PartEmpty");
if( (desk.need.length==0 && !latest) || scan.make_dirty.includes(index))
{
attributes.class = Tag("PartDirty")
}
if(scan.make_dirty.includes(index))
{
attributes.class = drawDirtyAsCaution ? Tag("PartCaution") : Tag("PartDirty");
}
if(desk.need.length == 0 && !latest)
{
attributes.class = Tag("PartDirty");
}
return DOM.td(
Div.Part(
attributes,

View File

@ -32,6 +32,9 @@ export default CreateAllRooms({
pass_01:["January"],
pass_02:["February"],
pass_03:["March"],
pass_04:["April"],
pass_05:["May"],
pass_06:["June"],
}
})
});

View File

@ -1,9 +0,0 @@
{
"p1":
[
[123, "data"],
[456, "more data"],
[789, "even more data"],
[101112, "even more data"]
]
}

View File

@ -1,8 +0,0 @@
{
"p2":
[
[123, "data"],
[456, "more data"],
[789, "even more data"]
]
}

View File

@ -0,0 +1,14 @@
{
"p1": [
[
1762196165935,
"normal title"
]
],
"p2": [
[
1762196173135,
"normal slug"
]
]
}

View File

@ -1,8 +0,0 @@
{
"p2": [
[
1762186044460,
"le-slug"
]
]
}

View File

@ -2,7 +2,7 @@
"p4": [
[
1762193485093,
"proj01"
"Make made Late"
]
]
}

View File

@ -2,7 +2,7 @@
"p1": [
[
1762186057868,
"new post"
"Need made Early"
]
]
}

View File

@ -0,0 +1,14 @@
{
"p4": [
[
1762196034794,
"Make made Early"
]
],
"p1": [
[
1762196047017,
"Need made Late"
]
]
}

View File

@ -0,0 +1,14 @@
{
"p3": [
[
1762196236384,
"complete 3"
]
],
"p4": [
[
1762196245327,
"complete 4"
]
]
}

View File

@ -0,0 +1,14 @@
{
"p1": [
[
1762196209704,
"complete 1"
]
],
"p2": [
[
1762196217319,
"complete 2"
]
]
}

View File

@ -0,0 +1,18 @@
{
"p3": [
[
1762196341950,
"complete 3"
]
],
"p4": [
[
1762196348950,
"complete 4"
],
[
1762196393702,
"complete Later"
]
]
}

View File

@ -0,0 +1,18 @@
{
"p1": [
[
1762196328127,
"complete 1"
]
],
"p2": [
[
1762196335342,
"complete 2"
],
[
1762196363079,
"complete Late"
]
]
}