Test and deploy / test-and-deploy (push) Successful in 59s
Co-Authored-By: Claude Fable 5 <[email protected]>
220 lines
8.2 KiB
HTML
220 lines
8.2 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
<title>Inventory — Roast Planner</title>
|
|
<link rel="stylesheet" href="/app.css?v=__ASSET_VERSION__" />
|
|
<link rel="icon" href="/icon.svg?v=__ASSET_VERSION__" type="image/svg+xml" />
|
|
<meta name="theme-color" content="#A8481A" />
|
|
</head>
|
|
<body>
|
|
<div class="app-shell">
|
|
<nav class="side-nav" id="side-nav" aria-label="Main navigation">
|
|
<div class="side-nav-brand">
|
|
<img class="brand-mark" src="/brand-mark.svg?v=__ASSET_VERSION__" alt="" aria-hidden="true" />
|
|
<span class="brand-name">Roast Planner</span>
|
|
</div>
|
|
<div id="nav-links"></div>
|
|
<div class="nav-spacer"></div>
|
|
<button
|
|
class="icon-btn nav-collapse-toggle"
|
|
type="button"
|
|
id="nav-collapse"
|
|
aria-label="Collapse navigation"
|
|
title="Collapse navigation"
|
|
>
|
|
«
|
|
</button>
|
|
<div class="nav-user">
|
|
<div class="nav-user-avatar" id="nav-user-avatar" aria-hidden="true"></div>
|
|
<div class="nav-user-detail">
|
|
<span class="nav-user-email" id="account-email"></span>
|
|
<button class="nav-user-logout" type="button" id="btn-logout">
|
|
Log out
|
|
</button>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="app-workspace" id="app-workspace">
|
|
<header class="app-header">
|
|
<div class="header-row-top">
|
|
<button
|
|
class="icon-btn nav-hamburger"
|
|
type="button"
|
|
id="nav-hamburger"
|
|
aria-label="Open navigation"
|
|
aria-expanded="false"
|
|
>
|
|
☰
|
|
</button>
|
|
<div class="brand">
|
|
<div class="brand-text">
|
|
<h1>Inventory</h1>
|
|
<p class="brand-sub">Green bean lots and remaining stock</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div class="drawer-overlay hidden" id="drawer-overlay"></div>
|
|
|
|
<main class="page-content">
|
|
<section class="panel-card" id="lots">
|
|
<div class="panel-head">
|
|
<h2>Green bean lots</h2>
|
|
<label
|
|
style="display:flex;align-items:center;gap:10px;font-size:13px;color:var(--ink-2)"
|
|
><span class="switch"
|
|
><input type="checkbox" id="show-archived" /><span
|
|
class="switch-track"
|
|
></span></span
|
|
>Show archived</label
|
|
>
|
|
</div>
|
|
<div class="panel-body">
|
|
<div class="table-wrap">
|
|
<table class="data-table" id="lots-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Lot</th>
|
|
<th>Process</th>
|
|
<th>Remaining</th>
|
|
<th>Purchased</th>
|
|
<th></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="lots-body"></tbody>
|
|
</table>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="panel-card" id="lot-form-card">
|
|
<div class="panel-head"><h2 id="lot-form-title">Add a lot</h2></div>
|
|
<div class="panel-body">
|
|
<div
|
|
style="display:flex;gap:8px;flex-wrap:wrap;align-items:center;margin-bottom:12px"
|
|
>
|
|
<input
|
|
class="text-input"
|
|
id="lot-prefill-url"
|
|
type="url"
|
|
placeholder="Paste the seller's product URL to prefill…"
|
|
style="flex:1;min-width:220px"
|
|
/>
|
|
<button class="ghost-btn" type="button" id="lot-prefill-btn">
|
|
Prefill from URL
|
|
</button>
|
|
</div>
|
|
<p class="field-note hidden" id="lot-prefill-note"></p>
|
|
<form id="lot-form">
|
|
<input type="hidden" name="id" />
|
|
<div class="field-grid">
|
|
<label class="field"
|
|
><span class="field-label">Name</span
|
|
><input
|
|
class="field-input"
|
|
name="name"
|
|
placeholder="e.g. Spring Ethiopia — defaults to origin"
|
|
/></label>
|
|
<label class="field"
|
|
><span class="field-label">Origin *</span
|
|
><input
|
|
class="field-input"
|
|
name="origin"
|
|
required
|
|
placeholder="e.g. Huila, Colombia"
|
|
/></label>
|
|
<label class="field"
|
|
><span class="field-label">Variety</span
|
|
><input class="field-input" name="variety"
|
|
/></label>
|
|
<label class="field"
|
|
><span class="field-label">Process</span
|
|
><input class="field-input" name="process"
|
|
/></label>
|
|
<label class="field"
|
|
><span class="field-label">Producer</span
|
|
><input class="field-input" name="producer"
|
|
/></label>
|
|
<label class="field"
|
|
><span class="field-label">Purchase date</span
|
|
><input class="field-input" type="date" name="purchaseDate"
|
|
/></label>
|
|
<label class="field"
|
|
><span class="field-label">Initial weight *</span>
|
|
<div class="unit-input">
|
|
<input
|
|
class="field-input"
|
|
type="number"
|
|
name="initialWeightG"
|
|
inputmode="decimal"
|
|
min="0"
|
|
step="any"
|
|
required
|
|
/><span class="unit">g</span>
|
|
</div></label
|
|
>
|
|
<label class="field"
|
|
><span class="field-label">Cost</span
|
|
><input
|
|
class="field-input"
|
|
type="number"
|
|
name="costTotal"
|
|
inputmode="decimal"
|
|
min="0"
|
|
step="any"
|
|
/></label>
|
|
<label class="field"
|
|
><span class="field-label">Moisture</span>
|
|
<div class="unit-input">
|
|
<input
|
|
class="field-input"
|
|
type="number"
|
|
name="moisturePct"
|
|
inputmode="decimal"
|
|
min="0"
|
|
step="any"
|
|
/><span class="unit">%</span>
|
|
</div></label
|
|
>
|
|
<label class="field"
|
|
><span class="field-label">Density</span>
|
|
<div class="unit-input">
|
|
<input
|
|
class="field-input"
|
|
type="number"
|
|
name="densityGL"
|
|
inputmode="decimal"
|
|
min="0"
|
|
step="any"
|
|
/><span class="unit">g/L</span>
|
|
</div></label
|
|
>
|
|
</div>
|
|
<label class="field"
|
|
><span class="field-label">Notes</span
|
|
><input class="field-input" name="notes"
|
|
/></label>
|
|
<p class="field-note hidden" id="lot-remaining-note"></p>
|
|
<button class="primary-btn" type="submit" id="lot-form-submit">
|
|
Add lot
|
|
</button>
|
|
<button
|
|
class="ghost-btn hidden"
|
|
type="button"
|
|
id="lot-form-cancel"
|
|
>
|
|
Cancel edit
|
|
</button>
|
|
</form>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
<script type="module" src="/js/inventory.js?v=__ASSET_VERSION__"></script>
|
|
</body>
|
|
</html>
|