docs: update CLAUDE.md - Phase 2 complete
- Mark Feature-Enforcement Phase 2 as complete - Add 4-phase model status overview - Document feature_logger.py and JSON logging - Update DB schema section with user_feature_usage Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
32d53b447d
commit
4e846605e9
18
CLAUDE.md
18
CLAUDE.md
|
|
@ -21,8 +21,9 @@ Teil der **Jinkendo**-App-Familie (人拳道). Domains: jinkendo.de / .com / .li
|
||||||
backend/
|
backend/
|
||||||
├── main.py # App-Setup + Router-Registration (~75 Zeilen)
|
├── main.py # App-Setup + Router-Registration (~75 Zeilen)
|
||||||
├── db.py # PostgreSQL Connection Pool
|
├── db.py # PostgreSQL Connection Pool
|
||||||
├── auth.py # Hash, Verify, Sessions
|
├── auth.py # Hash, Verify, Sessions, Feature-Access-Control
|
||||||
├── models.py # Pydantic Models
|
├── models.py # Pydantic Models
|
||||||
|
├── feature_logger.py # Strukturiertes JSON-Logging (Phase 2)
|
||||||
└── routers/ # 14 Router-Module
|
└── routers/ # 14 Router-Module
|
||||||
auth · profiles · weight · circumference · caliper
|
auth · profiles · weight · circumference · caliper
|
||||||
activity · nutrition · photos · insights · prompts
|
activity · nutrition · photos · insights · prompts
|
||||||
|
|
@ -57,9 +58,16 @@ frontend/src/
|
||||||
- PostgreSQL 16 · Modulare Router-Architektur
|
- PostgreSQL 16 · Modulare Router-Architektur
|
||||||
- Membership-System: Tiers · Coupons · Access-Grants · Admin-UI
|
- Membership-System: Tiers · Coupons · Access-Grants · Admin-UI
|
||||||
- Export: CSV · JSON · ZIP
|
- Export: CSV · JSON · ZIP
|
||||||
|
- **Feature-Enforcement Phase 2:** Non-blocking Monitoring + JSON-Logging
|
||||||
|
|
||||||
|
### Feature-Enforcement Status (4-Phasen-Modell)
|
||||||
|
- ✅ **Phase 1:** Cleanup (Feature-Konsolidierung, Migration)
|
||||||
|
- ✅ **Phase 2:** Non-blocking Monitoring (JSON-Logs, alle 9 Router)
|
||||||
|
- 🔲 **Phase 3:** Frontend Display (Usage-Counter UI)
|
||||||
|
- 🔲 **Phase 4:** Enforcement (Blocking aktivieren)
|
||||||
|
|
||||||
### Offen v9c 🔲
|
### Offen v9c 🔲
|
||||||
- Feature-Enforcement (Rollback 20.03.2026 – Redesign nötig)
|
- Feature-Enforcement Phase 3+4 (Frontend Display + Blocking)
|
||||||
- Selbst-Registrierung + E-Mail-Verifizierung
|
- Selbst-Registrierung + E-Mail-Verifizierung
|
||||||
- Trial-System UI
|
- Trial-System UI
|
||||||
|
|
||||||
|
|
@ -114,7 +122,11 @@ ai_usage – KI-Calls pro Tag pro Profil
|
||||||
|
|
||||||
v9c neu (Membership):
|
v9c neu (Membership):
|
||||||
subscriptions · coupons · coupon_redemptions · features
|
subscriptions · coupons · coupon_redemptions · features
|
||||||
tier_limits · user_restrictions · access_grants · user_activity_log
|
tier_limits · user_feature_restrictions · user_feature_usage
|
||||||
|
access_grants · user_activity_log
|
||||||
|
|
||||||
|
Feature-Logging (Phase 2):
|
||||||
|
/app/logs/feature-usage.log # JSON-Format, alle Feature-Zugriffe
|
||||||
|
|
||||||
Schema-Datei: backend/schema.sql
|
Schema-Datei: backend/schema.sql
|
||||||
```
|
```
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user