From acfd92ed803e75bd02e291556bba48579add784d Mon Sep 17 00:00:00 2001 From: Ken D'Ambrosio Date: Mon, 25 May 2026 01:02:59 +0000 Subject: Add per-user meal plans and household sharing Each user now has their own meal plan and shopping list. Users can form a household (invite by username, owner can remove members) so that shopping list generation combines all household members' plans. DB migration preserves existing data assigned to user id=1. Co-Authored-By: Claude Sonnet 4.6 --- app/templates/household.html | 106 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 106 insertions(+) create mode 100644 app/templates/household.html (limited to 'app/templates/household.html') diff --git a/app/templates/household.html b/app/templates/household.html new file mode 100644 index 0000000..cbb5121 --- /dev/null +++ b/app/templates/household.html @@ -0,0 +1,106 @@ +{% extends "base.html" %} +{% block title %}Household — Menu Planner{% endblock %} + +{% block content %} +
+
+

Household

+ {% if household %}

{{ household.name }}

{% endif %} +
+
+ +{% if not household %} +
+
+ +
You're not in a household yet
+

Create one and invite family members.
+ Shopping lists will automatically combine everyone's meal plans.

+
+ + +
+
+
+ +{% else %} + + +
+
+ Members + {{ members|length }} +
+
    + {% for m in members %} +
  • +
    + + {{ m.username }} + {% if m.id == household.owner_id %} + Owner + {% endif %} + {% if m.is_me %} + (you) + {% endif %} +
    + {% if is_owner and not m.is_me %} +
    + + +
    + {% endif %} +
  • + {% endfor %} +
+
+ +{% if is_owner %} + +
+
+ Invite Member +
+
+
+ + +
+

+ The user must already have an account. They'll join immediately and their meal plan + will be included in your combined shopping list. +

+
+
+{% endif %} + + +
+
+ {% if is_owner and members|length > 1 %} +

+ Remove all other members before you can dissolve the household. +

+ + {% else %} +
+ +
+ {% endif %} +
+
+ +{% endif %} +{% endblock %} -- cgit v1.2.3