Extensive UI changes
All checks were successful
Verify and publish Calio container / build-and-push (push) Successful in 28s

This commit is contained in:
Elijah 2026-10-20 19:46:08 -07:00
parent 6fc0a01c56
commit ddea7fc512
16 changed files with 675 additions and 493 deletions

View file

@ -11,6 +11,7 @@ const record = (id, type, data, deleted = false) => ({
});
const entry = {
date: "2026-10-20",
time: "06:28",
meal: "Lunch",
name: "=danger|\nfood",
serving: "1 bowl",
@ -64,6 +65,7 @@ test("JSON export includes fractional serving totals, chosen dates/metrics, kg w
assert.equal(data.pendingChanges, 2);
assert.equal(data.entries.length, 1);
assert.equal(data.entries[0].calories, 300);
assert.equal(data.entries[0].time, "06:28");
assert.equal(data.entries[0].protein, 30);
assert.equal("fat" in data.entries[0], false);
assert.equal(data.weights[0].valueKg, 75);
@ -74,9 +76,11 @@ test("CSV quotes text and guards spreadsheet formula fields; Markdown keeps clea
assert.match(csv, /"'=danger\|\nfood"/);
assert.match(csv, /"'=untrusted"/);
assert.match(csv, /"daily_total"/);
assert.match(csv, /"06:28"/);
const markdown = await capture("markdown");
assert.match(markdown, /\| 2026-10-20 \| 300 \| 30 \|/);
assert.match(markdown, /=danger\/ food/);
assert.match(markdown, /2026-10-20 06:28/);
assert.doesNotMatch(markdown, /2026-10-19/);
});
test("weight-only exports omit food records; excluding weight omits all weigh-ins", async () => {