commit 0aaa5ca9b44b7c11c60ee0977ff69ddd75dadd72
parent b3311c5b841b32f50a9c3ac705c1163064391385
Author: I Mean I'm Just Saying <imeanimjustsaying@kiwifarms.st>
Date: Fri, 6 Nov 2026 00:20:19 -0500
umtool: play-measure-fixture's schema carries the qualifier field
Without the schema's `qualifier` field the measure slice drops a row's bound,
so the remembered "≈390" read "390" (play-measure.spec.ts). The moving start
also reads a bound off the display ("≈390 lb") when the event has none.
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/umtool/e2e/fixtures/measure-extras-fixture.mjs b/umtool/e2e/fixtures/measure-extras-fixture.mjs
@@ -25,6 +25,8 @@ export const MEASURE_SCHEMA = {
],
forms: ["current", "past", "delta", "goal", "goal_loss", "overweight_by", "status"],
regimes: [{ key: "keto", label: "Keto" }, { key: "carnivore", label: "Carnivore" }, { key: "off", label: "No diet" }],
+ // The bound a row may carry ("≈390"): a field of the schema, as the weight ledger's.
+ fields: [{ key: "qualifier", label: "Bound", kind: "enum", options: [">", "<", "≈"], appliesTo: { scope: "weight" }, render: "cell" }],
};
const row = (o) => ({ scope: "weight", scopeBasis: "his words", scopeConfidence: "read", valueKind: "uttered", flags: [], asOf: null, ...o });
diff --git a/umtool/report-to-video/measure-extras.mjs b/umtool/report-to-video/measure-extras.mjs
@@ -303,7 +303,7 @@ export function peakStates(schedule, render) {
const v = Math.round(e.value * 10) / 10;
const t = ticks.get(v) ?? { value: v, count: 0, approx: false };
t.count += 1;
- if (e.qualifier === "≈") t.approx = true;
+ if (e.qualifier === "≈" || String(e.display ?? "").startsWith("≈")) t.approx = true;
ticks.set(v, t);
const vals = [...ticks.keys()];
const min = Math.min(...vals);