Test and deploy / test-and-deploy (push) Successful in 49s
- New server/llm.js consolidates ModelRuntime + model selection: admin setting (app_settings.llm_model) > LLM_MODEL/PREFILL_MODEL env > first available; used by both prefill and roast evaluation - GET/PUT /api/admin/llm lists configured models and stores the choice (validated against the list; empty = auto; audited); admin page gains an LLM section with a model picker - All user-facing 'Pi agent' wording is now 'LLM'; no_model error message no longer references the pi CLI - /roasts table: Review column removed (review lives in the detail view) Co-Authored-By: Claude Fable 5 <[email protected]>
169 lines
6.3 KiB
HTML
169 lines
6.3 KiB
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1" />
|
|
<title>Roast history — 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">
|
|
<span class="brand-mark" aria-hidden="true">◐</span>
|
|
<span class="brand-name">Roast Planner</span>
|
|
</div>
|
|
<div class="nav-group">
|
|
<a class="nav-item" href="/app"
|
|
><span class="nav-icon" aria-hidden="true">◐</span
|
|
><span class="nav-label">Planner</span></a
|
|
>
|
|
<a class="nav-item" href="/account#your-plans"
|
|
><span class="nav-icon" aria-hidden="true">▤</span
|
|
><span class="nav-label">Plans</span></a
|
|
>
|
|
<a class="nav-item" href="/roasts" aria-current="page"
|
|
><span class="nav-icon" aria-hidden="true">∿</span
|
|
><span class="nav-label">Roasts</span></a
|
|
>
|
|
<a class="nav-item" href="/inventory"
|
|
><span class="nav-icon" aria-hidden="true">▥</span
|
|
><span class="nav-label">Inventory</span></a
|
|
>
|
|
<a class="nav-item" href="/cupping"
|
|
><span class="nav-icon" aria-hidden="true">◒</span
|
|
><span class="nav-label">Cupping</span></a
|
|
>
|
|
<a class="nav-item" href="/account"
|
|
><span class="nav-icon" aria-hidden="true">◔</span
|
|
><span class="nav-label">Account</span></a
|
|
>
|
|
<a class="nav-item hidden" id="nav-admin" href="/admin"
|
|
><span class="nav-icon" aria-hidden="true">⚙</span
|
|
><span class="nav-label">Admin</span></a
|
|
>
|
|
</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>Roast history</h1>
|
|
<p class="brand-sub">
|
|
Finished roasts uploaded from Artisan, with LLM reviews
|
|
</p>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
<div class="drawer-overlay hidden" id="drawer-overlay"></div>
|
|
|
|
<main class="page-content">
|
|
<section class="panel-card" id="roasts">
|
|
<div class="panel-head">
|
|
<h2>Actual roasts</h2>
|
|
<label class="filebtn ghost-btn small"
|
|
>Upload .alog<input
|
|
type="file"
|
|
id="roast-upload"
|
|
accept=".alog"
|
|
multiple
|
|
/></label>
|
|
</div>
|
|
<div class="panel-body">
|
|
<p class="field-note" id="upload-status" hidden></p>
|
|
<div class="table-wrap">
|
|
<table class="data-table" id="roasts-table">
|
|
<thead>
|
|
<tr>
|
|
<th>Roast</th>
|
|
<th>Plan</th>
|
|
<th>First crack</th>
|
|
<th>Drop</th>
|
|
<th>DTR</th>
|
|
<th>Loss</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody id="roasts-body"></tbody>
|
|
</table>
|
|
</div>
|
|
<p class="field-note">
|
|
Upload finished roasts here (they stay unattached to a plan), or
|
|
from the planner's Reference curve drawer to attach them to the
|
|
open plan. Click a row for the full review and curve.
|
|
</p>
|
|
</div>
|
|
</section>
|
|
|
|
<section class="panel-card hidden" id="roast-detail-card">
|
|
<div class="panel-head">
|
|
<h2 id="detail-title">Roast detail</h2>
|
|
<div style="display:flex;gap:8px;flex-wrap:wrap">
|
|
<a class="ghost-btn small" id="detail-download" href="#" download
|
|
>Download original .alog</a
|
|
>
|
|
<button class="ghost-btn small" type="button" id="detail-reevaluate">
|
|
Re-evaluate
|
|
</button>
|
|
<button class="ghost-btn small" type="button" id="detail-delete">
|
|
Delete
|
|
</button>
|
|
<button class="ghost-btn small" type="button" id="detail-close">
|
|
Close
|
|
</button>
|
|
</div>
|
|
</div>
|
|
<div class="panel-body">
|
|
<p class="field-note" id="detail-meta"></p>
|
|
<div class="table-wrap">
|
|
<svg
|
|
id="roast-graph"
|
|
viewBox="0 0 714 360"
|
|
style="width:100%;max-width:900px;display:block"
|
|
role="img"
|
|
aria-label="Bean temperature curve of this roast"
|
|
></svg>
|
|
</div>
|
|
<div id="detail-stats" class="field-grid" style="margin-top:10px"></div>
|
|
<div id="detail-evaluation" style="margin-top:14px"></div>
|
|
</div>
|
|
</section>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
<script type="module" src="/js/roasts.js?v=__ASSET_VERSION__"></script>
|
|
</body>
|
|
</html>
|