mitai-jinkendo/backend/migrations
Lars c0a50dedcd
All checks were successful
Deploy Development / deploy (push) Successful in 48s
Build Test / lint-backend (push) Successful in 0s
Build Test / build-frontend (push) Successful in 15s
feat: value table + {{placeholder|d}} modifier (Issue #47)
FEATURE #47: Wertetabelle nach KI-Analysen
- Migration 021: metadata JSONB column in ai_insights
- Backend sammelt resolved placeholders mit descriptions beim Speichern
- Frontend: Collapsible value table in InsightCard
  - Zeigt: Platzhalter | Wert | Beschreibung
  - Sortiert tabellarisch
  - Funktioniert für base + pipeline prompts

FEATURE #48: {{placeholder|d}} Modifier
- Syntax: {{weight_aktuell|d}} → "85.2 kg (Aktuelles Gewicht in kg)"
- resolve_placeholders() erkennt |d modifier
- Hängt description aus catalog an Wert
- Fein-granulare Kontrolle pro Platzhalter (nicht global)
- Optional: nur wo sinnvoll einsetzen

TECHNICAL:
- prompt_executor.py: catalog parameter durchgereicht
- execute_prompt_with_data() lädt catalog via get_placeholder_catalog()
- Catalog als _catalog in variables übergeben, in execute_prompt() extrahiert
- Base + Pipeline Prompts unterstützen |d modifier

EXAMPLE:
Template: "Gewicht: {{weight_aktuell|d}}, Alter: {{age}}"
Output:   "Gewicht: 85.2 kg (Aktuelles Gewicht in kg), Alter: 55"

version: 9.6.0 (feature)
module: prompts 2.1.0, insights 1.4.0
2026-03-26 11:52:26 +01:00
..
003_add_email_verification.sql feat: add self-registration with email verification 2026-03-21 09:53:11 +01:00
004_training_types.sql feat(v9d): add training types system + logout button 2026-03-21 13:05:33 +01:00
005_training_types_extended.sql feat: add extended training types (cardio walk/dance, mind & meditation) 2026-03-21 15:16:07 +01:00
006_training_types_abilities.sql feat: admin CRUD for training types + distribution chart in ActivityPage 2026-03-21 15:32:32 +01:00
007_activity_type_mappings.sql feat: learnable activity type mapping system (DB-based, auto-learning) 2026-03-21 19:31:58 +01:00
008_vitals_rest_days.sql feat: add missing migration 008 (vitals, rest days, sleep_goal_minutes) 2026-03-22 10:59:55 +01:00
009_sleep_log.sql fix: migration 009 - change profile_id from VARCHAR(36) to UUID 2026-03-22 08:22:58 +01:00
010_rest_days_jsonb.sql feat: flexible rest days system with JSONB config (v9d Phase 2a) 2026-03-22 16:20:52 +01:00
011_allow_multiple_rest_days_per_date.sql feat: multi-dimensional rest days + development routes architecture (v9d → v9e) 2026-03-22 16:51:09 +01:00
012_rest_days_unique_focus.sql feat: prevent duplicate rest day types per date (Migration 012) 2026-03-22 17:36:49 +01:00
013_training_parameters.sql fix: add missing validation_rules in migration 013 (#15) 2026-03-23 11:01:53 +01:00
014_training_profiles.sql feat: Training Type Profiles - Phase 1.1 Foundation (#15) 2026-03-23 10:49:26 +01:00
014_vitals_extended.sql feat: extend vitals with blood pressure, VO2 max, SpO2, respiratory rate 2026-03-23 15:14:34 +01:00
015_vitals_refactoring.sql refactor: vitals architecture - separate baseline vs blood pressure 2026-03-23 16:02:40 +01:00
016_global_quality_filter.sql feat: global quality filter setting (Issue #31) 2026-03-23 22:29:49 +01:00
017_ai_prompts_flexibilisierung.sql feat: AI-Prompts flexibilisierung - Backend & Admin UI (Issue #28, Part 1) 2026-03-24 15:32:25 +01:00
018_prompt_display_name.sql feat: display_name + placeholder picker for prompts (Issue #28) 2026-03-25 06:31:25 +01:00
019_pipeline_system.sql feat: Pipeline-System - Backend Infrastructure (Issue #28, Phase 1) 2026-03-25 09:42:28 +01:00
020_unified_prompt_system.sql fix: migration 020 - make template column nullable 2026-03-25 14:45:53 +01:00
021_ai_insights_metadata.sql feat: value table + {{placeholder|d}} modifier (Issue #47) 2026-03-26 11:52:26 +01:00
check_features.sql feat: v9c Phase 1 - Feature consolidation & cleanup migration 2026-03-20 18:57:39 +01:00
v9c_cleanup_features.sql feat: v9c Phase 1 - Feature consolidation & cleanup migration 2026-03-20 18:57:39 +01:00
v9c_fix_features.sql fix: add missing feature check endpoint and features 2026-03-20 12:57:29 +01:00
v9c_subscription_system.sql fix: correct UUID foreign key constraints in v9c migration 2026-03-19 12:50:12 +01:00