Move After-the-Roast onto actual roasts; add Artisan-importable updated .alog download
Test and deploy / test-and-deploy (push) Successful in 56s
Test and deploy / test-and-deploy (push) Successful in 56s
One system: post-roast observations (weights, colour, DTR, cup notes, 'one change next batch', disproof) now live on the uploaded roast (actual_roasts.after, migration 011), edited on the roast detail view with weights/DTR prefilled from the .alog itself. The planner's screen section is removed (the print worksheet keeps its hand-fill copy), and the lot 'last refine' suggestion reads the note from both the new home and legacy plans, newest wins. Every roast now downloads two ways: the untouched original .alog, and an updated supplemental copy with the app's data written back as valid Artisan fields (weight, beans, roastingnotes incl. the LLM review, cuppingnotes incl. linked cupping score/flavors) — serialized as a Python literal so Artisan's ast.literal_eval re-imports it. Co-Authored-By: Claude Fable 5 <[email protected]>
This commit is contained in:
co-authored by
Claude Fable 5
parent
9b6ea9880e
commit
4a3d192c2c
+89
-1
@@ -103,7 +103,15 @@
|
||||
<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
|
||||
>Original .alog</a
|
||||
>
|
||||
<a
|
||||
class="ghost-btn small"
|
||||
id="detail-download-updated"
|
||||
href="#"
|
||||
download
|
||||
title="The original file with this app's data (weights, notes, cupping) written back as Artisan fields — importable into Artisan"
|
||||
>Updated .alog</a
|
||||
>
|
||||
<button class="ghost-btn small" type="button" id="detail-reevaluate">
|
||||
Re-evaluate
|
||||
@@ -128,6 +136,86 @@
|
||||
></svg>
|
||||
</div>
|
||||
<div id="detail-stats" class="field-grid" style="margin-top:10px"></div>
|
||||
|
||||
<div id="detail-after" style="margin-top:16px">
|
||||
<h3 style="margin:0 0 4px">After the roast</h3>
|
||||
<p class="field-note" style="margin-top:0">
|
||||
One change per batch. Weight loss is the honest instrument —
|
||||
match the cup to a symptom, write the winner into "One
|
||||
change", and the planner's ± Refine picks it up next time
|
||||
you roast this lot. These values also go into the updated
|
||||
.alog download.
|
||||
</p>
|
||||
<form id="after-form">
|
||||
<div class="field-grid">
|
||||
<label class="field"
|
||||
><span class="field-label">Green in</span>
|
||||
<div class="unit-input">
|
||||
<input class="field-input" name="greenIn" /><span class="unit">g</span>
|
||||
</div></label
|
||||
>
|
||||
<label class="field"
|
||||
><span class="field-label">Out</span>
|
||||
<div class="unit-input">
|
||||
<input class="field-input" name="out" /><span class="unit">g</span>
|
||||
</div></label
|
||||
>
|
||||
<label class="field"
|
||||
><span class="field-label">Weight loss</span>
|
||||
<div class="unit-input">
|
||||
<input class="field-input" name="weightLossPct" /><span class="unit">%</span>
|
||||
</div></label
|
||||
>
|
||||
<label class="field"
|
||||
><span class="field-label">Actual DTR</span>
|
||||
<div class="unit-input">
|
||||
<input class="field-input" name="actualDtrPct" /><span class="unit">%</span>
|
||||
</div></label
|
||||
>
|
||||
<label class="field"
|
||||
><span class="field-label">vs target</span
|
||||
><input class="field-input" name="vsTarget"
|
||||
/></label>
|
||||
<label class="field"
|
||||
><span class="field-label">Colour WB/GR</span
|
||||
><input class="field-input" name="colour"
|
||||
/></label>
|
||||
<label class="field"
|
||||
><span class="field-label">Rested</span>
|
||||
<div class="unit-input">
|
||||
<input class="field-input" name="restedDays" /><span class="unit">days</span>
|
||||
</div></label
|
||||
>
|
||||
<label class="field"
|
||||
><span class="field-label">Brew ratio</span
|
||||
><input class="field-input" name="brewRatio"
|
||||
/></label>
|
||||
<label class="field"
|
||||
><span class="field-label">Method</span
|
||||
><input class="field-input" name="method"
|
||||
/></label>
|
||||
</div>
|
||||
<label class="field"
|
||||
><span class="field-label">Cup notes</span
|
||||
><textarea class="field-input" name="cupNotes" rows="2"></textarea></label
|
||||
>
|
||||
<label class="field"
|
||||
><span class="field-label">One change next batch</span
|
||||
><input
|
||||
class="field-input"
|
||||
name="oneChange"
|
||||
placeholder="e.g. first crack +0:30"
|
||||
/></label>
|
||||
<label class="field"
|
||||
><span class="field-label">What would disprove it</span
|
||||
><input class="field-input" name="disproof"
|
||||
/></label>
|
||||
<button class="primary-btn" type="submit" id="after-save">
|
||||
Save after-roast
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
<div id="detail-evaluation" style="margin-top:14px"></div>
|
||||
</div>
|
||||
</section>
|
||||
|
||||
Reference in New Issue
Block a user