This commit is contained in:
2026-03-14 22:03:51 -05:00
parent ce2f94c17e
commit a6b24a6609
8 changed files with 76 additions and 76 deletions

View File

@@ -34,7 +34,7 @@ export function InventoryDetailPage() {
}, [itemId, token]);
if (!item) {
return <div className="rounded-[28px] border border-line/70 bg-surface/90 p-8 text-sm text-muted shadow-panel">{status}</div>;
return <div className="rounded-[28px] border border-line/70 bg-surface/90 p-6 text-sm text-muted shadow-panel">{status}</div>;
}
return (
@@ -43,7 +43,7 @@ export function InventoryDetailPage() {
<div className="flex flex-col gap-4 lg:flex-row lg:items-start lg:justify-between">
<div>
<p className="text-xs font-semibold uppercase tracking-[0.24em] text-muted">Inventory Detail</p>
<h3 className="mt-3 text-3xl font-bold text-text">{item.sku}</h3>
<h3 className="mt-3 text-2xl font-bold text-text">{item.sku}</h3>
<p className="mt-2 text-base text-text">{item.name}</p>
<div className="mt-4 flex flex-wrap gap-3">
<InventoryTypeBadge type={item.type} />
@@ -56,7 +56,7 @@ export function InventoryDetailPage() {
Back to items
</Link>
{canManage ? (
<Link to={`/inventory/items/${item.id}/edit`} className="inline-flex items-center justify-center rounded-2xl bg-brand px-5 py-3 text-sm font-semibold text-white">
<Link to={`/inventory/items/${item.id}/edit`} className="inline-flex items-center justify-center rounded-2xl bg-brand px-3 py-2 text-sm font-semibold text-white">
Edit item
</Link>
) : null}
@@ -99,7 +99,7 @@ export function InventoryDetailPage() {
<p className="text-xs font-semibold uppercase tracking-[0.24em] text-muted">Bill Of Materials</p>
<h4 className="mt-3 text-xl font-bold text-text">Component structure</h4>
{item.bomLines.length === 0 ? (
<div className="mt-6 rounded-3xl border border-dashed border-line/70 bg-page/60 px-6 py-12 text-center text-sm text-muted">
<div className="mt-6 rounded-3xl border border-dashed border-line/70 bg-page/60 px-4 py-8 text-center text-sm text-muted">
No BOM lines are defined for this item yet.
</div>
) : (
@@ -107,24 +107,24 @@ export function InventoryDetailPage() {
<table className="min-w-full divide-y divide-line/70 text-sm">
<thead className="bg-page/80 text-left text-muted">
<tr>
<th className="px-4 py-3">Position</th>
<th className="px-4 py-3">Component</th>
<th className="px-4 py-3">Quantity</th>
<th className="px-4 py-3">UOM</th>
<th className="px-4 py-3">Notes</th>
<th className="px-2 py-2">Position</th>
<th className="px-2 py-2">Component</th>
<th className="px-2 py-2">Quantity</th>
<th className="px-2 py-2">UOM</th>
<th className="px-2 py-2">Notes</th>
</tr>
</thead>
<tbody className="divide-y divide-line/70 bg-surface">
{item.bomLines.map((line) => (
<tr key={line.id}>
<td className="px-4 py-3 text-muted">{line.position}</td>
<td className="px-4 py-3">
<td className="px-2 py-2 text-muted">{line.position}</td>
<td className="px-2 py-2">
<div className="font-semibold text-text">{line.componentSku}</div>
<div className="mt-1 text-xs text-muted">{line.componentName}</div>
</td>
<td className="px-4 py-3 text-muted">{line.quantity}</td>
<td className="px-4 py-3 text-muted">{line.unitOfMeasure}</td>
<td className="px-4 py-3 text-muted">{line.notes || "—"}</td>
<td className="px-2 py-2 text-muted">{line.quantity}</td>
<td className="px-2 py-2 text-muted">{line.unitOfMeasure}</td>
<td className="px-2 py-2 text-muted">{line.notes || "—"}</td>
</tr>
))}
</tbody>