From f17834fd14ddc22b6dd44c2eff956fea6da09b51 Mon Sep 17 00:00:00 2001 From: Igor Mariak Date: Thu, 8 Jan 2026 09:00:57 +0100 Subject: [PATCH 1/2] Set start date to current Monday --- app/shopping-list/new/page.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/app/shopping-list/new/page.tsx b/app/shopping-list/new/page.tsx index cfda346..a5b9a4f 100644 --- a/app/shopping-list/new/page.tsx +++ b/app/shopping-list/new/page.tsx @@ -1,12 +1,19 @@ "use client" import { useRouter } from "next/navigation" -import { useState } from "react" +import { useState, useEffect } from "react" +import { getMonday, formatDateYMD } from "@/app/week-preferences/date" export default function NewShoppingListPage() { const router = useRouter() const [start, setStart] = useState("") const [end, setEnd] = useState("") + + + useEffect(() => { + const monday = formatDateYMD(getMonday(new Date())) + setStart(monday) + }, []) async function handleGenerate() { if (!start || !end) { From 0b4389e5d156afce68f3b1bf2f4bc537e08155c5 Mon Sep 17 00:00:00 2001 From: Igor Mariak Date: Thu, 8 Jan 2026 09:08:31 +0100 Subject: [PATCH 2/2] Fix text on MealCardWeek --- app/planner/calendar/MealCardWeek.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/planner/calendar/MealCardWeek.tsx b/app/planner/calendar/MealCardWeek.tsx index c0dca2f..3e5e2b6 100644 --- a/app/planner/calendar/MealCardWeek.tsx +++ b/app/planner/calendar/MealCardWeek.tsx @@ -15,12 +15,12 @@ const MealCard = ({ meal, type }: { meal: Meal; type: MealType }) => {
-

+

{meal.name}

{mealEmoji[type]}