Remove direct entry option from concentrate audits
Build and push image / build (push) Successful in 52s
Build and push image / build (push) Successful in 52s
Concentrates with a container weight now always use the weigh-container input — no toggle is shown. Other bulk types (Flower) still get the toggle between weigh container and direct entry. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -55,6 +55,7 @@ export function AuditFlow({
|
|||||||
return helpers.estimatedRemaining(i, getToday(getStoredTimezone())).toFixed(2);
|
return helpers.estimatedRemaining(i, getToday(getStoredTimezone())).toFixed(2);
|
||||||
};
|
};
|
||||||
const [value, setValue] = useState<string>(initialValueFor(item));
|
const [value, setValue] = useState<string>(initialValueFor(item));
|
||||||
|
const isConcentrate = item?.type === "Concentrate";
|
||||||
const [inputMode, setInputMode] = useState<"direct" | "container">(
|
const [inputMode, setInputMode] = useState<"direct" | "container">(
|
||||||
item?.containerWeight != null ? "container" : "direct",
|
item?.containerWeight != null ? "container" : "direct",
|
||||||
);
|
);
|
||||||
@@ -177,7 +178,7 @@ export function AuditFlow({
|
|||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{tare != null && (
|
{tare != null && !isConcentrate && (
|
||||||
<div style={{ display: "flex", gap: 8, marginTop: 16 }}>
|
<div style={{ display: "flex", gap: 8, marginTop: 16 }}>
|
||||||
<Btn
|
<Btn
|
||||||
variant={inputMode === "container" ? "primary" : "ghost"}
|
variant={inputMode === "container" ? "primary" : "ghost"}
|
||||||
|
|||||||
Reference in New Issue
Block a user