Skip to content

feat: say when to buy what in the simplified shopping export - #81

Merged
guplem merged 2 commits into
mainfrom
79-save-shopping-progress
Oct 3, 2026
Merged

guplem merged 2 commits into
mainfrom
79-save-shopping-progress

Conversation

@guplem

@guplem guplem commented Oct 3, 2026

Copy link
Copy Markdown
Owner

The simplified shopping export now says when to buy what. It writes one section per shop trip, the same way as the detailed and the checklist exports.

Before vs after

Before (one flat list, so the reader bought everything on day one):

Milk: 1,200 grams

After:

now
---
Milk: 600 grams

Tuesday 12 Aug
--------------
Milk: 600 grams

Changes

  • Simplified export: reuses the shared trip sections (_buildTripSections) with a new one-line builder, buildIngredientSimplifiedLine. No pack line and no link, as before.
  • Freeze note: now rides on the line of the trip that freezes the item, as in the detailed export. computeFreezeOnArrivalIngredientIds only existed for the flat list, so it is removed.
  • Checklist: its no-pack fallback line reuses the same one-line builder.
  • Banner: says "the exports split into N trips", not only "the detailed export".
  • Docs: ADR 0014 and ADR 0015 describe the new shape. The test count in AGENTS.md is updated.

Checks

Format check, flutter analyze, and all 1120 tests pass locally.

🤖 Generated with Claude Code

guplem and others added 2 commits October 3, 2026 22:57
The simplified export wrote one flat list, so its reader bought every
batch on day one, even when the plan splits the shopping into several
trips. It now writes the same trip sections as the detailed and the
checklist exports, with one "Ingredient: amount" line per trip.

The freeze note now rides on the line of the trip that freezes the
item, as in the detailed export. computeFreezeOnArrivalIngredientIds
only existed to mark the flat list, so it is gone.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The banner said only the detailed export splits into trips. Every text
export and the PDF now write one section per trip.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@guplem guplem added the waiting-for-human-check No human has verified this yet -- direct AI output label Oct 3, 2026
@guplem guplem self-assigned this Oct 3, 2026
@guplem
guplem enabled auto-merge October 3, 2026 20:57
@guplem
guplem merged commit c0cb3d7 into main Oct 3, 2026
1 check passed
@guplem
guplem deleted the 79-save-shopping-progress branch October 3, 2026 20:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

waiting-for-human-check No human has verified this yet -- direct AI output

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant