diff --git a/CLAUDE.md b/CLAUDE.md index e47aa33..3ee46a9 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -7,7 +7,7 @@ > **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.51 — alle neun Arbeitspakete aus `docs/PROJEKTSTART.md` sind gebaut: +> **Status:** 26.11.52 — 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 @@ -22,7 +22,7 @@ > (26.11.39, E-0016), Anmelden per Mail-Link über Resend (26.11.40, E-0017; nur > anmelden, keine Geräte oder Passkeys aus einer Mail-Sitzung), Leiste bleibt nach der > Tastatur unten (26.11.41), Icon Kochmütze mit Herz (26.11.42), Fotos aus der Mediathek (26.11.43), gleich große Karten (26.11.44), Runde beenden/löschen/ändern, -> Tage je Gericht von Hand und Kalender-Abo je Haushalt (26.11.45, E-0018), Einkaufsliste einsprechen (26.11.46), Herz für „Mein Gericht“ auf jeder Wunschkarte (26.11.47), Kochbuch mit bis zu sechs Seiten (26.11.48), Portionen rechnen beim Bearbeiten mit und mehr Maße (26.11.49), ml und l bei jeder Zutat (26.11.50), Fehlendes im Formular am Feld markiert und gezählt (26.11.51). Offen: Kai trägt +> Tage je Gericht von Hand und Kalender-Abo je Haushalt (26.11.45, E-0018), Einkaufsliste einsprechen (26.11.46), Herz für „Mein Gericht“ auf jeder Wunschkarte (26.11.47), Kochbuch mit bis zu sechs Seiten (26.11.48), Portionen rechnen beim Bearbeiten mit und mehr Maße (26.11.49), ml und l bei jeder Zutat (26.11.50), Fehlendes im Formular am Feld markiert und gezählt (26.11.51), Desktop zeigt die Handy-Spalte (26.11.52). Offen: Kai trägt > den Resend-Schlüssel unter Mehr › Mails verschicken ein und abonniert den Kalender-Link einmal auf dem iPhone. > **Letzte Aktualisierung:** 8. November 2026 diff --git a/OlaresManifest.yaml b/OlaresManifest.yaml index f67fa65..ac046d7 100644 --- a/OlaresManifest.yaml +++ b/OlaresManifest.yaml @@ -21,7 +21,7 @@ metadata: 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.51 + version: 26.11.52 categories: - Applications @@ -61,7 +61,7 @@ permission: appData: true spec: - versionName: '26.11.51' + versionName: '26.11.52' featuredImage: https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png promoteImage: diff --git a/app/(app)/gerichte/[id]/page.tsx b/app/(app)/gerichte/[id]/page.tsx index e4fe12f..57d66aa 100644 --- a/app/(app)/gerichte/[id]/page.tsx +++ b/app/(app)/gerichte/[id]/page.tsx @@ -51,7 +51,7 @@ export default async function DishPage({ params }: { params: Promise<{ id: strin .join(" · "); return ( -
+
+

{t("eyebrow")}

@@ -83,7 +83,7 @@ export default async function DishesPage({ searchParams }: { searchParams: Promi {dishes.length ? ( -
    +
      {dishes.map((d) => (
    • @@ -107,7 +107,7 @@ export default async function DishesPage({ searchParams }: { searchParams: Promi href="/gerichte/hinzufuegen" className={cn( buttonVariants({ size: "lg" }), - "kb-shift fixed bottom-[calc(4.5rem+env(safe-area-inset-bottom))] right-4 z-10 shadow-lg", + "kb-shift fixed bottom-[calc(4.5rem+env(safe-area-inset-bottom))] right-[max(1rem,calc((100vw-28rem)/2+1rem))] z-10 shadow-lg", )} > diff --git a/app/(app)/layout.tsx b/app/(app)/layout.tsx index 8642df4..e1bac3c 100644 --- a/app/(app)/layout.tsx +++ b/app/(app)/layout.tsx @@ -4,6 +4,8 @@ import { requireSession } from "@/lib/auth/session"; // Alles hier drin verlangt eine Sitzung. Die Prüfung steht im Layout und // zusätzlich in jeder Seite, die Daten liest (requireSession) — Layouts // werden beim Navigieren nicht jedes Mal neu ausgeführt. +// Jede Seite steht in einer Spalte wie am Handy, auch am Desktop (max-w-md; Kai, +// 9.11.2026). Nur Küchendisplay, Präsentation und Kochmodus im Querformat sind breiter. export const dynamic = "force-dynamic"; export default async function AppLayout({ children }: { children: React.ReactNode }) { diff --git a/app/(app)/wuenschen/page.tsx b/app/(app)/wuenschen/page.tsx index bd5b916..1108a11 100644 --- a/app/(app)/wuenschen/page.tsx +++ b/app/(app)/wuenschen/page.tsx @@ -20,7 +20,7 @@ export default async function WishPage() { return { round, tiles: await wishTiles(c), entries: await roundWishes(c, round.id, { memberId: session.memberId, adult }), budget: await budget(c, round.id, session.memberId) }; }); return ( -
      +

      {t("eyebrow")}

      {t("title")}

      diff --git a/components/wishes/wish-board.tsx b/components/wishes/wish-board.tsx index 7415c4b..b8c4c36 100644 --- a/components/wishes/wish-board.tsx +++ b/components/wishes/wish-board.tsx @@ -188,7 +188,7 @@ export function WishBoard({ ) : null} {shown.length ? ( -
        +
          {shown.map((tile) => { const own = mine(tile.id); const names = wishers(tile.id).map((e) => (e.memberId === me ? t("you") : e.memberName)); diff --git a/e2e/rundgang.spec.ts b/e2e/rundgang.spec.ts index 731d940..1dfd4d4 100644 --- a/e2e/rundgang.spec.ts +++ b/e2e/rundgang.spec.ts @@ -162,3 +162,22 @@ test("signed out: the sign-in page is centred and its intro has no orphan line", if (widths.length > 1) expect(widths.at(-1)!).toBeGreaterThan(widths[0]! / 4); await context.close(); }); + +// Am Desktop dieselbe Ansicht wie am Handy (Kai, 9.11.2026): eine Spalte, zwei Karten +// je Reihe, „Gericht hinzufügen“ an der Spalte statt am Bildschirmrand. +test("the desktop shows the phone column", async ({ page }) => { + test.skip(test.info().project.name !== "desktop", "nur am Desktop"); + for (const path of ["/gerichte", "/wuenschen", "/plan", "/mehr"]) { + await page.goto(path); + const width = (await page.locator("main").boundingBox())!.width; + expect(width, path).toBeLessThanOrEqual(448); + } + await page.goto("/gerichte"); + const main = (await page.locator("main").boundingBox())!; + const cards = page.locator("main ul > li"); + const tops = await cards.evaluateAll((els) => els.slice(0, 3).map((e) => Math.round(e.getBoundingClientRect().top))); + expect(tops[0]).toBe(tops[1]); + expect(tops[2]).toBeGreaterThan(tops[0]!); + const add = (await page.getByRole("link", { name: "Gericht hinzufügen" }).boundingBox())!; + expect(add.x + add.width).toBeLessThanOrEqual(main.x + main.width + 1); +}); diff --git a/olares/Chart.yaml b/olares/Chart.yaml index f703abb..4b98c30 100644 --- a/olares/Chart.yaml +++ b/olares/Chart.yaml @@ -2,5 +2,5 @@ apiVersion: v2 name: lunch description: foodplanhero (Plan. Cook. Smile.) — die Familie entscheidet gemeinsam, was es gibt; aus dem Plan entsteht die Einkaufsliste type: application -version: 26.11.51 # YY.M. wie im AImighty-Markt — bei jeder Chart-Änderung erhöhen -appVersion: "26.11.51" # MUSS gleich version sein: der Linter prüft es, und der Image-Tag hängt daran +version: 26.11.52 # YY.M. wie im AImighty-Markt — bei jeder Chart-Änderung erhöhen +appVersion: "26.11.52" # MUSS gleich version sein: der Linter prüft es, und der Image-Tag hängt daran diff --git a/olares/OlaresManifest.yaml b/olares/OlaresManifest.yaml index f67fa65..ac046d7 100644 --- a/olares/OlaresManifest.yaml +++ b/olares/OlaresManifest.yaml @@ -21,7 +21,7 @@ metadata: 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.51 + version: 26.11.52 categories: - Applications @@ -61,7 +61,7 @@ permission: appData: true spec: - versionName: '26.11.51' + versionName: '26.11.52' featuredImage: https://git.aimighty.olares.de/aimighty/bilder/raw/branch/main/lunch/icon.png promoteImage: diff --git a/olares/markt/26.11.52.md b/olares/markt/26.11.52.md new file mode 100644 index 0000000..2054402 --- /dev/null +++ b/olares/markt/26.11.52.md @@ -0,0 +1,5 @@ +# The desktop looks like the phone +v26.11.52: On a computer, every page now shows the same single column as on the phone: dishes and wishes two to a row, and "Add dish" sits at the bottom right of that column instead of at the edge of the screen. + +## Deutsch +v26.11.52: Am Computer zeigt jetzt jede Seite dieselbe Spalte wie am Handy: Gerichte und Wünsche zwei pro Reihe, und „Gericht hinzufügen“ sitzt unten rechts an dieser Spalte statt am Bildschirmrand.