Version 9b #1
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "develop"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Frontend was sending {email, pin} but backend expects {email, password}. This caused 422 Unprocessable Entity errors. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>PostgreSQL DATE type doesn't accept empty strings (''). Convert empty/whitespace date values to NULL during migration. Fixes: invalid input syntax for type date: "" Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>- Add GET /api/insights (returns all insights for profile) - Add DELETE /api/insights/{id} (delete by ID, not scope) - Frontend Analysis.jsx needs these endpoints to load/delete insights Fixes 404 error preventing prompts from displaying. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>Fixed 11 critical endpoint mismatches found during codebase audit. **Renamed Endpoints (consistency):** - /api/ai/analyze/{slug} → /api/insights/run/{slug} - /api/ai/analyze-pipeline → /api/insights/pipeline - /api/auth/password-reset-request → /api/auth/forgot-password - /api/auth/password-reset-confirm → /api/auth/reset-password - /api/admin/test-email → /api/admin/email/test **Added Missing Endpoints:** - POST /api/auth/pin (change PIN/password for current user) - PUT /api/admin/profiles/{id}/permissions (set permissions) - PUT /api/admin/profiles/{id}/email (set email) - PUT /api/admin/profiles/{id}/pin (admin set PIN) - GET /api/admin/email/status (check SMTP config) - PUT /api/prompts/{id} (edit prompt templates, admin only) - GET /api/export/json (export all data as JSON) - GET /api/export/zip (export data + photos as ZIP) **Updated:** - Added imports: json, zipfile, Response - Fixed admin email test endpoint to accept dict body All frontend API calls now have matching backend implementations. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>Fixed all remaining Decimal → float conversion issues found by audit. **Fixed Endpoints:** 1. Weight Stats: min/max/avg calculations 2. Activity Stats: kcal/duration accumulation 3. Nutrition Weekly: average calculations 4. Template Variables: all f-string Decimal formatting 5. CSV Export: all numeric value formatting 6. JSON Export: added Decimal handler 7. ZIP Export: added Decimal handler 8. Correlations: weight, nutrition, caliper values **Changes:** - Added `from decimal import Decimal` import - Weight stats: convert to float for min/max/avg - Activity: float() in sum() and accumulation - Nutrition: float() in averages - Template vars: float() for weight_aktuell, kf_aktuell, goals - CSV: float() in all f-strings (weight, circ, caliper, nutrition, activity) - JSON/ZIP: custom decimal_handler for json.dumps() - Correlations: float() for all numeric DB values Prevents: - TypeError in math operations - "Decimal('X')" strings in exports - JSON serialization failures All numeric values from PostgreSQL now properly converted to float. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>Complete rewrite of ZIP export to match CLAUDE.md specification. **Structure:** - README.txt (format explanation) - profile.json (no password hash, includes stats) - data/*.csv (5 separate CSV files) - insights/ai_insights.json - photos/*.jpg **CSV Format:** - Delimiter: semicolon (;) - Encoding: UTF-8 with BOM (Excel compatible) - Date format: YYYY-MM-DD - Decimal separator: dot (.) - NULL values: empty string - First row: header **Files:** - data/weight.csv (id, date, weight, note, source, created) - data/circumferences.csv (8 measurement points) - data/caliper.csv (skinfold measurements + bf%) - data/nutrition.csv (kcal, protein, fat, carbs) - data/activity.csv (type, duration, kcal, HR, distance) **Filename:** mitai-export-{name}-{YYYY-MM-DD}.zip Ready for import functionality (v9c). Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>Version 9b auf Prod bringen
WIP: Version 9bto Version 9b