Files
roast_command_center/public/roasts.html
T
Shane MaynardandClaude Fable 5 38c7d01e03
Test and deploy / test-and-deploy (push) Successful in 1m6s
Add brewing section, plan chat, roaster learning, API tokens, Swagger docs, and full backup
Brewing:
- roasted_beans + brews tables; /beans (bean management with LLM URL
  prefill) and /brews (silhouette brewer picker across immersion/
  percolation/espresso, recipe fields, auto ratio, 0-10 rating, tasting
  notes); bean remaining weight derived from logged brew doses
- Green inventory lot form also prefills from a product URL

Navigation/UX:
- Side nav is now generated from one definition in nav.js, grouped
  Roasting / Brewing / account, consistent on every page

LLM:
- 'Ask the LLM' chat drawer on the planner (stateless /api/plan-chat)
  grounded in the plan, computed ledger, learned pace, and a new
  roaster-behavior profile aggregated from uploaded .alogs
  (/api/roaster-profile: TP lag, phase RoR, median milestone temps)
- The profile also feeds roast reviews and the planner curve's fallback
  milestone temps

API platform:
- User-generated bearer tokens (rpt_…) with account-page management;
  token requests skip CSRF; hand-authored OpenAPI 3 spec at
  /api/openapi.json rendered by self-hosted Swagger UI at /api-docs
- Full-database backup export/import (admin) + per-user data export

Co-Authored-By: Claude Fable 5 <[email protected]>
2026-08-08 22:37:42 -04:00

140 lines
5.0 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 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>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>