Keep source URLs in plans and expose an editable source field
Test and deploy / test-and-deploy (push) Successful in 1m15s

This commit is contained in:
snowspeeder committed 2026-09-06 17:01:47 -04:00
1 parent a9358048ef
commit 1fd53091ac
5 files changed
+15 -1

No files matched your search

+4
View File
@@ -408,6 +408,10 @@
name="0.1"
placeholder="e.g. Finca El Ocaso"
/></label>
<label class="field"><span class="field-label">Source URL</span>
<input class="field-input" type="url" name="sourceUrl" placeholder="https://example.com/coffee" />
<span class="field-note">Coffee product page or other source for this plan.</span>
</label>
<label class="field" data-fid="0.2"
><span class="field-label">Date</span
><input class="field-input" type="date" name="0.2"
+1
View File
@@ -35,6 +35,7 @@ export function initPrefillPanel({ state, renderFormFromPlan, recompute }) {
return;
}
snapshot = structuredClone(state.plan);
state.plan.sourceUrl = url;
let applied = 0;
for (const [id, value] of Object.entries(body.fields ?? {})) {
if (!overwriteBox.checked && (state.plan.fields[id] ?? "") !== "")