ci / olares chart · sanity (pull_request) Successful in 5s
ci / app · types + tests + build (pull_request) Successful in 3m54s
release / which version (pull_request) Successful in 1s
release / olares chart · sanity (pull_request) Successful in 3s
release / app (pull_request) Successful in 1m25s
release / tag and release (pull_request) Skipped
Next.js 15 with next-intl (de, en, fr, es; locale per person, no URL prefix), Tailwind v4 tokens for the warm palette with dark mode, a shadcn/ui button, Serwist service worker and PWA manifest with icons. One Postgres pool with withHousehold() setting app.household_id per transaction; the first migration creates households with FORCE ROW LEVEL SECURITY, and a two-household test checks the isolation as the table owner. scripts/migrate.mjs applies db/migrations once each with a checksum and retries until the database is reachable. Olares chart with one deployment (init: chown, migrate from the same image), ClusterIP service, entrance internal until the own sign-in exists, image path fixed in the template and tag from appVersion. scripts/check-chart.sh carries the rules from Rocket; CI runs it, type check, tests against Postgres and the build; release builds lunch-app, tags and attaches the chart. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01HUc2nv7rJVU2gp3Bgtha3q
72 lines
4.1 KiB
Markdown
72 lines
4.1 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`.
|
|
|
|
**Stand:** Gerüst, Chart (Entrance `internal`), CI und Release in
|
|
`26.11.1`. `olares-cli chart lint` läuft noch nicht in der CI (der Runner
|
|
hat das Werkzeug nicht) — Prüfung vor dem Markt von Hand, wie bei Rocket.
|
|
Offen in Paket 1: Anmeldung (Einrichtungscode, Passkey, Einladung, Magic
|
|
Link sobald SMTP feststeht), Haushalt anlegen, dann `public` und der
|
|
Markt-Eintrag (`markt.yml`).
|
|
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: erste Version `26.11.1` in den Markt und auf die Box; Lunch in
|
|
`aimighty/plattform` `werkzeug/apps.json` eintragen (nicht ins CI, E-0002).
|
|
|
|
## Offene Fragen an Kai
|
|
|
|
Vor Arbeitspaket 1: **Mail für Magic Links** — welches Postfach / welcher
|
|
SMTP-Zugang? (Entschieden am 6.11.2026: E-0004 ein Next.js-Server, E-0005
|
|
Markt und öffentliches Repo.)
|
|
|
|
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).
|