2026-04-05 22:32:58 +02:00
|
|
|
|
# Session-Kontext
|
|
|
|
|
|
|
|
|
|
|
|
> Claude liest diese Datei zu Beginn jeder Session.
|
2026-04-05 23:24:21 +02:00
|
|
|
|
> Claude aktualisiert sie am Ende jeder Session.
|
2026-04-05 22:32:58 +02:00
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
|
|
|
|
|
## Aktueller Stand
|
|
|
|
|
|
|
|
|
|
|
|
| Feld | Wert |
|
|
|
|
|
|
|---|---|
|
2026-04-05 23:24:21 +02:00
|
|
|
|
| **Version** | 0.2.3 |
|
|
|
|
|
|
| **Aktiver Branch** | feature/phase-1 |
|
2026-04-05 22:32:58 +02:00
|
|
|
|
| **Basis-Branch** | develop |
|
|
|
|
|
|
| **Zuletzt geändert** | 2026-04-05 |
|
|
|
|
|
|
|
2026-04-05 23:24:21 +02:00
|
|
|
|
## Offene Arbeit – nächste Session startet hier
|
2026-04-05 22:32:58 +02:00
|
|
|
|
|
2026-04-05 23:24:21 +02:00
|
|
|
|
Phase 1 implementieren. Reihenfolge:
|
2026-04-05 22:32:58 +02:00
|
|
|
|
|
2026-04-05 23:24:21 +02:00
|
|
|
|
1. **Backend** (Agent-Tool mit vollständiger Spec) – alle Dateien unter `backend/`
|
|
|
|
|
|
2. **Frontend** (Agent-Tool) – alle Dateien unter `frontend/`
|
|
|
|
|
|
3. **Docker** – `docker-compose.yml`, `docker-compose.dev.yml`, `.env.example`
|
|
|
|
|
|
4. Docs aktualisieren, VERSION auf 1.0.0-alpha bumpen, commit + push
|
2026-04-05 22:32:58 +02:00
|
|
|
|
|
2026-04-05 23:24:21 +02:00
|
|
|
|
### Backend-Spec (fertig ausgearbeitet, direkt verwenden):
|
|
|
|
|
|
- FastAPI + SQLAlchemy async + Alembic + PostgreSQL (asyncpg)
|
|
|
|
|
|
- Models: User, Tenant, UserTenant, PlantFamily, Plant, PlantCompatibility, Bed, BedPlanting
|
|
|
|
|
|
- Rollen: READ_ONLY / READ_WRITE / TENANT_ADMIN + Superadmin-Flag auf User
|
|
|
|
|
|
- JWT: Access 30min, Refresh 7 Tage
|
|
|
|
|
|
- Tenant-Kontext via Header `X-Tenant-ID`
|
|
|
|
|
|
- Seed-Daten: ~20 globale Pflanzen + Kompatibilitäten (fertig geplant, siehe Memory)
|
|
|
|
|
|
- Endpoints: /api/v1/auth/*, /api/v1/plants/*, /api/v1/plant-families, /api/v1/beds/*, /api/v1/beds/{id}/plantings, /api/v1/plantings/{id}
|
|
|
|
|
|
|
|
|
|
|
|
### Frontend-Spec:
|
|
|
|
|
|
- Vue 3 + Vite + PrimeVue + Pinia + Vue Router + Axios
|
|
|
|
|
|
- Views: Login, Beete (DataTable), Beet-Detail, Pflanzenbibliothek
|
|
|
|
|
|
- Sprache: Deutsch
|
|
|
|
|
|
- Static build → Nginx
|
|
|
|
|
|
|
|
|
|
|
|
## Git-Status
|
|
|
|
|
|
- `feature/grundstruktur` → in `develop` gemergt ✓
|
|
|
|
|
|
- `feature/phase-1` → erstellt und gepusht ✓
|
|
|
|
|
|
- Git-Auth: PAT im Credential Store hinterlegt ✓
|
|
|
|
|
|
|
|
|
|
|
|
## Wichtiger Hinweis für nächste Session
|
|
|
|
|
|
`.claude/settings.local.json` hat noch spezifische Permissions – bei git push ggf. Approval nötig.
|
|
|
|
|
|
Zu Beginn prüfen und ggf. auf breite Patterns updaten (Bash(git *), Bash(bash .claude/scripts/*)).
|
2026-04-05 22:32:58 +02:00
|
|
|
|
|
|
|
|
|
|
## Schnellreferenz
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
# Version bumpen
|
|
|
|
|
|
bash .claude/scripts/bump.sh patch "Was wurde geändert"
|
|
|
|
|
|
|
|
|
|
|
|
# Neuen Branch erstellen
|
|
|
|
|
|
bash .claude/scripts/new-feature.sh feature <name>
|
|
|
|
|
|
|
|
|
|
|
|
# Aktueller Branch
|
|
|
|
|
|
git branch --show-current
|
|
|
|
|
|
```
|