Remove direct entry option from concentrate audits
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:
2026-05-08 01:18:27 -04:00
parent ffc05ca526
commit 69ffc5ed26
+2 -1
View File
@@ -55,6 +55,7 @@ export function AuditFlow({
return helpers.estimatedRemaining(i, getToday(getStoredTimezone())).toFixed(2);
};
const [value, setValue] = useState<string>(initialValueFor(item));
const isConcentrate = item?.type === "Concentrate";
const [inputMode, setInputMode] = useState<"direct" | "container">(
item?.containerWeight != null ? "container" : "direct",
);
@@ -177,7 +178,7 @@ export function AuditFlow({
</div>
</div>
{tare != null && (
{tare != null && !isConcentrate && (
<div style={{ display: "flex", gap: 8, marginTop: 16 }}>
<Btn
variant={inputMode === "container" ? "primary" : "ghost"}