26.11.35: foodplanhero – Plan. Cook. Smile. Für Maike #36

Merged
kai merged 1 commits from claude/foodplanhero into main 2026-11-07 12:29:57 +00:00
45 changed files with 843 additions and 117 deletions

No files matched your search

+19 -4
View File
@@ -1,13 +1,13 @@
# „Was gibt's?“ (lunch) — Projekt-Briefing für Claude Code
# foodplanhero (lunch) — Projekt-Briefing für Claude Code
> **Produkt:** „Was gibt's?“ — die Familie entscheidet gemeinsam, was es warm
> **Produkt:** foodplanhero („Plan. Cook. Smile.“, für Maike; bis 26.11.34 „Was gibt's?“) — die Familie entscheidet gemeinsam, was es warm
> gibt, und aus dem Plan entsteht die Einkaufsliste. Konzept: `docs/konzept.md`.
> **Technischer Name:** `lunch` (E-0003). **Maintainer:** Kai Böhm.
> **Nutzerin, für die gebaut wird:** die Planerin (bei uns Maike).
> **Plattform:** Olares One (Kubernetes), Repo und CI auf Gitea — kein Supabase,
> kein Vercel (E-0001). Eigene Gestaltung, nicht AImighty (E-0002).
> Verteilung über den Markt, Repo öffentlich (E-0005).
> **Status:** 26.11.34 — alle neun Arbeitspakete aus `docs/PROJEKTSTART.md` sind gebaut:
> **Status:** 26.11.35 — alle neun Arbeitspakete aus `docs/PROJEKTSTART.md` sind gebaut:
> Anmeldung (Passkeys, Kinder mit Gerät + PIN), Gerichte (Link, Kochbuchfoto, AI über den
> Olares Router), Wünschen, Plan, Einkaufsliste (Echtzeit, offline), Kochmodus mit
> Bewertung, Web-App; Einzahl bei Stück-Mengen (26.11.15), Preise und Kosten mit Ampel
@@ -16,7 +16,8 @@
> Produkte je Gericht (26.11.21), Veto mit Gegenvorschlag (26.11.22),
> bis zu 5 Fotos je Gericht (26.11.23), Gerichte einsprechen (26.11.24), Kassenbons (V2b, 26.11.25),
> Führung (26.11.27), Präsentationsmodus und Küchendisplay (26.11.28),
> lange Bons und Aldi (26.11.29), „Mein Gericht“ (26.11.30). Offen ist der
> lange Bons und Aldi (26.11.29), „Mein Gericht“ (26.11.30), Bons „nicht zum Kochen“
> (26.11.33), foodplanhero für Maike (26.11.35). Offen ist der
> Magic Link (braucht SMTP).
> **Letzte Aktualisierung:** 7. November 2026
@@ -412,6 +413,20 @@ Vorlagen ersetzt. `tests/seed.test.ts` prüft die Dateien. Ein Haushalt
- In einer Karte (`bg-secondary`) kein `outline`-Knopf: Seitenfläche auf Kartenfläche wirkt
im Dunkeln wie ein Loch. Zweite Wege als Textlink, Nebenknöpfe bündig (`px-0`), seit 26.11.31.
## foodplanhero für Maike (seit 26.11.35, E-0013)
- Name in der Oberfläche „foodplanhero“ (`app.name`), technisch bleibt alles `lunch`
(appid, Chart, Datenbank). Slogan „Plan. Cook. Smile.“.
- `components/brand/brand.tsx`: `Wordmark` (Poppins Bold, „hero“ in `--hero`), `Slogan`
(`active` hebt plan/cook/smile hervor), `Portrait` (grüner Ring, „by Maike“ in Caveat,
5,31° gedreht — nach Kais Figma). Schriften lokal: `app/fonts` (woff2) und
`lib/brand-fonts` (woff fürs Startbild, `outputFileTracingIncludes` in next.config).
- Widmung je Haushalt (`households.dedication_*`, Migration 0021): Foto unter
`/app/data/fotos/<haushalt>/widmung-*.webp`, nie im Repo. `/api/widmung/foto` liefert es
auch ohne Sitzung (Anmelden, Einladung, Startbild) — von Kai so gewollt.
- Startbild: `/startbild/<w>x<h>` (`next/og`), Größen in `lib/startup-sizes.ts`, verlinkt
über `appleWebApp.startupImage`. Nur solange die App lädt, keine künstliche Pause.
## Mein Gericht (seit 26.11.30, Kai und Mike, E-0012)
- `wishes.is_mine` (Migration 0019, eins je Person und Runde, nie an einem Veto oder
+7 -7
View File
@@ -1,5 +1,5 @@
# ============================================================================
# OlaresManifest.yaml — Lunch („Was gibt's?“)
# OlaresManifest.yaml — foodplanhero (lunch, bis 26.11.35 „Was gibt's?“)
#
# Linter-Regeln, die hier zwingend gelten (scripts/check-chart.sh):
# - metadata.name, metadata.appid, Chart.yaml.name und der Ordnername
@@ -18,10 +18,10 @@ workloadReplicas:
metadata:
name: lunch
appid: lunch
title: What's cooking?
description: The family decides together what's for dinner — and the shopping list writes itself. Runs entirely on your own box.
title: foodplanhero
description: Plan. Cook. Smile. The family decides together what's for dinner — and the shopping list writes itself. Runs entirely on your own box.
icon: https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png
version: 26.11.34
version: 26.11.35
categories:
- Applications
@@ -38,7 +38,7 @@ entrances:
- name: lunch
host: lunch
port: 3000
title: What's cooking?
title: foodplanhero
icon: https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png
authLevel: public
invisible: false
@@ -61,14 +61,14 @@ permission:
appData: true
spec:
versionName: '26.11.34'
versionName: '26.11.35'
featuredImage: https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png
promoteImage:
- https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png
fullDescription: |
**What's cooking?** takes the daily "what are we eating?" off the
**foodplanhero** — Plan. Cook. Smile. — takes the daily "what are we eating?" off the
person who usually plans.
Everyone in the family wishes for dishes in ten seconds — children
+1 -1
View File
@@ -1,3 +1,3 @@
# Was gibt's? (lunch)
# foodplanhero (lunch)
Die Familie entscheidet gemeinsam, was es warm gibt, und aus dem Plan entsteht die Einkaufsliste — als PWA auf der eigenen Olares One. Konzept in [`docs/konzept.md`](docs/konzept.md), Weichen in [`docs/entscheidungen.md`](docs/entscheidungen.md), Regeln für jede Sitzung in [`CLAUDE.md`](CLAUDE.md), Daten und Arbeitspakete für den Start in [`docs/PROJEKTSTART.md`](docs/PROJEKTSTART.md).
+2
View File
@@ -5,6 +5,7 @@ import { CookingMode } from "@/components/cooking/cooking-mode";
import { requireSession } from "@/lib/auth/session";
import { cookingSlot } from "@/lib/cooking";
import { withHousehold } from "@/lib/db";
import { Slogan } from "@/components/brand/brand";
export const dynamic = "force-dynamic";
@@ -22,6 +23,7 @@ export default async function CookingPage({ params }: { params: Promise<{ id: st
<header className="flex flex-col gap-1">
<p className="eyebrow">{slot.cookName ? t("eyebrowCook", { name: slot.cookName }) : t("eyebrow")}</p>
<h1 className="text-4xl leading-tight">{slot.dish.title}</h1>
<Slogan active="cook" />
</header>
{slot.cookedAt ? (
<p className="rounded-2xl border border-border p-4">{t("alreadyCooked")}</p>
+19 -2
View File
@@ -6,6 +6,9 @@ import { LanguageSelect, SignOutButton } from "@/components/more/account-actions
import { RemoveButton } from "@/components/more/remove-button";
import { requireAdult } from "@/lib/auth/session";
import { KidDevices, KidsAdmin } from "@/components/more/kids-admin";
import { DedicationForm } from "@/components/more/dedication-form";
import { Portrait, Slogan, Wordmark } from "@/components/brand/brand";
import { getDedication, photoVersion } from "@/lib/dedication";
import { aiFor } from "@/lib/ai-settings";
import { InstallHint } from "@/components/install-hint";
import { BudgetSettings } from "@/components/more/budget-settings";
@@ -27,7 +30,7 @@ export default async function MorePage() {
const t = await getTranslations("more");
const tc = await getTranslations("costs.settings");
const locale = await getLocale();
const { members, passkeys, founder, kids, kidDevices, money } = await withHousehold(session.householdId, async (client) => {
const { members, passkeys, founder, kids, kidDevices, money, dedication } = await withHousehold(session.householdId, async (client) => {
const members = (await client.query("select id, display_name, role from members order by created_at")).rows;
const founder = (await client.query("select created_by from households")).rows[0]?.created_by as string | null;
const passkeys = (
@@ -43,7 +46,7 @@ export default async function MorePage() {
)
).rows;
const money = (await client.query("select budget_per_round::float as budget, expensive_per_slots as per, currency from households")).rows[0];
return { members, passkeys, founder, kids, kidDevices, money };
return { members, passkeys, founder, kids, kidDevices, money, dedication: await getDedication(client) };
});
const aiReady = !!(await aiFor(session.householdId));
const date = new Intl.DateTimeFormat(locale, { dateStyle: "medium" });
@@ -134,6 +137,20 @@ export default async function MorePage() {
</Section>
) : null}
{dedication.photo || dedication.text || session.role === "admin" ? (
<Section title={t("dedication.title", { name: dedication.name ?? "Maike" })} id="widmung">
{dedication.photo ? (
<Portrait src={`/api/widmung/foto?v=${photoVersion(dedication.photo)}`} name={dedication.name ?? "Maike"} size={160} className="my-2" />
) : null}
{dedication.text ? <p className="whitespace-pre-line text-lg leading-relaxed">{dedication.text}</p> : null}
<p className="flex flex-col items-center gap-2 py-2 text-center">
<Wordmark className="text-2xl" />
<Slogan />
</p>
{session.role === "admin" ? <DedicationForm name={dedication.name ?? ""} text={dedication.text ?? ""} hasPhoto={!!dedication.photo} /> : null}
</Section>
) : null}
<Section title={t("language")}>
<LanguageSelect current={isLocale(locale) ? locale : "de"} />
</Section>
+2
View File
@@ -9,6 +9,7 @@ import { listDishes } from "@/lib/dishes";
import { planSlots } from "@/lib/plan";
import { currentRound } from "@/lib/rounds";
import { cn } from "@/lib/utils";
import { Slogan } from "@/components/brand/brand";
export const dynamic = "force-dynamic";
@@ -42,6 +43,7 @@ export default async function PlanPage() {
<header className="flex flex-col gap-1">
<p className="eyebrow">{data.round ? t(`status.${data.round.status}`) : t("eyebrow")}</p>
<h1 className="text-4xl leading-tight">{t("title")}</h1>
{data.round && data.round.status !== "open" ? <Slogan active="plan" /> : null}
{data.round ? (
<p className="text-muted-foreground">
{[day, t("meals", { n: data.round.slotsCount }), t("wishes", { n: "wishCount" in data ? data.wishCount ?? 0 : 0 })].filter(Boolean).join(" · ")}
+4 -1
View File
@@ -6,6 +6,7 @@ import { getTranslations } from "next-intl/server";
import { AuthShell } from "@/components/auth/auth-shell";
import { LoginButton } from "@/components/auth/login-button";
import { getSession, isSetUp } from "@/lib/auth/session";
import { photoVersion, publicDedication } from "@/lib/dedication";
export const dynamic = "force-dynamic";
@@ -13,8 +14,10 @@ export default async function SignInPage() {
if (!(await isSetUp())) redirect("/einrichten");
if (await getSession()) redirect("/");
const t = await getTranslations("auth.login");
const d = await publicDedication();
const portrait = d?.photo ? { src: `/api/widmung/foto?v=${photoVersion(d.photo)}`, name: d.name ?? "Maike" } : null;
return (
<AuthShell title={t("title")} intro={t("intro")}>
<AuthShell title={t("title")} intro={t("intro")} portrait={portrait}>
<LoginButton />
{(await cookies()).has(KIDS_COOKIE) ? (
<Link href="/kinder" className="mx-auto inline-flex min-h-11 items-center text-sm font-semibold underline-offset-4 hover:underline">
+35
View File
@@ -0,0 +1,35 @@
import { guardWrite, isResponse } from "@/lib/auth/guard";
import { fail, json } from "@/lib/auth/http";
import { withHousehold } from "@/lib/db";
import { PhotoRejected, removePhoto, storePhoto } from "@/lib/photos";
export const dynamic = "force-dynamic";
// Widmung pflegen (26.11.35): Name, ein paar Sätze, ein Foto — nur Admins.
// Felder als Formular, damit das Foto in derselben Anfrage mitkommen kann.
export async function PUT(request: Request) {
const session = await guardWrite(request, ["admin"]);
if (isResponse(session)) return session;
const form = await request.formData().catch(() => null);
if (!form) return fail("invalid", 400);
const name = String(form.get("name") ?? "").trim();
const text = String(form.get("text") ?? "").trim();
if (name.length > 40 || text.length > 800) return fail("invalid", 400);
const file = form.get("photo");
const drop = form.get("removePhoto") === "1";
try {
const result = await withHousehold(session.householdId, async (c) => {
const old = (await c.query("select dedication_photo as photo from households")).rows[0]?.photo as string | null;
let photo = old;
if (file instanceof File && file.size > 0) photo = await storePhoto(session.householdId, "widmung", file);
else if (drop) photo = null;
await c.query("update households set dedication_name = $1, dedication_text = $2, dedication_photo = $3", [name || null, text || null, photo]);
return { old, photo };
});
if (result.old && result.old !== result.photo) await removePhoto(result.old);
return json({ ok: true, photo: !!result.photo });
} catch (error) {
if (error instanceof PhotoRejected) return fail("photo", 400);
throw error;
}
}
+23
View File
@@ -0,0 +1,23 @@
import { fail } from "@/lib/auth/http";
import { currentKitchenDisplay } from "@/lib/auth/kids";
import { getSession } from "@/lib/auth/session";
import { withHousehold } from "@/lib/db";
import { publicDedication } from "@/lib/dedication";
import { readPhoto } from "@/lib/photos";
export const dynamic = "force-dynamic";
// Maikes Foto (26.11.35). Mit Sitzung oder Küchendisplay das des eigenen Haushalts;
// ohne — Anmelden und Startbild — das des Haushalts dieser Box. Kai hat das so
// gewollt („Anmelden und Einrichten“): Wer die Adresse kennt, sieht Maike.
export async function GET() {
const session = await getSession();
const household = session?.householdId ?? (await currentKitchenDisplay())?.householdId;
const photo = household
? ((await withHousehold(household, async (c) => (await c.query("select dedication_photo as p from households")).rows[0]?.p)) as string | null)
: ((await publicDedication())?.photo ?? null);
if (!photo) return fail("notFound", 404);
const body = await readPhoto(photo).catch(() => null);
if (!body) return fail("notFound", 404);
return new Response(new Uint8Array(body), { headers: { "content-type": "image/webp", "cache-control": "public, max-age=31536000, immutable" } });
}
+5
View File
@@ -3,6 +3,7 @@ import { AuthShell } from "@/components/auth/auth-shell";
import { InviteForm } from "@/components/auth/invite-form";
import { findInvitation } from "@/lib/auth/invitations";
import { withAuth } from "@/lib/db";
import { photoVersion, publicDedication } from "@/lib/dedication";
export const dynamic = "force-dynamic";
// Der Link ist ein Geheimnis: nie als Referrer weitergeben.
@@ -14,8 +15,12 @@ export default async function InvitationPage({ params }: { params: Promise<{ tok
const invitation = token.length <= 100 ? await withAuth((client) => findInvitation(client, token)) : null;
if (!invitation) return <AuthShell title={t("expiredTitle")} intro={t("expiredText")} />;
const isDevice = Boolean(invitation.memberId);
// Wer neu dazukommt, sieht zuerst, wem die App gewidmet ist (26.11.35).
const d = await publicDedication();
const portrait = d?.photo ? { src: `/api/widmung/foto?v=${photoVersion(d.photo)}`, name: d.name ?? "Maike" } : null;
return (
<AuthShell
portrait={portrait}
title={t("title", { household: invitation.householdName })}
intro={isDevice ? t("introDevice", { name: invitation.memberName ?? "" }) : t("introPerson")}
>
+93
View File
@@ -0,0 +1,93 @@
Copyright 2014 The Caveat Project Authors (https://github.com/googlefonts/caveat)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
+93
View File
@@ -0,0 +1,93 @@
Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-ThinItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-ExtraLight.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-ExtraLightItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Light.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-LightItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Regular.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Italic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Medium.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-MediumItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-SemiBold.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-SemiBoldItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Bold.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-BoldItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-ExtraBold.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-ExtraBoldItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-Black.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins) Poppins-BlackItalic.ttf: Copyright 2020 The Poppins Project Authors (https://github.com/itfoundry/Poppins)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+5
View File
@@ -23,6 +23,7 @@
--ok: oklch(0.58 0.13 155); /* Ampel: im Rahmen */
--warn: oklch(0.75 0.15 75); /* Ampel: knapp darüber */
--over: oklch(0.58 0.19 25); /* Ampel: deutlich darüber */
--hero: oklch(0.5 0.08 150); /* foodplanhero: „hero“ im Logo, Maikes Ring (26.11.35) */
--radius: 1rem;
}
@@ -40,6 +41,7 @@
--secondary-foreground: var(--foreground);
--accent: oklch(0.84 0.07 300);
--ring: oklch(0.84 0.07 300);
--hero: oklch(0.78 0.09 150);
}
}
@@ -60,9 +62,12 @@
--color-ok: var(--ok);
--color-warn: var(--warn);
--color-over: var(--over);
--color-hero: var(--hero);
--radius-xl: var(--radius);
--font-sans: var(--font-geist-sans), ui-sans-serif, system-ui, sans-serif;
--font-serif: var(--font-newsreader), ui-serif, Georgia, serif;
--font-brand: var(--font-poppins), var(--font-geist-sans), ui-sans-serif, sans-serif;
--font-hand: var(--font-caveat), cursive;
}
/* Abstand fester Knopfleisten (Speichern, Übernehmen, Weiter) zur unteren Navigation.
+24 -2
View File
@@ -4,6 +4,7 @@ import localFont from "next/font/local";
import { NextIntlClientProvider } from "next-intl";
import { getLocale, getTranslations } from "next-intl/server";
import "./globals.css";
import { STARTUP_SIZES } from "@/lib/startup-sizes";
// Überschriften in einer Serifenschrift (E-0009), lokal aus app/fonts —
// nie vom CDN. Newsreader, SIL Open Font License (app/fonts/Newsreader-OFL.txt).
@@ -14,13 +15,34 @@ const serif = localFont({
display: "swap",
});
// foodplanhero (26.11.35): Logo und Slogan in Poppins, „by Maike“ in Caveat — beide
// SIL Open Font License (app/fonts/Poppins-OFL.txt, Caveat-OFL.txt), lokal.
const brand = localFont({
src: [
{ path: "./fonts/poppins-latin-500-normal.woff2", weight: "500" },
{ path: "./fonts/poppins-latin-700-normal.woff2", weight: "700" },
],
variable: "--font-poppins",
display: "swap",
});
const hand = localFont({ src: "./fonts/caveat-latin-400-normal.woff2", weight: "400", variable: "--font-caveat", display: "swap" });
export async function generateMetadata(): Promise<Metadata> {
const t = await getTranslations("app");
return {
title: t("name"),
description: t("tagline"),
applicationName: t("name"),
appleWebApp: { capable: true, title: t("name"), statusBarStyle: "default" },
appleWebApp: {
capable: true,
title: t("name"),
statusBarStyle: "default",
// Startbild mit Maike, solange die Web-App lädt (app/startbild, 26.11.35).
startupImage: STARTUP_SIZES.map(([w, h, cw, ch, dpr]) => ({
url: `/startbild/${w}x${h}`,
media: `(device-width: ${cw}px) and (device-height: ${ch}px) and (-webkit-device-pixel-ratio: ${dpr}) and (orientation: portrait)`,
})),
},
icons: { icon: "/icon.svg", apple: "/apple-touch-icon.png" },
};
}
@@ -38,7 +60,7 @@ export const viewport: Viewport = {
export default async function RootLayout({ children }: { children: React.ReactNode }) {
const locale = await getLocale();
return (
<html lang={locale} className={`${GeistSans.variable} ${serif.variable}`}>
<html lang={locale} className={`${GeistSans.variable} ${serif.variable} ${brand.variable} ${hand.variable}`}>
<body className="min-h-dvh antialiased">
<NextIntlClientProvider>{children}</NextIntlClientProvider>
</body>
+64
View File
@@ -0,0 +1,64 @@
import { readFile } from "node:fs/promises";
import path from "node:path";
import { ImageResponse } from "next/og";
import sharp from "sharp";
import { publicDedication } from "@/lib/dedication";
import { readPhoto } from "@/lib/photos";
import { STARTUP_SIZES } from "@/lib/startup-sizes";
export const dynamic = "force-dynamic";
// Startbild der Web-App (26.11.35): iOS zeigt es, solange die App vom
// Home-Bildschirm lädt — keine künstliche Pause. foodplanhero, „PLAN. COOK.
// SMILE.“ und, wenn hochgeladen, Maike im grünen Ring mit „by Maike“.
//
// Farben als Hex, weil der Bildbauer kein OKLCH kennt — umgerechnet aus den
// Token in app/globals.css (--background, --foreground, --hero).
const BG = "#fefdff";
const FG = "#1d1c23";
const HERO = "#3f704b";
const fonts = (async () => {
const dir = path.join(process.cwd(), "lib", "brand-fonts");
const [bold, medium, hand] = await Promise.all(
["poppins-latin-700-normal.woff", "poppins-latin-500-normal.woff", "caveat-latin-400-normal.woff"].map((f) => readFile(path.join(dir, f))),
);
return [
{ name: "Poppins", data: bold!, weight: 700 as const, style: "normal" as const },
{ name: "Poppins", data: medium!, weight: 500 as const, style: "normal" as const },
{ name: "Caveat", data: hand!, weight: 400 as const, style: "normal" as const },
];
})();
export async function GET(_: Request, { params }: { params: Promise<{ size: string }> }) {
const { size } = await params;
const match = STARTUP_SIZES.find(([w, h]) => size === `${w}x${h}`);
if (!match) return new Response("not found", { status: 404 });
const [width, height, , , dpr] = match;
const unit = dpr; // CSS-Pixel → Bildpixel
const d = await publicDedication().catch(() => null);
let photo: string | null = null;
if (d?.photo) {
const raw = await readPhoto(d.photo).catch(() => null);
if (raw) photo = `data:image/png;base64,${(await sharp(raw).resize(240 * unit, 240 * unit, { fit: "cover" }).png().toBuffer()).toString("base64")}`;
}
const name = d?.name ?? "Maike";
return new ImageResponse(
(
<div style={{ width, height, background: BG, display: "flex", flexDirection: "column", alignItems: "center", justifyContent: "center", gap: 18 * unit }}>
<div style={{ display: "flex", fontFamily: "Poppins", fontWeight: 700, fontSize: 44 * unit, color: FG, letterSpacing: -0.5 * unit }}>
foodplan<span style={{ color: HERO }}>hero</span>
</div>
<div style={{ display: "flex", fontFamily: "Poppins", fontWeight: 500, fontSize: 14 * unit, color: FG, letterSpacing: 3.5 * unit }}>PLAN. COOK. SMILE.</div>
{photo ? (
<div style={{ display: "flex", flexDirection: "column", alignItems: "center", marginTop: 28 * unit }}>
{/* eslint-disable-next-line @next/next/no-img-element -- Bildbauer, kein DOM */}
<img src={photo} width={180 * unit} height={180 * unit} style={{ borderRadius: 9999, border: `${6 * unit}px solid ${HERO}`, objectFit: "cover" }} alt="" />
<div style={{ display: "flex", fontFamily: "Caveat", fontSize: 40 * unit, color: FG, marginTop: -14 * unit, transform: "rotate(5.31deg)" }}>by {name}</div>
</div>
) : null}
</div>
),
{ width, height, fonts: await fonts, headers: { "cache-control": "public, max-age=3600" } },
);
}
+19 -4
View File
@@ -1,11 +1,26 @@
import Image from "next/image";
import { Portrait, Slogan, Wordmark } from "@/components/brand/brand";
// Rahmen für Einrichten, Anmelden und Einladung: Symbol, Titel, Text, Inhalt.
export function AuthShell({ title, intro, children }: { title: string; intro?: string; children?: React.ReactNode }) {
// Rahmen für Einrichten, Anmelden und Einladung: foodplanhero mit Slogan (seit
// 26.11.35 statt des Symbols), wo es eins gibt Maikes Porträt, dann Titel, Text, Inhalt.
export function AuthShell({
title,
intro,
portrait,
children,
}: {
title: string;
intro?: string;
portrait?: { src: string; name: string } | null;
children?: React.ReactNode;
}) {
return (
<main className="mx-auto flex min-h-dvh w-full max-w-sm flex-col justify-center gap-6 px-4 py-10">
<div className="flex flex-col items-center gap-4 text-center">
<Image src="/icon.svg" alt="" width={56} height={56} priority />
<p className="flex flex-col items-center gap-2">
<Wordmark className="text-4xl" />
<Slogan />
</p>
{portrait ? <Portrait src={portrait.src} name={portrait.name} size={120} className="my-2" /> : null}
<h1 className="text-4xl leading-tight">{title}</h1>
{intro ? <p className="text-muted-foreground">{intro}</p> : null}
</div>
+40
View File
@@ -0,0 +1,40 @@
import { cn } from "@/lib/utils";
// foodplanhero (Kai für Maike, 26.11.35): Wortmarke, Slogan und Maikes Porträt —
// wie in Kais Figma-Entwurf: Poppins Bold, „hero“ in Grün; „PLAN. COOK. SMILE.“ in
// Poppins Medium mit 25 % Abstand; „by Maike“ in Caveat, leicht gedreht.
export function Wordmark({ className }: { className?: string }) {
return (
<span className={cn("font-brand font-bold leading-none tracking-tight", className)}>
foodplan<span className="text-hero">hero</span>
</span>
);
}
export type SloganStep = "plan" | "cook" | "smile";
const WORDS: SloganStep[] = ["plan", "cook", "smile"];
/** „PLAN. COOK. SMILE.“ — mit active ist das Wort hervorgehoben, das gerade passiert. */
export function Slogan({ active, className }: { active?: SloganStep; className?: string }) {
return (
<span className={cn("font-brand text-xs font-medium uppercase tracking-[0.25em]", className)}>
{WORDS.map((w, i) => (
<span key={w} className={cn(active && w !== active && "text-muted-foreground", active === w && "text-hero")}>
{w}.{i < WORDS.length - 1 ? " " : ""}
</span>
))}
</span>
);
}
/** Maike im Kreis mit grünem Ring, darunter „by Maike“ in Schreibschrift. */
export function Portrait({ src, name, size = 128, className }: { src: string; name: string; size?: number; className?: string }) {
return (
<figure className={cn("relative mx-auto flex flex-col items-center", className)} style={{ width: size }}>
{/* eslint-disable-next-line @next/next/no-img-element -- eigenes Foto von der Box */}
<img src={src} alt={name} width={size} height={size} className="aspect-square w-full rounded-full border-4 border-hero object-cover" />
<figcaption className="-mt-4 rotate-[5.31deg] font-hand text-3xl leading-none text-foreground">by {name}</figcaption>
</figure>
);
}
+5 -1
View File
@@ -7,6 +7,7 @@ import { useRef, useState } from "react";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { cn } from "@/lib/utils";
import { Slogan } from "@/components/brand/brand";
type ToRate = { slotId: string; dishId: string; title: string; cookName: string | null; isCook: boolean; thanked: boolean };
@@ -43,7 +44,10 @@ export function RateCard({ item }: { item: ToRate }) {
return (
<article className="flex flex-col gap-3 rounded-2xl bg-muted p-5" aria-labelledby={`rate-${item.slotId}`}>
<p className="eyebrow">{t("eyebrow")}</p>
<p className="flex flex-wrap items-baseline justify-between gap-x-3 gap-y-1">
<span className="eyebrow">{t("eyebrow")}</span>
<Slogan active="smile" />
</p>
<h2 id={`rate-${item.slotId}`} className="text-2xl leading-snug">
{t("question", { title: item.title })}
</h2>
+108
View File
@@ -0,0 +1,108 @@
"use client";
import { ImagePlus } from "lucide-react";
import { useRouter } from "next/navigation";
import { useTranslations } from "next-intl";
import { useState } from "react";
import { Button } from "@/components/ui/button";
import { Input } from "@/components/ui/input";
import { Label } from "@/components/ui/label";
import { ErrorNotice } from "@/components/ui/notice";
// Widmung pflegen (nur Admin): Name, ein paar Sätze, ein Foto. Das Foto bleibt auf
// der Box (/app/data), nicht im Code (Kai, 7.11.2026).
export function DedicationForm({ name, text, hasPhoto }: { name: string; text: string; hasPhoto: boolean }) {
const t = useTranslations("more.dedication");
const router = useRouter();
const [busy, setBusy] = useState(false);
const [error, setError] = useState(false);
const [saved, setSaved] = useState(false);
const [file, setFile] = useState<string | null>(null);
async function send(form: FormData) {
setBusy(true);
setError(false);
setSaved(false);
const res = await fetch("/api/household/dedication", { method: "PUT", body: form }).catch(() => null);
setBusy(false);
if (!res?.ok) return setError(true);
setSaved(true);
setFile(null);
router.refresh();
}
return (
<form
className="flex flex-col gap-3 rounded-2xl border border-border p-4"
onSubmit={(e) => {
e.preventDefault();
void send(new FormData(e.currentTarget));
}}
>
<h3 className="font-semibold">{t("edit")}</h3>
<div className="flex flex-col gap-2">
<Label htmlFor="dedication-name">{t("name")}</Label>
<Input id="dedication-name" name="name" maxLength={40} defaultValue={name} placeholder="Maike" />
</div>
<div className="flex flex-col gap-2">
<Label htmlFor="dedication-text">{t("text")}</Label>
<textarea
id="dedication-text"
name="text"
maxLength={800}
rows={4}
defaultValue={text}
placeholder={t("textPlaceholder")}
className="rounded-xl border border-border bg-background px-3 py-2 text-base"
/>
</div>
<div className="flex flex-col gap-2">
{/* Eigener Knopf statt des Dateifelds: das zeigte die Beschriftung des Browsers („Choose File“). */}
<input
id="dedication-photo"
name="photo"
type="file"
accept="image/jpeg,image/png,image/webp,image/heic,image/heif"
className="peer sr-only"
onChange={(e) => setFile(e.target.files?.[0]?.name ?? null)}
/>
<Label
htmlFor="dedication-photo"
className="inline-flex min-h-11 cursor-pointer items-center gap-2 self-start rounded-full border border-border px-5 font-semibold peer-focus-visible:ring-2 peer-focus-visible:ring-ring"
>
<ImagePlus aria-hidden className="size-5" />
{hasPhoto ? t("newPhoto") : t("photo")}
</Label>
{file ? <p className="text-sm">{t("chosen", { name: file })}</p> : null}
<p className="text-sm text-muted-foreground">{t("photoHint")}</p>
</div>
{error ? <ErrorNotice>{t("error")}</ErrorNotice> : null}
{saved ? (
<p role="status" className="text-sm">
{t("saved")}
</p>
) : null}
<div className="flex flex-wrap gap-2">
<Button type="submit" disabled={busy}>
{t("save")}
</Button>
{hasPhoto ? (
<Button
type="button"
variant="ghost"
disabled={busy}
onClick={() => {
const form = new FormData();
form.set("name", name);
form.set("text", text);
form.set("removePhoto", "1");
void send(form);
}}
>
{t("removePhoto")}
</Button>
) : null}
</div>
</form>
);
}
+8
View File
@@ -0,0 +1,8 @@
-- foodplanhero by Maike (Kai, 7.11.2026, 26.11.35): Die App ist Maike gewidmet.
-- Je Haushalt ein Name, ein Foto (unter /app/data/fotos, nicht im Code) und ein
-- paar Sätze. Das Foto erscheint auf dem Startbild, beim Anmelden und unter
-- „Mehr“ › „Für Maike“. Ohne Foto bleibt alles wie vorher.
alter table households add column dedication_name text check (dedication_name is null or length(trim(dedication_name)) between 1 and 40);
alter table households add column dedication_text text check (dedication_text is null or length(dedication_text) <= 800);
alter table households add column dedication_photo text;
+16
View File
@@ -229,3 +229,19 @@ und wer sich verzockt, steht leer da. Entschieden:
kommen. Ein Veto ohne Publikum lohnt sich zum Ärgern nicht.
Jetons und Veto bleiben für alles andere.
## E-0013 · foodplanhero, Maike gewidmet
*7.11.2026 · Kai*
Die App ist eine Danksagung an Maike. Sie heißt in der Oberfläche **foodplanhero** mit dem
Slogan **„Plan. Cook. Smile.“** (Kais früherer Entwurf); technisch bleibt sie `lunch`.
- **Startbild ja, Wartezeit nein:** Maike erscheint auf dem iOS-Startbild, solange die
Web-App lädt. Eine künstliche Pause wie bei Airbnb gibt es nicht — die App öffnet man
vor dem Herd und im Laden mehrmals am Tag.
- **Maike** zusätzlich beim Anmelden, bei der Einladung und unter „Mehr“ › „Für Maike“
mit Kais Worten. Das Foto lädt ein Admin auf der Box hoch; es liegt nie im Repo.
- **Slogan im Ablauf:** leise, mit dem Wort, das gerade passiert (Plan, Kochen, Bewerten).
- **Gestaltung bleibt** (E-0009): Coral und Lavendel; neu ist nur das Grün von „hero“ als
Token `--hero`, das auch Maikes Ring trägt.
+3 -3
View File
@@ -68,13 +68,13 @@ test("an admin invites a member by a single-use link", async ({ browser }) => {
await maike.page.getByRole("button", { name: "Passkey anlegen" }).click();
await expect(maike.page).toHaveURL(/\/$/);
// Neue Person: einmal „So funktioniert Lunch“, danach „Wo stehen wir?“.
await expect(maike.page.getByText("So funktioniert Lunch · 1 von 3")).toBeVisible();
await expect(maike.page.getByText("So funktioniert foodplanhero · 1 von 3")).toBeVisible();
await maike.page.getByRole("button", { name: "Weiter" }).click();
await maike.page.getByRole("button", { name: "Weiter" }).click();
await maike.page.getByRole("button", { name: "Los geht's" }).click();
await expect(maike.page.getByText(/So funktioniert Lunch/)).toHaveCount(0);
await expect(maike.page.getByText(/So funktioniert foodplanhero/)).toHaveCount(0);
await maike.page.reload();
await expect(maike.page.getByText(/So funktioniert Lunch/)).toHaveCount(0);
await expect(maike.page.getByText(/So funktioniert foodplanhero/)).toHaveCount(0);
await expect(maike.page.getByText("Eine neue Runde eröffnen.")).toBeVisible(); // Mitglieder dürfen eröffnen
await maike.page.goto("/mehr");
await expect(maike.page.locator("#invite-name")).toHaveCount(0);
+1 -1
View File
@@ -145,7 +145,7 @@ test.describe("receipts", () => {
// Preis je 100 g, so wie Lunch ihn sich merkt; ohne Packung eine Warnung.
await expect(pasta.getByTestId("unit-price")).toHaveText("= 0,36 € je 100 g");
await pasta.getByLabel("Packung in g").fill("");
await expect(pasta).toContainText("Ohne Packungsgröße merkt sich Lunch keinen Preis.");
await expect(pasta).toContainText("Ohne Packungsgröße merkt sich foodplanhero keinen Preis.");
await pasta.getByLabel("Packung in g").fill("500");
// Klopapier gehört zu keinem Gericht: nach links wischen (26.11.33).
+2 -2
View File
@@ -289,7 +289,7 @@ test.describe("cookbook photo and AI setting", () => {
test("without an image model the photo page says how to set it up", async ({ page }) => {
await page.goto("/gerichte/hinzufuegen");
await page.getByRole("link", { name: /Kochbuch fotografieren/ }).click();
await expect(page.getByText("braucht Lunch ein Bildmodell")).toBeVisible();
await expect(page.getByText("braucht foodplanhero ein Bildmodell")).toBeVisible();
await page.getByRole("link", { name: "AI einrichten" }).click();
await expect(page).toHaveURL(/\/mehr\/ki$/);
});
@@ -322,7 +322,7 @@ test.describe("cookbook photo and AI setting", () => {
await page.getByRole("button", { name: "Rezept lesen" }).click();
await expect(page.locator("#title")).toHaveValue("Kartoffelsalat aus dem Kochbuch");
await expect(page.getByRole("note").first()).toContainText("Von der AI gelesen");
await expect(page.getByRole("note").filter({ hasText: "Von der AI in die Lunch-Form gebracht" })).toBeVisible();
await expect(page.getByRole("note").filter({ hasText: "Von der AI in die foodplanhero-Form gebracht" })).toBeVisible();
await expect(page.getByLabel("Schritt 1", { exact: true })).toHaveValue("Kartoffeln waschen.");
await expect(page.getByLabel("Abschnitt von Schritt 3")).toHaveValue("serve");
await fillMissingAmounts(page);
+43 -5
View File
@@ -8,7 +8,7 @@ test("the manifest names the app and offers shortcuts", async ({ request }) => {
const res = await request.get("/manifest.webmanifest");
expect(res.ok()).toBe(true);
const m = await res.json();
expect(m).toMatchObject({ name: "Was gibt's?", display: "standalone", start_url: "/", id: "/" });
expect(m).toMatchObject({ name: "foodplanhero", display: "standalone", start_url: "/", id: "/" });
expect(m.shortcuts.map((s: { url: string }) => s.url)).toEqual(["/wuenschen", "/plan", "/einkauf"]);
expect(m.icons.some((i: { purpose?: string }) => i.purpose === "maskable")).toBe(true);
});
@@ -30,16 +30,16 @@ test("offline: the shopping list opened before still works, other pages explain"
await context.setOffline(false);
});
test("Today offers to put Lunch on the home screen, and the hint can be hidden", async ({ page }) => {
test("Today offers to put foodplanhero on the home screen, and the hint can be hidden", async ({ page }) => {
await page.goto("/");
const hint = page.getByRole("complementary", { name: "Lunch auf den Home-Bildschirm" });
const hint = page.getByRole("complementary", { name: "foodplanhero auf den Home-Bildschirm" });
await expect(hint).toContainText("Zum Home-Bildschirm");
await hint.getByRole("button", { name: "Hinweis ausblenden" }).click();
await expect(hint).toHaveCount(0);
await page.reload();
await expect(page.getByRole("complementary", { name: "Lunch auf den Home-Bildschirm" })).toHaveCount(0);
await expect(page.getByRole("complementary", { name: "foodplanhero auf den Home-Bildschirm" })).toHaveCount(0);
await page.goto("/mehr");
await expect(page.getByRole("complementary", { name: "Lunch auf den Home-Bildschirm" })).toBeVisible(); // unter „Mehr“ bleibt er
await expect(page.getByRole("complementary", { name: "foodplanhero auf den Home-Bildschirm" })).toBeVisible(); // unter „Mehr“ bleibt er
});
test("the bottom bar steps aside while typing and comes back at the bottom", async ({ page }) => {
@@ -76,3 +76,41 @@ test("buttons pinned to the bottom sit on the keyboard while typing, above the b
const navTop = Math.round((await nav.boundingBox())!.y);
await expect.poll(bottomOf).toBeLessThanOrEqual(navTop);
});
// foodplanhero by Maike (26.11.35): Kai lädt Maikes Foto unter „Mehr“ hoch. Es
// erscheint dort, beim Anmelden und auf dem Startbild der Web-App.
test("the app is dedicated to Maike: photo, words, sign-in and start image", async ({ page, browser, request }) => {
const { default: sharp } = await import("sharp");
const jpg = await sharp({ create: { width: 800, height: 800, channels: 3, background: { r: 120, g: 160, b: 200 } } }).jpeg().toBuffer();
await page.goto("/mehr");
const section = page.locator("#widmung");
await expect(section.getByRole("heading", { name: "Für Maike" })).toBeVisible();
await section.getByLabel("Name").fill("Maike");
await section.getByLabel("Ein paar Sätze").fill("Für Maike, die jeden Tag an alles denkt.");
await section.getByLabel("Foto wählen").setInputFiles({ name: "maike.jpg", mimeType: "image/jpeg", buffer: jpg });
await expect(section).toContainText("Gewählt: maike.jpg");
await section.getByRole("button", { name: "Speichern" }).click();
await expect(section.getByRole("status")).toHaveText("Gespeichert.");
await expect(section.getByRole("img", { name: "Maike" })).toBeVisible();
await expect(section).toContainText("by Maike");
await expect(section).toContainText("Für Maike, die jeden Tag an alles denkt.");
// Beim Anmelden, ohne Sitzung.
const context = await browser.newContext({ ...test.info().project.use, storageState: undefined });
const signIn = await context.newPage();
await signIn.goto("/anmelden");
await expect(signIn.getByText("foodplanhero").first()).toBeVisible();
await expect(signIn.getByText(/plan\. cook\. smile\./i)).toBeVisible();
await expect(signIn.getByRole("img", { name: "Maike" })).toBeVisible();
await context.close();
// Startbild für das iPhone 15: ein PNG in Bildschirmgröße; unbekannte Größen gibt es nicht.
const image = await request.get("/startbild/1179x2556");
expect(image.headers()["content-type"]).toBe("image/png");
const meta = await sharp(Buffer.from(await image.body())).metadata();
expect([meta.width, meta.height]).toEqual([1179, 2556]);
expect((await request.get("/startbild/100x100")).status()).toBe(404);
const html = await (await request.get("/anmelden")).text();
expect(html).toContain('rel="apple-touch-startup-image"');
expect(html).toContain("/startbild/1179x2556");
});
Binary file not shown.
Binary file not shown.
Binary file not shown.
+32
View File
@@ -0,0 +1,32 @@
import "server-only";
import type { PoolClient } from "pg";
import { withAuth } from "./db";
// Widmung (26.11.35): „foodplanhero by Maike“. Name, Foto und Text je Haushalt;
// das Foto liegt wie die Gerichtsfotos unter /app/data/fotos/<haushalt>/.
export type Dedication = { name: string | null; text: string | null; photo: string | null };
export async function getDedication(client: PoolClient): Promise<Dedication> {
const { rows } = await client.query(
`select dedication_name as name, dedication_text as text, dedication_photo as photo from households limit 1`,
);
return rows[0] ?? { name: null, text: null, photo: null };
}
/**
* Vor der Anmeldung (Anmelden, Startbild) kennt die App keinen Haushalt. Auf einer
* Box gibt es in aller Regel genau einen; gezeigt wird der älteste.
*/
export async function publicDedication(): Promise<(Dedication & { householdId: string }) | null> {
return withAuth(async (c) => {
const { rows } = await c.query(
`select id as "householdId", dedication_name as name, dedication_text as text, dedication_photo as photo
from households order by created_at limit 1`,
);
return rows[0] ?? null;
});
}
/** Version des Fotos für die Adresse (?v=…), aus der Prüfsumme im Dateinamen. */
export const photoVersion = (photo: string | null) => photo?.split("-").at(-1)?.replace(".webp", "") ?? "";
+15
View File
@@ -0,0 +1,15 @@
// Startbilder der Web-App (26.11.35): je iPhone-Bildschirm ein Bild, sonst zeigt iOS keins.
/** Die Bildschirme, für die iOS ein Startbild will (Pixel hochkant, CSS-Breite, -Höhe, Dichte). */
export const STARTUP_SIZES: [number, number, number, number, number][] = [
[1320, 2868, 440, 956, 3],
[1290, 2796, 430, 932, 3],
[1206, 2622, 402, 874, 3],
[1179, 2556, 393, 852, 3],
[1284, 2778, 428, 926, 3],
[1170, 2532, 390, 844, 3],
[1125, 2436, 375, 812, 3],
[1242, 2688, 414, 896, 3],
[828, 1792, 414, 896, 2],
[750, 1334, 375, 667, 2],
];
+36 -21
View File
@@ -1,6 +1,6 @@
{
"app": {
"name": "Was gibt's?",
"name": "foodplanhero",
"tagline": "Gemeinsam entscheiden, was es gibt — die Einkaufsliste entsteht von selbst."
},
"today": {
@@ -130,7 +130,7 @@
},
"ai": {
"title": "AI",
"intro": "Lunch fragt ein Sprachmodell auf deiner Box. Nichts geht in eine Cloud, die du hier nicht selbst einträgst.",
"intro": "foodplanhero fragt ein Sprachmodell auf deiner Box. Nichts geht in eine Cloud, die du hier nicht selbst einträgst.",
"ready": "Eingerichtet",
"notReady": "Nicht eingerichtet",
"summary": "Für Kochbuchfotos und Rezeptseiten ohne Rezeptdaten.",
@@ -158,7 +158,7 @@
"key": "Der Schlüssel wurde abgelehnt.",
"status": "Der Dienst hat mit einem Fehler geantwortet.",
"aiNotConfigured": "Bitte zuerst speichern.",
"login": "Statt des Dienstes hat eine Anmeldeseite geantwortet. Lunch braucht die Adresse für „Apps in Olares“."
"login": "Statt des Dienstes hat eine Anmeldeseite geantwortet. foodplanhero braucht die Adresse für „Apps in Olares“."
},
"routerUse": "Olares Router verwenden",
"routerChecking": "Prüft den Router …",
@@ -167,9 +167,9 @@
"sourceRouter": "Olares Router",
"sourceManual": "Eigener Endpunkt",
"routerFound": "Router erkannt · Modell: {model}",
"routerManages": "Endpunkt, Modell und Schlüssel verwaltet der Router. Lunch nimmt das Standardmodell für Text und Fotos.",
"routerManages": "Endpunkt, Modell und Schlüssel verwaltet der Router. foodplanhero nimmt das Standardmodell für Text und Fotos.",
"routerAddress": "Router-Adresse",
"noRouter": "Lunch läuft nicht unter einer Olares-Adresse, deshalb gibt es keinen Router. Trag einen eigenen Endpunkt ein.",
"noRouter": "foodplanhero läuft nicht unter einer Olares-Adresse, deshalb gibt es keinen Router. Trag einen eigenen Endpunkt ein.",
"speechModel": "Sprachmodell (Sprache zu Text)",
"speechHint": "Für „Gericht einsprechen“, etwa ein Whisper. Optional."
},
@@ -234,6 +234,21 @@
"devicePending": "Link offen, noch nicht freigeschaltet",
"removeDevice": "{label} entfernen",
"remove": "Entfernen"
},
"dedication": {
"title": "Für {name}",
"edit": "Widmung bearbeiten",
"name": "Name",
"text": "Ein paar Sätze",
"textPlaceholder": "Warum es diese App gibt …",
"photo": "Foto wählen",
"newPhoto": "Neues Foto wählen",
"photoHint": "Das Foto bleibt auf eurer Box. Es erscheint beim Öffnen der App, beim Anmelden und hier.",
"save": "Speichern",
"removePhoto": "Foto entfernen",
"saved": "Gespeichert.",
"error": "Das hat nicht geklappt. Nimm ein JPEG, PNG oder HEIC bis 15 MB.",
"chosen": "Gewählt: {name}"
}
},
"nav": {
@@ -361,8 +376,8 @@
"unmatched": "Diese Zeilen konnten wir keiner Zutat zuordnen. Füge sie bei Bedarf selbst hinzu:",
"byAi": "Von der AI gelesen. Prüf jede Zutat und Menge, bevor du speicherst.",
"restyle": "Einheitlich formulieren",
"restyleHint": "Bringt die Schritte in die Lunch-Form: Vorbereiten, Kochen, Anrichten; eine Handlung je Schritt, Zeiten als Timer. Du prüfst und speicherst.",
"styledByAi": "Von der AI in die Lunch-Form gebracht. Zeiten und Temperaturen stammen aus dem Rezept — bitte kurz prüfen.",
"restyleHint": "Bringt die Schritte in die foodplanhero-Form: Vorbereiten, Kochen, Anrichten; eine Handlung je Schritt, Zeiten als Timer. Du prüfst und speicherst.",
"styledByAi": "Von der AI in die foodplanhero-Form gebracht. Zeiten und Temperaturen stammen aus dem Rezept — bitte kurz prüfen.",
"styledByRules": "Nach Regeln in Abschnitte eingeordnet, Wortlaut unverändert. Mit eingerichteter AI werden die Schritte auch umformuliert.",
"styleFailed": "Das hat nicht geklappt. Die Schritte sind unverändert.",
"section": "Abschnitt von Schritt {n}",
@@ -399,7 +414,7 @@
"read": "Rezept lesen",
"reading": "Die AI liest …",
"readingHint": "Das kann eine Minute dauern.",
"notConfigured": "Für Fotos braucht Lunch ein Bildmodell. Das richtet ein Admin unter „Mehr“ ein.",
"notConfigured": "Für Fotos braucht foodplanhero ein Bildmodell. Das richtet ein Admin unter „Mehr“ ein.",
"setUp": "AI einrichten",
"askAdmin": "Bitte frag einen Admin im Haushalt.",
"errors": {
@@ -430,23 +445,23 @@
"error": "Das hat nicht geklappt."
},
"addVoice": "Einsprechen",
"addVoiceText": "Ein Lieblingsgericht frei erzählen — Lunch macht ein Rezept daraus.",
"addVoiceText": "Ein Lieblingsgericht frei erzählen — foodplanhero macht ein Rezept daraus.",
"voice": {
"title": "Gericht einsprechen",
"intro": "Erzähl einfach: wie viele Portionen, was reinkommt, wie es geht. Lunch schreibt mit und macht einen Entwurf, den du prüfst.",
"intro": "Erzähl einfach: wie viele Portionen, was reinkommt, wie es geht. foodplanhero schreibt mit und macht einen Entwurf, den du prüfst.",
"record": "Aufnahme starten",
"stop": "Aufnahme beenden",
"recording": "Nimmt auf … {time}",
"recordHint": "Tippen und erzählen. Du kannst mehrmals aufnehmen.",
"transcribing": "Schreibt mit …",
"noSpeech": "Für Aufnahmen braucht Lunch ein Sprachmodell (beim Olares Router dabei). Du kannst aber unten mit der Diktierfunktion deines Handys sprechen.",
"noSpeech": "Für Aufnahmen braucht foodplanhero ein Sprachmodell (beim Olares Router dabei). Du kannst aber unten mit der Diktierfunktion deines Handys sprechen.",
"text": "Was du erzählt hast",
"placeholder": "z. B. Bolognese für vier: 500 Gramm Hackfleisch, eine Zwiebel …",
"textHint": "Hier kannst du korrigieren, ergänzen oder mit dem Mikrofon der Tastatur diktieren.",
"draft": "Rezept daraus machen",
"drafting": "Macht ein Rezept daraus …",
"check": "Bitte prüf den Entwurf. Mengen stehen nur da, wo du sie gesagt hast.",
"noAi": "Dafür braucht Lunch ein Sprachmodell. Ein Admin richtet es unter Mehr › AI ein.",
"noAi": "Dafür braucht foodplanhero ein Sprachmodell. Ein Admin richtet es unter Mehr › AI ein.",
"errors": {
"mic": "Das Mikrofon ist nicht freigegeben. Erlaube es in den Einstellungen oder nutz das Textfeld.",
"noSpeech": "Kein Sprachmodell eingerichtet. Nutz das Textfeld.",
@@ -694,8 +709,8 @@
}
},
"install": {
"title": "Lunch auf den Home-Bildschirm",
"ios": "In Safari auf das Teilen-Symbol tippen, dann „Zum Home-Bildschirm“. Danach öffnet sich Lunch wie eine App.",
"title": "foodplanhero auf den Home-Bildschirm",
"ios": "In Safari auf das Teilen-Symbol tippen, dann „Zum Home-Bildschirm“. Danach öffnet sich foodplanhero wie eine App.",
"install": "App installieren",
"dismiss": "Hinweis ausblenden"
},
@@ -768,8 +783,8 @@
"receipts": {
"eyebrow": "Einkauf",
"title": "Kassenbons",
"intro": "Bon fotografieren, weiter einkaufen. Lunch liest ihn auf der Box und merkt sich die Preise, sobald du bestätigst. Das Foto wird danach gelöscht.",
"noAi": "Zum Lesen braucht Lunch ein Bildmodell (beim Olares Router dabei). Bons warten so lange.",
"intro": "Bon fotografieren, weiter einkaufen. foodplanhero liest ihn auf der Box und merkt sich die Preise, sobald du bestätigst. Das Foto wird danach gelöscht.",
"noAi": "Zum Lesen braucht foodplanhero ein Bildmodell (beim Olares Router dabei). Bons warten so lange.",
"scan": "Bon fotografieren",
"uploading": "Lädt hoch …",
"uploadError": "Das Foto ließ sich nicht lesen. Nimm ein JPEG, PNG oder HEIC bis 15 MB.",
@@ -822,7 +837,7 @@
"assignLine": "{text} doch einer Zutat zuordnen",
"noIngredient": "Keine Zutat erkannt",
"forCooking": "Zum Kochen",
"swipeHint": "Was nicht zum Kochen gehört, nach links wischen — Lunch merkt es sich für den nächsten Bon.",
"swipeHint": "Was nicht zum Kochen gehört, nach links wischen — foodplanhero merkt es sich für den nächsten Bon.",
"packEach": "Packung je Stück in {unit}",
"perPrice": "= {price} {per}",
"perDetail": "{amount} {unit} für {total}",
@@ -831,7 +846,7 @@
"100ml": "je 100 ml",
"piece": "je Stück"
},
"noPackWarning": "Ohne Packungsgröße merkt sich Lunch keinen Preis.",
"noPackWarning": "Ohne Packungsgröße merkt sich foodplanhero keinen Preis.",
"weighedHint": "Gewogen: 1000 heißt, der Preis gilt je kg wie auf dem Bon."
},
"setup": {
@@ -842,7 +857,7 @@
"laterSr": "später:",
"skipped": "übersprungen",
"hide": "Liste ausblenden",
"finishedTitle": "Fertig – Lunch läuft",
"finishedTitle": "Fertig – foodplanhero läuft",
"finishedText": "Gerichte, Laden, Familie und die erste Runde stehen. Ab jetzt zeigt dir „Wo stehen wir?“, was dran ist.",
"finishedOk": "Alles klar",
"dishes": {
@@ -863,7 +878,7 @@
"title": "Hol die Familie dazu",
"text": "Erwachsene und Jugendliche per Link aufs eigene Handy, Kinder mit Bild und PIN auf einem Tablet.",
"cta": "Einladen",
"skip": "Ich nutze Lunch erst mal allein"
"skip": "Ich nutze foodplanhero erst mal allein"
},
"round": {
"short": "Erste Runde",
@@ -910,7 +925,7 @@
},
"intro": {
"roledesc": "Einführung",
"eyebrow": "So funktioniert Lunch · {n} von {of}",
"eyebrow": "So funktioniert foodplanhero · {n} von {of}",
"next": "Weiter",
"skip": "Überspringen",
"done": "Los geht's",
+32 -17
View File
@@ -1,6 +1,6 @@
{
"app": {
"name": "What's cooking?",
"name": "foodplanhero",
"tagline": "Decide together what's for dinner — the shopping list writes itself."
},
"today": {
@@ -130,7 +130,7 @@
},
"ai": {
"title": "AI",
"intro": "Lunch asks a language model on your box. Nothing goes to a cloud you don't enter here yourself.",
"intro": "foodplanhero asks a language model on your box. Nothing goes to a cloud you don't enter here yourself.",
"ready": "Set up",
"notReady": "Not set up",
"summary": "For cookbook photos and recipe pages without recipe data.",
@@ -158,7 +158,7 @@
"key": "The key was refused.",
"status": "The service answered with an error.",
"aiNotConfigured": "Please save first.",
"login": "A sign-in page answered instead of the service. Lunch needs the address for “Apps in Olares”."
"login": "A sign-in page answered instead of the service. foodplanhero needs the address for “Apps in Olares”."
},
"routerUse": "Use the Olares Router",
"routerChecking": "Checking the Router …",
@@ -167,9 +167,9 @@
"sourceRouter": "Olares Router",
"sourceManual": "Custom endpoint",
"routerFound": "Router found · model: {model}",
"routerManages": "The Router manages endpoint, model and key. Lunch uses the default model for text and photos.",
"routerManages": "The Router manages endpoint, model and key. foodplanhero uses the default model for text and photos.",
"routerAddress": "Router address",
"noRouter": "Lunch isn't running under an Olares address, so there is no Router. Enter a custom endpoint.",
"noRouter": "foodplanhero isn't running under an Olares address, so there is no Router. Enter a custom endpoint.",
"speechModel": "Speech model (speech to text)",
"speechHint": "For \"Speak a dish\", e.g. a Whisper. Optional."
},
@@ -234,6 +234,21 @@
"devicePending": "Link open, not yet unlocked",
"removeDevice": "Remove {label}",
"remove": "Remove"
},
"dedication": {
"title": "For {name}",
"edit": "Edit dedication",
"name": "Name",
"text": "A few sentences",
"textPlaceholder": "Why this app exists …",
"photo": "Choose photo",
"newPhoto": "Choose new photo",
"photoHint": "The photo stays on your box. It appears when the app opens, at sign-in and here.",
"save": "Save",
"removePhoto": "Remove photo",
"saved": "Saved.",
"error": "That did not work. Use a JPEG, PNG or HEIC up to 15 MB.",
"chosen": "Chosen: {name}"
}
},
"nav": {
@@ -361,8 +376,8 @@
"unmatched": "We could not match these lines to an ingredient. Add them yourself if needed:",
"byAi": "Read by the AI. Check every ingredient and amount before you save.",
"restyle": "Put into house style",
"restyleHint": "Brings the steps into the Lunch form: prepare, cook, serve; one action per step, times as timers. You check and save.",
"styledByAi": "Put into the Lunch form by the AI. Times and temperatures come from the recipe — please check briefly.",
"restyleHint": "Brings the steps into the foodplanhero form: prepare, cook, serve; one action per step, times as timers. You check and save.",
"styledByAi": "Put into the foodplanhero form by the AI. Times and temperatures come from the recipe — please check briefly.",
"styledByRules": "Sorted into sections by rules, wording unchanged. With an AI set up, the steps are rewritten too.",
"styleFailed": "That didn't work. The steps are unchanged.",
"section": "Section of step {n}",
@@ -430,10 +445,10 @@
"error": "That didn't work."
},
"addVoice": "Speak it",
"addVoiceText": "Tell a favourite dish in your own words — Lunch turns it into a recipe.",
"addVoiceText": "Tell a favourite dish in your own words — foodplanhero turns it into a recipe.",
"voice": {
"title": "Speak a dish",
"intro": "Just talk: how many portions, what goes in, how it's done. Lunch writes along and makes a draft for you to check.",
"intro": "Just talk: how many portions, what goes in, how it's done. foodplanhero writes along and makes a draft for you to check.",
"record": "Start recording",
"stop": "Stop recording",
"recording": "Recording … {time}",
@@ -694,8 +709,8 @@
}
},
"install": {
"title": "Put Lunch on your home screen",
"ios": "In Safari, tap the share icon, then “Add to Home Screen”. Lunch then opens like an app.",
"title": "Put foodplanhero on your home screen",
"ios": "In Safari, tap the share icon, then “Add to Home Screen”. foodplanhero then opens like an app.",
"install": "Install app",
"dismiss": "Hide hint"
},
@@ -768,7 +783,7 @@
"receipts": {
"eyebrow": "Shopping",
"title": "Receipts",
"intro": "Snap the receipt and carry on. Lunch reads it on your box and remembers the prices once you confirm. The photo is deleted afterwards.",
"intro": "Snap the receipt and carry on. foodplanhero reads it on your box and remembers the prices once you confirm. The photo is deleted afterwards.",
"noAi": "Reading needs an image model (included with the Olares Router). Receipts wait until then.",
"scan": "Photograph receipt",
"uploading": "Uploading …",
@@ -822,7 +837,7 @@
"assignLine": "Assign {text} to an ingredient after all",
"noIngredient": "No ingredient recognised",
"forCooking": "For cooking",
"swipeHint": "Swipe left what is not for cooking — Lunch remembers it for the next receipt.",
"swipeHint": "Swipe left what is not for cooking — foodplanhero remembers it for the next receipt.",
"packEach": "Pack per item in {unit}",
"perPrice": "= {price} {per}",
"perDetail": "{amount} {unit} for {total}",
@@ -831,7 +846,7 @@
"100ml": "per 100 ml",
"piece": "per item"
},
"noPackWarning": "Without a pack size Lunch keeps no price.",
"noPackWarning": "Without a pack size foodplanhero keeps no price.",
"weighedHint": "Weighed: 1000 means the price is per kg as on the receipt."
},
"setup": {
@@ -842,7 +857,7 @@
"laterSr": "later:",
"skipped": "skipped",
"hide": "Hide list",
"finishedTitle": "Done – Lunch is running",
"finishedTitle": "Done – foodplanhero is running",
"finishedText": "Dishes, store, family and the first round are set. From now on, “Where are we?” shows what's next.",
"finishedOk": "Got it",
"dishes": {
@@ -863,7 +878,7 @@
"title": "Bring the family in",
"text": "Adults and teens via a link on their own phone, children with picture and PIN on a tablet.",
"cta": "Invite",
"skip": "I'll use Lunch on my own for now"
"skip": "I'll use foodplanhero on my own for now"
},
"round": {
"short": "First round",
@@ -910,7 +925,7 @@
},
"intro": {
"roledesc": "Introduction",
"eyebrow": "How Lunch works · {n} of {of}",
"eyebrow": "How foodplanhero works · {n} of {of}",
"next": "Next",
"skip": "Skip",
"done": "Let's go",
+32 -17
View File
@@ -1,6 +1,6 @@
{
"app": {
"name": "¿Qué comemos?",
"name": "foodplanhero",
"tagline": "Decide together what's for dinner — the shopping list writes itself."
},
"today": {
@@ -130,7 +130,7 @@
},
"ai": {
"title": "AI",
"intro": "Lunch consulta un modelo de lenguaje en tu box. Nada va a una nube que no hayas puesto aquí tú.",
"intro": "foodplanhero consulta un modelo de lenguaje en tu box. Nada va a una nube que no hayas puesto aquí tú.",
"ready": "Set up",
"notReady": "Not set up",
"summary": "For cookbook photos and recipe pages without recipe data.",
@@ -158,7 +158,7 @@
"key": "The key was refused.",
"status": "The service answered with an error.",
"aiNotConfigured": "Please save first.",
"login": "A sign-in page answered instead of the service. Lunch needs the address for “Apps in Olares”."
"login": "A sign-in page answered instead of the service. foodplanhero needs the address for “Apps in Olares”."
},
"routerUse": "Usar el Router de Olares",
"routerChecking": "Comprobando el Router …",
@@ -167,9 +167,9 @@
"sourceRouter": "Olares Router",
"sourceManual": "Endpoint propio",
"routerFound": "Router detectado · modelo: {model}",
"routerManages": "El Router gestiona dirección, modelo y clave. Lunch usa el modelo predeterminado para texto y fotos.",
"routerManages": "El Router gestiona dirección, modelo y clave. foodplanhero usa el modelo predeterminado para texto y fotos.",
"routerAddress": "Dirección del Router",
"noRouter": "Lunch no funciona bajo una dirección de Olares, así que no hay Router. Pon un endpoint propio.",
"noRouter": "foodplanhero no funciona bajo una dirección de Olares, así que no hay Router. Pon un endpoint propio.",
"speechModel": "Modelo de voz (voz a texto)",
"speechHint": "Para «Dictar un plato», p. ej. un Whisper. Opcional."
},
@@ -234,6 +234,21 @@
"devicePending": "Link open, not yet unlocked",
"removeDevice": "Remove {label}",
"remove": "Remove"
},
"dedication": {
"title": "For {name}",
"edit": "Edit dedication",
"name": "Name",
"text": "A few sentences",
"textPlaceholder": "Why this app exists …",
"photo": "Choose photo",
"newPhoto": "Choose new photo",
"photoHint": "The photo stays on your box. It appears when the app opens, at sign-in and here.",
"save": "Save",
"removePhoto": "Remove photo",
"saved": "Saved.",
"error": "That did not work. Use a JPEG, PNG or HEIC up to 15 MB.",
"chosen": "Chosen: {name}"
}
},
"nav": {
@@ -361,8 +376,8 @@
"unmatched": "No pudimos asignar estas líneas a un ingrediente. Añádelas tú si hace falta:",
"byAi": "Read by the AI. Check every ingredient and amount before you save.",
"restyle": "Unificar formato",
"restyleHint": "Pone los pasos en la forma de Lunch: preparar, cocinar, servir; una acción por paso, tiempos como temporizadores. Tú revisas y guardas.",
"styledByAi": "Puesto en la forma de Lunch por la AI. Tiempos y temperaturas vienen de la receta — revísalo un momento.",
"restyleHint": "Pone los pasos en la forma de foodplanhero: preparar, cocinar, servir; una acción por paso, tiempos como temporizadores. Tú revisas y guardas.",
"styledByAi": "Puesto en la forma de foodplanhero por la AI. Tiempos y temperaturas vienen de la receta — revísalo un momento.",
"styledByRules": "Ordenado en secciones por reglas, texto sin cambios. Con una AI configurada, los pasos también se reformulan.",
"styleFailed": "No ha funcionado. Los pasos no han cambiado.",
"section": "Sección del paso {n}",
@@ -430,10 +445,10 @@
"error": "No ha funcionado."
},
"addVoice": "Dictar",
"addVoiceText": "Cuenta un plato favorito — Lunch lo convierte en receta.",
"addVoiceText": "Cuenta un plato favorito — foodplanhero lo convierte en receta.",
"voice": {
"title": "Dictar un plato",
"intro": "Cuéntalo sin más: cuántas raciones, qué lleva, cómo se hace. Lunch lo anota y prepara un borrador para revisar.",
"intro": "Cuéntalo sin más: cuántas raciones, qué lleva, cómo se hace. foodplanhero lo anota y prepara un borrador para revisar.",
"record": "Empezar a grabar",
"stop": "Parar la grabación",
"recording": "Grabando … {time}",
@@ -694,8 +709,8 @@
}
},
"install": {
"title": "Put Lunch on your home screen",
"ios": "In Safari, tap the share icon, then “Add to Home Screen”. Lunch then opens like an app.",
"title": "Put foodplanhero on your home screen",
"ios": "In Safari, tap the share icon, then “Add to Home Screen”. foodplanhero then opens like an app.",
"install": "Install app",
"dismiss": "Hide hint"
},
@@ -768,7 +783,7 @@
"receipts": {
"eyebrow": "Compra",
"title": "Tickets",
"intro": "Fotografía el ticket y sigue. Lunch lo lee en tu box y recuerda los precios cuando confirmas. Después se borra la foto.",
"intro": "Fotografía el ticket y sigue. foodplanhero lo lee en tu box y recuerda los precios cuando confirmas. Después se borra la foto.",
"noAi": "Para leer hace falta un modelo de imagen (incluido en el Router de Olares). Los tickets esperan hasta entonces.",
"scan": "Fotografiar ticket",
"uploading": "Subiendo …",
@@ -822,7 +837,7 @@
"assignLine": "Assign {text} to an ingredient after all",
"noIngredient": "No ingredient recognised",
"forCooking": "For cooking",
"swipeHint": "Swipe left what is not for cooking — Lunch remembers it for the next receipt.",
"swipeHint": "Swipe left what is not for cooking — foodplanhero remembers it for the next receipt.",
"packEach": "Pack per item in {unit}",
"perPrice": "= {price} {per}",
"perDetail": "{amount} {unit} for {total}",
@@ -831,7 +846,7 @@
"100ml": "per 100 ml",
"piece": "per item"
},
"noPackWarning": "Without a pack size Lunch keeps no price.",
"noPackWarning": "Without a pack size foodplanhero keeps no price.",
"weighedHint": "Weighed: 1000 means the price is per kg as on the receipt."
},
"setup": {
@@ -842,7 +857,7 @@
"laterSr": "después:",
"skipped": "omitido",
"hide": "Ocultar lista",
"finishedTitle": "Listo – Lunch está en marcha",
"finishedTitle": "Listo – foodplanhero está en marcha",
"finishedText": "Platos, tienda, familia y la primera ronda están listos. Desde ahora, «¿Dónde estamos?» muestra lo siguiente.",
"finishedOk": "Entendido",
"dishes": {
@@ -863,7 +878,7 @@
"title": "Trae a la familia",
"text": "Adultos y adolescentes con un enlace en su móvil, niños con imagen y PIN en una tablet.",
"cta": "Invitar",
"skip": "De momento uso Lunch solo"
"skip": "De momento uso foodplanhero solo"
},
"round": {
"short": "Primera ronda",
@@ -910,7 +925,7 @@
},
"intro": {
"roledesc": "Introducción",
"eyebrow": "Así funciona Lunch · {n} de {of}",
"eyebrow": "Así funciona foodplanhero · {n} de {of}",
"next": "Siguiente",
"skip": "Omitir",
"done": "Vamos",
+31 -16
View File
@@ -1,6 +1,6 @@
{
"app": {
"name": "On mange quoi ?",
"name": "foodplanhero",
"tagline": "Decide together what's for dinner — the shopping list writes itself."
},
"today": {
@@ -130,7 +130,7 @@
},
"ai": {
"title": "AI",
"intro": "Lunch interroge un modèle de langage sur ta box. Rien ne part dans un cloud que tu n'aurais pas saisi ici.",
"intro": "foodplanhero interroge un modèle de langage sur ta box. Rien ne part dans un cloud que tu n'aurais pas saisi ici.",
"ready": "Set up",
"notReady": "Not set up",
"summary": "For cookbook photos and recipe pages without recipe data.",
@@ -158,7 +158,7 @@
"key": "The key was refused.",
"status": "The service answered with an error.",
"aiNotConfigured": "Please save first.",
"login": "A sign-in page answered instead of the service. Lunch needs the address for “Apps in Olares”."
"login": "A sign-in page answered instead of the service. foodplanhero needs the address for “Apps in Olares”."
},
"routerUse": "Utiliser le Router d'Olares",
"routerChecking": "Vérification du Router …",
@@ -167,9 +167,9 @@
"sourceRouter": "Olares Router",
"sourceManual": "Point d'accès perso",
"routerFound": "Router détecté · modèle : {model}",
"routerManages": "Le Router gère l'adresse, le modèle et la clé. Lunch utilise le modèle par défaut pour le texte et les photos.",
"routerManages": "Le Router gère l'adresse, le modèle et la clé. foodplanhero utilise le modèle par défaut pour le texte et les photos.",
"routerAddress": "Adresse du Router",
"noRouter": "Lunch ne tourne pas sous une adresse Olares, il n'y a donc pas de Router. Saisis un point d'accès.",
"noRouter": "foodplanhero ne tourne pas sous une adresse Olares, il n'y a donc pas de Router. Saisis un point d'accès.",
"speechModel": "Modèle vocal (parole en texte)",
"speechHint": "Pour « Dicter un plat », p. ex. un Whisper. Facultatif."
},
@@ -234,6 +234,21 @@
"devicePending": "Link open, not yet unlocked",
"removeDevice": "Remove {label}",
"remove": "Remove"
},
"dedication": {
"title": "For {name}",
"edit": "Edit dedication",
"name": "Name",
"text": "A few sentences",
"textPlaceholder": "Why this app exists …",
"photo": "Choose photo",
"newPhoto": "Choose new photo",
"photoHint": "The photo stays on your box. It appears when the app opens, at sign-in and here.",
"save": "Save",
"removePhoto": "Remove photo",
"saved": "Saved.",
"error": "That did not work. Use a JPEG, PNG or HEIC up to 15 MB.",
"chosen": "Chosen: {name}"
}
},
"nav": {
@@ -361,7 +376,7 @@
"unmatched": "Nous n’avons pas pu associer ces lignes à un ingrédient. Ajoute-les toi-même si besoin :",
"byAi": "Read by the AI. Check every ingredient and amount before you save.",
"restyle": "Uniformiser",
"restyleHint": "Met les étapes dans la forme Lunch : préparer, cuire, servir ; une action par étape, durées en minuteurs. Tu vérifies et enregistres.",
"restyleHint": "Met les étapes dans la forme foodplanhero : préparer, cuire, servir ; une action par étape, durées en minuteurs. Tu vérifies et enregistres.",
"styledByAi": "Mis en forme par l'AI. Durées et températures viennent de la recette — vérifie rapidement.",
"styledByRules": "Classé en sections par règles, texte inchangé. Avec une AI configurée, les étapes sont aussi reformulées.",
"styleFailed": "Ça n'a pas marché. Les étapes sont inchangées.",
@@ -430,10 +445,10 @@
"error": "Ça n'a pas marché."
},
"addVoice": "Dicter",
"addVoiceText": "Raconte un plat préféré — Lunch en fait une recette.",
"addVoiceText": "Raconte un plat préféré — foodplanhero en fait une recette.",
"voice": {
"title": "Dicter un plat",
"intro": "Raconte simplement : combien de portions, ce qu'il faut, comment faire. Lunch note et prépare un brouillon à vérifier.",
"intro": "Raconte simplement : combien de portions, ce qu'il faut, comment faire. foodplanhero note et prépare un brouillon à vérifier.",
"record": "Démarrer l'enregistrement",
"stop": "Arrêter l'enregistrement",
"recording": "Enregistrement … {time}",
@@ -694,8 +709,8 @@
}
},
"install": {
"title": "Put Lunch on your home screen",
"ios": "In Safari, tap the share icon, then “Add to Home Screen”. Lunch then opens like an app.",
"title": "Put foodplanhero on your home screen",
"ios": "In Safari, tap the share icon, then “Add to Home Screen”. foodplanhero then opens like an app.",
"install": "Install app",
"dismiss": "Hide hint"
},
@@ -768,7 +783,7 @@
"receipts": {
"eyebrow": "Courses",
"title": "Tickets de caisse",
"intro": "Photographie le ticket et continue. Lunch le lit sur ta box et retient les prix dès que tu confirmes. La photo est ensuite supprimée.",
"intro": "Photographie le ticket et continue. foodplanhero le lit sur ta box et retient les prix dès que tu confirmes. La photo est ensuite supprimée.",
"noAi": "La lecture nécessite un modèle d'image (inclus dans le Router d'Olares). Les tickets attendent jusque-là.",
"scan": "Photographier le ticket",
"uploading": "Envoi …",
@@ -822,7 +837,7 @@
"assignLine": "Assign {text} to an ingredient after all",
"noIngredient": "No ingredient recognised",
"forCooking": "For cooking",
"swipeHint": "Swipe left what is not for cooking — Lunch remembers it for the next receipt.",
"swipeHint": "Swipe left what is not for cooking — foodplanhero remembers it for the next receipt.",
"packEach": "Pack per item in {unit}",
"perPrice": "= {price} {per}",
"perDetail": "{amount} {unit} for {total}",
@@ -831,7 +846,7 @@
"100ml": "per 100 ml",
"piece": "per item"
},
"noPackWarning": "Without a pack size Lunch keeps no price.",
"noPackWarning": "Without a pack size foodplanhero keeps no price.",
"weighedHint": "Weighed: 1000 means the price is per kg as on the receipt."
},
"setup": {
@@ -842,7 +857,7 @@
"laterSr": "plus tard :",
"skipped": "ignoré",
"hide": "Masquer la liste",
"finishedTitle": "Terminé – Lunch tourne",
"finishedTitle": "Terminé – foodplanhero tourne",
"finishedText": "Plats, magasin, famille et première tournée sont prêts. Désormais, « Où en est-on ? » montre la suite.",
"finishedOk": "Compris",
"dishes": {
@@ -863,7 +878,7 @@
"title": "Fais venir la famille",
"text": "Adultes et ados par lien sur leur téléphone, enfants avec image et PIN sur une tablette.",
"cta": "Inviter",
"skip": "J'utilise Lunch seul pour l'instant"
"skip": "J'utilise foodplanhero seul pour l'instant"
},
"round": {
"short": "Première tournée",
@@ -910,7 +925,7 @@
},
"intro": {
"roledesc": "Introduction",
"eyebrow": "Comment marche Lunch · {n} sur {of}",
"eyebrow": "Comment marche foodplanhero · {n} sur {of}",
"next": "Suivant",
"skip": "Passer",
"done": "C'est parti",
+3
View File
@@ -22,6 +22,9 @@ const nextConfig: NextConfig = {
// pg lädt optionale Module dynamisch; nicht bündeln, sondern als Paket
// mitnehmen (standalone verfolgt es dann selbst).
serverExternalPackages: ["pg"],
// Das Startbild (app/startbild) liest Poppins und Caveat zur Laufzeit von der
// Platte; standalone nimmt sie nur mit, wenn sie hier stehen.
outputFileTracingIncludes: { "/startbild/[size]": ["./lib/brand-fonts/*.woff"] },
poweredByHeader: false,
// Kein X-Frame-Options/frame-ancestors: Olares zeigt Apps im eigenen
// Fenster der Oberfläche. Passkeys sind in fremden Rahmen ohnehin gesperrt.
+3 -3
View File
@@ -1,6 +1,6 @@
apiVersion: v2
name: lunch
description: Was gibt's? — die Familie entscheidet gemeinsam, was es gibt; aus dem Plan entsteht die Einkaufsliste
description: foodplanhero (Plan. Cook. Smile.) — die Familie entscheidet gemeinsam, was es gibt; aus dem Plan entsteht die Einkaufsliste
type: application
version: 26.11.34 # YY.M.<n> wie im AImighty-Markt — bei jeder Chart-Änderung erhöhen
appVersion: "26.11.34" # MUSS gleich version sein: der Linter prüft es, und der Image-Tag hängt daran
version: 26.11.35 # YY.M.<n> wie im AImighty-Markt — bei jeder Chart-Änderung erhöhen
appVersion: "26.11.35" # MUSS gleich version sein: der Linter prüft es, und der Image-Tag hängt daran
+7 -7
View File
@@ -1,5 +1,5 @@
# ============================================================================
# OlaresManifest.yaml — Lunch („Was gibt's?“)
# OlaresManifest.yaml — foodplanhero (lunch, bis 26.11.35 „Was gibt's?“)
#
# Linter-Regeln, die hier zwingend gelten (scripts/check-chart.sh):
# - metadata.name, metadata.appid, Chart.yaml.name und der Ordnername
@@ -18,10 +18,10 @@ workloadReplicas:
metadata:
name: lunch
appid: lunch
title: What's cooking?
description: The family decides together what's for dinner — and the shopping list writes itself. Runs entirely on your own box.
title: foodplanhero
description: Plan. Cook. Smile. The family decides together what's for dinner — and the shopping list writes itself. Runs entirely on your own box.
icon: https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png
version: 26.11.34
version: 26.11.35
categories:
- Applications
@@ -38,7 +38,7 @@ entrances:
- name: lunch
host: lunch
port: 3000
title: What's cooking?
title: foodplanhero
icon: https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png
authLevel: public
invisible: false
@@ -61,14 +61,14 @@ permission:
appData: true
spec:
versionName: '26.11.34'
versionName: '26.11.35'
featuredImage: https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png
promoteImage:
- https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png
fullDescription: |
**What's cooking?** takes the daily "what are we eating?" off the
**foodplanhero** — Plan. Cook. Smile. — takes the daily "what are we eating?" off the
person who usually plans.
Everyone in the family wishes for dishes in ten seconds — children
+5
View File
@@ -0,0 +1,5 @@
# foodplanhero — Plan. Cook. Smile.
v26.11.35: The app is now called foodplanhero, with the slogan "Plan. Cook. Smile.", and it is dedicated to Maike. Under "More" › "For Maike" an admin uploads her photo and writes a few words; the photo stays on the box. It appears on the start image while the home-screen app loads (no extra waiting), when signing in and when someone joins by invitation. The slogan shows where it happens: "Plan" on the approved plan, "Cook" in cooking mode, "Smile" when rating.
## Deutsch
v26.11.35: Die App heißt jetzt foodplanhero, mit dem Slogan „Plan. Cook. Smile.“, und sie ist Maike gewidmet. Unter „Mehr“ › „Für Maike“ lädt ein Admin ihr Foto hoch und schreibt ein paar Sätze; das Foto bleibt auf der Box. Es erscheint auf dem Startbild, solange die Web-App vom Home-Bildschirm lädt (ohne zusätzliche Wartezeit), beim Anmelden und wenn jemand über eine Einladung dazukommt. Der Slogan steht dort, wo er passiert: „Plan“ am freigegebenen Plan, „Cook“ im Kochmodus, „Smile“ beim Bewerten.
+1 -1
View File
@@ -1,7 +1,7 @@
# Kurz
Die Familie entscheidet gemeinsam, was es gibt, und die Einkaufsliste entsteht von selbst — auf der eigenen Box
# Beschreibung
**Was gibt's?** nimmt der Person, die sonst plant, die tägliche Frage „Was essen wir?“ ab.
**foodplanhero** — Plan. Cook. Smile. — nimmt der Person, die sonst plant, die tägliche Frage „Was essen wir?“ ab.
Alle im Haushalt wünschen sich Gerichte in zehn Sekunden, auch die Kinder. Die App schlägt aus den Wünschen eine Woche vor, die Planerin gibt sie frei, und aus dem Plan entsteht die Einkaufsliste, sortiert nach den Gängen des eigenen Ladens.
+1 -1
View File
@@ -1,7 +1,7 @@
# Kurz
The family decides together what's for dinner, and the shopping list writes itself — on your own box
# Beschreibung
**What's cooking?** takes the daily "what are we eating?" off the person who usually plans.
**foodplanhero** — Plan. Cook. Smile. — takes the daily "what are we eating?" off the person who usually plans.
Everyone in the household wishes for dishes in ten seconds, children included. The app proposes a week from those wishes, the planner approves it, and the shopping list is built from the plan, sorted by the aisles of your store.
+1 -1
View File
@@ -1 +1 @@
Was gibt's?
foodplanhero
+3
View File
@@ -50,6 +50,9 @@ const PAIRS: [string, string][] = [
["primary-foreground", "primary"],
["secondary-foreground", "secondary"],
["card-foreground", "card"],
["hero", "background"], // „hero“ im Logo
["hero", "secondary"],
["hero", "muted"],
];
describe.each([