Compare commits

...
1 Commits
Author SHA1 Message Date
kai f95956205b 26.11.52: Desktop wie Handy (#53)
release / which version (push) Successful in 2s
release / olares chart · sanity (push) Successful in 4s
release / app (push) Successful in 57s
release / tag and release (push) Successful in 2s
2026-11-09 06:42:55 +00:00
11 changed files with 40 additions and 14 deletions

No files matched your search

+2 -2
View File
@@ -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
+2 -2
View File
@@ -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:
+1 -1
View File
@@ -51,7 +51,7 @@ export default async function DishPage({ params }: { params: Promise<{ id: strin
.join(" · ");
return (
<main className="mx-auto flex max-w-2xl flex-col gap-5 pb-6">
<main className="mx-auto flex max-w-md flex-col gap-5 pb-6">
<div className="relative aspect-[4/3] overflow-hidden sm:mx-4 sm:mt-4 sm:rounded-2xl">
<DishPhoto dishId={dish.id} photo={dish.photo} />
<Link
+3 -3
View File
@@ -47,7 +47,7 @@ export default async function DishesPage({ searchParams }: { searchParams: Promi
[d.effortMinutes ? t("minutes", { n: d.effortMinutes }) : null, d.base ? t(`bases.${d.base}`) : null, cost(d.id)].filter(Boolean).join(" · ");
return (
<main className="mx-auto flex max-w-2xl flex-col gap-5 px-4 py-6">
<main className="mx-auto flex max-w-md flex-col gap-5 px-4 py-6">
<header className="flex items-end justify-between gap-3">
<div className="flex flex-col gap-1">
<p className="eyebrow">{t("eyebrow")}</p>
@@ -83,7 +83,7 @@ export default async function DishesPage({ searchParams }: { searchParams: Promi
</nav>
{dishes.length ? (
<ul className="grid grid-cols-2 gap-3 sm:grid-cols-3">
<ul className="grid grid-cols-2 gap-3">
{dishes.map((d) => (
<li key={d.id} className="h-full">
<DishTile id={d.id} title={d.title} photo={d.photo} meta={meta(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",
)}
>
<Plus aria-hidden />
+2
View File
@@ -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 }) {
+1 -1
View File
@@ -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 (
<main className="mx-auto flex max-w-2xl flex-col gap-4 px-4 py-6">
<main className="mx-auto flex max-w-md flex-col gap-4 px-4 py-6">
<header className="flex flex-col gap-1">
<p className="eyebrow">{t("eyebrow")}</p>
<h1 className="text-4xl leading-tight">{t("title")}</h1>
+1 -1
View File
@@ -188,7 +188,7 @@ export function WishBoard({
) : null}
{shown.length ? (
<ul className="grid grid-cols-2 gap-3 sm:grid-cols-3">
<ul className="grid grid-cols-2 gap-3">
{shown.map((tile) => {
const own = mine(tile.id);
const names = wishers(tile.id).map((e) => (e.memberId === me ? t("you") : e.memberName));
+19
View File
@@ -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);
});
+2 -2
View File
@@ -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.<n> 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.<n> 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
+2 -2
View File
@@ -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:
+5
View File
@@ -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.