Track menu price history and add an inflation tracker #2

Merged
glup3 merged 2 commits from t3code/menu-price-history into main 2026-10-15 00:32:50 +00:00
Owner

Menu price changes previously overwrote the current price without a dedicated history. Add migration-managed price history and an Analytics → Inflation view with a fixed original-menu basket, per-dish changes, expandable histories, and separately labelled prices observed in existing orders.

Update 10 prices from the supplied menu photos (9 increases and 1 decrease; 26 unchanged), dated 26 August 2026 in Vienna time with an explicit note that this is when the changes were noticed. Existing order-item prices remain unchanged. Fix the historical price-range chart to use saved item prices.

The menu basket changes from €323.30 to €328.50 (+1.61%). The basket chart follows recording dates; supplied price dates and sources appear in dish histories.

Validation:

  • Formatting, lint, type checks, and all four price-history calculation tests passed.
  • Production build passed.
  • Isolated PostgreSQL-compatible migration checks verified all 36 prices, baseline/history creation, no-op updates, validation, rollback, and preservation of saved order prices.
  • Desktop/mobile browser checks with sample data covered expanded histories, order observations, and the baseline-only state.

Deployment: apply migrations 0003 and 0004 before deploying the app. They have not been applied to the live database. README documents future updates through set_dish_price(...).

Menu price changes previously overwrote the current price without a dedicated history. Add migration-managed price history and an Analytics → Inflation view with a fixed original-menu basket, per-dish changes, expandable histories, and separately labelled prices observed in existing orders. Update 10 prices from the supplied menu photos (9 increases and 1 decrease; 26 unchanged), dated 26 August 2026 in Vienna time with an explicit note that this is when the changes were noticed. Existing order-item prices remain unchanged. Fix the historical price-range chart to use saved item prices. The menu basket changes from €323.30 to €328.50 (+1.61%). The basket chart follows recording dates; supplied price dates and sources appear in dish histories. Validation: - Formatting, lint, type checks, and all four price-history calculation tests passed. - Production build passed. - Isolated PostgreSQL-compatible migration checks verified all 36 prices, baseline/history creation, no-op updates, validation, rollback, and preservation of saved order prices. - Desktop/mobile browser checks with sample data covered expanded histories, order observations, and the baseline-only state. Deployment: apply migrations 0003 and 0004 before deploying the app. They have not been applied to the live database. README documents future updates through set_dish_price(...).
glup3 merged commit a5459cfb1a into main 2026-10-15 00:32:50 +00:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
glup3/kimchitrain!2
No description provided.