Remove edit product flow
Build and push image / build (push) Successful in 46s

Product catalog entries are set at creation time. Per-instance
details (price, THC, weight) are edited from the inventory drawer.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-04 19:14:29 -04:00
parent db2af4b79d
commit 925a57aa03
2 changed files with 4 additions and 37 deletions
+3 -23
View File
@@ -15,7 +15,6 @@ export function ProductDetail({
onMarkGone,
onAudit,
onEdit,
onEditProduct,
}: {
item: Item;
data: Bootstrap;
@@ -24,7 +23,6 @@ export function ProductDetail({
onMarkGone: (i: Item) => void;
onAudit: (i: Item) => void;
onEdit: (i: Item) => void;
onEditProduct: (p: Product) => void;
}) {
const bin = data.bins.find((b) => b.id === item.binId);
const cfg = TYPES.find((t) => t.id === item.type);
@@ -178,27 +176,9 @@ export function ProductDetail({
<div style={{ fontSize: 16, color: "var(--ink-2)" }}>
{helpers.brandName(data, item.brandId)} · from {helpers.shopName(data, item.shopId)}
</div>
{product && (
<div style={{ marginTop: 8 }}>
<button
onClick={() => onEditProduct(product)}
style={{
background: "none",
border: "none",
fontSize: 12,
color: "var(--ink-3)",
cursor: "pointer",
textDecoration: "underline",
padding: 0,
}}
>
Edit product (catalog)
</button>
{siblings.length > 0 && (
<span style={{ fontSize: 12, color: "var(--ink-3)", marginLeft: 12 }}>
· {siblings.length} other instance{siblings.length === 1 ? "" : "s"} on file
</span>
)}
{siblings.length > 0 && (
<div style={{ marginTop: 8, fontSize: 12, color: "var(--ink-3)" }}>
{siblings.length} other instance{siblings.length === 1 ? "" : "s"} on file
</div>
)}