fix: limit recipe planning to today and future dates #2

Merged
exler merged 1 commit from fix/recipe-planner-date-picker into main 2026-09-11 22:59:44 +02:00
Collaborator

Summary

  • Make the recipe-page planner picker start on today and expose only today or future days.
  • Add a forward-only control that advances the picker by seven days.
  • Reject manually crafted past-date planner requests on the server.
  • Render the selected recipe name in the picker title, with a non-empty fallback for legacy blank titles.

Validation

  • ./.venv/bin/python manage.py test core — 8 tests passed
  • ./.venv/bin/python manage.py check — passed
  • ./.venv/bin/ruff check core/forms.py core/services.py core/tests.py core/views.py — passed
  • git diff --check — passed

Limitation

compilemessages could not run in this environment because GNU gettext msgfmt is unavailable. The updated Polish .po source is included.

## Summary - Make the recipe-page planner picker start on today and expose only today or future days. - Add a forward-only control that advances the picker by seven days. - Reject manually crafted past-date planner requests on the server. - Render the selected recipe name in the picker title, with a non-empty fallback for legacy blank titles. ## Validation - `./.venv/bin/python manage.py test core` — 8 tests passed - `./.venv/bin/python manage.py check` — passed - `./.venv/bin/ruff check core/forms.py core/services.py core/tests.py core/views.py` — passed - `git diff --check` — passed ## Limitation `compilemessages` could not run in this environment because GNU gettext `msgfmt` is unavailable. The updated Polish `.po` source is included.
fix: limit recipe planning to today and future dates
All checks were successful
Push Docker Image / push (push) Successful in 3m13s
9c78898a37
exler merged commit 9c78898a37 into main 2026-09-11 22:59:44 +02:00
exler deleted branch fix/recipe-planner-date-picker 2026-09-11 22:59:46 +02:00
Sign in to join this conversation.
No reviewers
No labels
No milestone
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
exler/hearth!2
No description provided.