Files
lunch/docs/PROJEKTSTART.md
T
Kai BöhmandClaude Opus 5.5 f423dd67ce
ci / olares chart · sanity (pull_request) Successful in 3s
ci / app · types + tests + build (pull_request) Successful in 3m7s
markt / eintrag (pull_request) Successful in 29s
release / which version (pull_request) Successful in 3s
release / olares chart · sanity (pull_request) Successful in 4s
release / app (pull_request) Successful in 59s
release / tag and release (pull_request) Skipped
Own sign-in with passkeys, open the entrance, market entry (26.11.2)
Setup with a code from /app/data, passkeys with required user
verification, sessions as hashed cookies bound to the passkey they
started with, single-use invitation and device links, removing a
passkey or a member, and a recovery code for the owner. Cross-household
lookups before sign-in run in withAuth() (app.auth), allowed only on the
sign-in tables; a test pins that list. State-changing routes check the
session and the Origin header.

Security check with the login-sicherheit skill before the first
invitation: docs/sicherheit/login-2026-11-06.md (no open findings above
low). Entrance goes public now that the own sign-in exists; markt.yml
creates the Lunch entry in aimighty-market and proves it with wrangler.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HUc2nv7rJVU2gp3Bgtha3q
2026-11-06 19:26:36 +00:00

75 lines
4.2 KiB
Markdown

# „Was gibt's?“ (lunch) — Projektstart
Stand 6.11.2026. Alle Daten für den Start an einer Stelle. Was die App ist:
`docs/konzept.md`; Regeln: `CLAUDE.md`; Weichen: `docs/entscheidungen.md`.
Secrets nur mit Namen, nie mit Wert.
## Orte
| Was | Wo |
|---|---|
| Repo | `https://git.aimighty.olares.de/aimighty/lunch` (Zweig `main`) |
| Clone | `https://git.aimighty.olares.de/aimighty/lunch.git` |
| Issues, PRs, Releases | im Repo; Gitea-API `https://git.aimighty.olares.de/api/v1/repos/aimighty/lunch` |
| Actions | `.github/workflows/*.yml`, Runner `olares-runner` (`ubuntu-latest`) |
| Registry (Abbild) | `git.aimighty.olares.de/aimighty/lunch-app` (eines, E-0004) |
| Bilder für Markt und Manifest | `aimighty/bilder` → `lunch/icon.png` (Quelle `docs/icon/lunch.svg`, erzeugt mit `scripts/app-icons.mjs`) |
| Werkzeuge für die CI | `aimighty/ci-tools`, Releases (z. B. `helm-3.16.2`) |
| Plattform-Entscheidungen | `aimighty/plattform` (`entscheidungen/`, `werkzeug/apps.json`) |
| Gitea-Betrieb | `aimighty/plattform` → `betrieb/gitea.md` |
| KI (LiteLLM) | laut Konzept `https://llm.kaivostudio.olares.de/v1`, Adresse je Haushalt in den Einstellungen (kein Vorgabewert im Code) |
| Markt (Olares-App-Store) | `aimighty/aimighty-market`: `functions/_apps.ts` (Eintrag), `functions/_lib.ts` (Chart `lunch-<version>.tgz`) |
| Vorbild für Chart, Workflows, Sicherung, eigene Anmeldung | `aimighty/rocket` (`CLAUDE.md`, `olares/`, `.github/workflows/`, `scripts/`, `backend/app/sicherung.py`) |
## Secrets (Organisation `aimighty`, nur Namen)
| Name | Wofür |
|---|---|
| `REGISTRY_TOKEN` | Abbilder in die Gitea-Registry schieben (Release) |
| `MARKT_TOKEN` | Eintrag in `aimighty/aimighty-market` (Markt-Workflow) |
| `APPS_TOKEN` | Issues/PRs in anderen Repos (Plattform, CI-Stand) |
Das Repo erbt sie, weil es in der Organisation liegt.
## V1, Arbeitspakete (Konzept, angepasst an E-0001)
1. **Setup:** Next.js 15, shadcn/ui, next-intl, Serwist; Chart `olares/`
(`Chart.yaml` `name: lunch`, `OlaresManifest.yaml` mit Postgres-Middleware,
`values.yaml` mit `tag: ""`, Deployment, Service ClusterIP, Entrance erst
`internal`); CI-Workflow (Lint, Typen, Vitest, `helm lint`,
`olares-cli chart lint`); Release-Workflow (Abbild in die Registry, Tag
`vYY.M.n`, Chart als Anhang); Anmeldung per Magic Link und Passkey,
Haushalt anlegen; erst dann Entrance `public`.
**Erledigt:** 26.11.1 Gerüst, Chart, CI, Release; 26.11.2 eigene Anmeldung
(Einrichtungscode, Passkey, Einladung, Gerät, Entfernen, Rückweg — E-0006),
Entrance `public`, Markt-Eintrag über `markt.yml`. Offen: Magic Link, sobald
der Mailweg feststeht. `olares-cli chart lint` läuft nicht in der CI (der
Runner hat das Werkzeug nicht); der Markt-Beweis mit wrangler schon.
2. **Datenmodell** als Migrationen (22 Tabellen, RLS mit FORCE), Test mit zwei Haushalten; Sicherung nach `/app/data`.
3. **Seed:** etwa 300 kanonische Zutaten in vier Sprachen, Starter-Pool DE und EN, Gangfolgen REWE, Edeka, Lidl, Aldi.
4. **Gerichte:** von Hand, Import per JSON-LD, Foto-Import über LiteLLM.
5. **Wünschen:** Jetons, Kacheln, Kinder-Login mit Haushaltscode und PIN.
6. **Runde und Slots:** `lib/suggest.ts` mit Tests, Drag and Drop, Freigabe.
7. **Einkaufsliste:** `lib/aggregate.ts` mit Tests, Gangsortierung, Echtzeit (SSE), Offline-Warteschlange.
8. **Kochmodus** mit Wake Lock und Timer, Bewertung, Dankeschön.
9. **PWA-Feinschliff:** Manifest, Icons, Installationshinweis, Playwright für Wünschen, Planen, Einkaufen.
Danach: Lunch in `aimighty/plattform` `werkzeug/apps.json` eintragen (nicht
ins CI, E-0002).
## Offene Fragen an Kai
- **Mail für Magic Links** — welches Postfach / welcher SMTP-Zugang? (bis dahin
Passkeys, E-0006)
- **Adresse der App:** Unter welcher Adresse öffnet die Familie Lunch? Dort
einrichten — die Passkeys hängen an ihr (`docs/sicherheit/login-2026-11-06.md`).
Entschieden am 6.11.2026: E-0004 ein Next.js-Server, E-0005 Markt und
öffentliches Repo, E-0006 Passkeys zuerst.
Aus dem Konzept („Zu entscheiden, bevor der Code beginnt“): Jetons und Vetos
(2 und 1?), wer freigibt, Richtwert je Runde, Namen je Sprache und Domains,
Vision-Modell, Starter-Pools, Alter für Kinderkonten und wer Helferpunkte
vergibt, Vorarbeiten (foodplanhero.de).