Platzhaltersystem für Ernährung, Körper und Aktivity #60

Merged
Lars merged 1 commits from develop into main 2026-04-03 09:28:14 +02:00
Owner

Problem:

  • get_placeholder_catalog() hatte hardcodierte Liste (Körper: 11, Ernährung: 8, Training: 9)
  • Registry hat vollständige Cluster (Körper: 17, Ernährung: 14, Aktivität: 17)
  • Export zeigte unvollständige Placeholder-Zählungen

Lösung:

  • get_placeholder_catalog() nutzt jetzt get_registry() als primäre Quelle
  • Fallback auf Legacy-Liste nur für nicht-registrierte Placeholder
  • Automatisch aktuell bei neuen Registry-Einträgen

Betroffen:

  • /api/prompts/placeholders/export-values (Settings Export)
  • /api/prompts/placeholders/export-values-extended (Metadata Export)
  • /api/prompts/execute (Prompt Test Debug-Export)
  • /api/prompts/placeholders/catalog (Catalog Endpoint)

Erwartete Zahlen nach Deploy:

  • Körper: 17 (statt 11)
  • Ernährung: 14 (statt 8)
  • Aktivität: 17 (statt 9)
  • Total: ~70-75 Placeholder (48 Registry + Legacy)

Co-Authored-By: Claude Opus 4.6 noreply@anthropic.com

Problem: - get_placeholder_catalog() hatte hardcodierte Liste (Körper: 11, Ernährung: 8, Training: 9) - Registry hat vollständige Cluster (Körper: 17, Ernährung: 14, Aktivität: 17) - Export zeigte unvollständige Placeholder-Zählungen Lösung: - get_placeholder_catalog() nutzt jetzt get_registry() als primäre Quelle - Fallback auf Legacy-Liste nur für nicht-registrierte Placeholder - Automatisch aktuell bei neuen Registry-Einträgen Betroffen: - /api/prompts/placeholders/export-values (Settings Export) - /api/prompts/placeholders/export-values-extended (Metadata Export) - /api/prompts/execute (Prompt Test Debug-Export) - /api/prompts/placeholders/catalog (Catalog Endpoint) Erwartete Zahlen nach Deploy: - Körper: 17 (statt 11) - Ernährung: 14 (statt 8) - Aktivität: 17 (statt 9) - Total: ~70-75 Placeholder (48 Registry + Legacy) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Lars added 1 commit 2026-04-03 09:28:06 +02:00
fix: Placeholder Catalog nutzt Registry als Single Source of Truth
All checks were successful
Deploy Development / deploy (push) Successful in 56s
Build Test / lint-backend (push) Successful in 1s
Build Test / build-frontend (push) Successful in 14s
c04e72a397
Problem:
- get_placeholder_catalog() hatte hardcodierte Liste (Körper: 11, Ernährung: 8, Training: 9)
- Registry hat vollständige Cluster (Körper: 17, Ernährung: 14, Aktivität: 17)
- Export zeigte unvollständige Placeholder-Zählungen

Lösung:
- get_placeholder_catalog() nutzt jetzt get_registry() als primäre Quelle
- Fallback auf Legacy-Liste nur für nicht-registrierte Placeholder
- Automatisch aktuell bei neuen Registry-Einträgen

Betroffen:
- /api/prompts/placeholders/export-values (Settings Export)
- /api/prompts/placeholders/export-values-extended (Metadata Export)
- /api/prompts/execute (Prompt Test Debug-Export)
- /api/prompts/placeholders/catalog (Catalog Endpoint)

Erwartete Zahlen nach Deploy:
- Körper: 17 (statt 11)
- Ernährung: 14 (statt 8)
- Aktivität: 17 (statt 9)
- Total: ~70-75 Placeholder (48 Registry + Legacy)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Lars merged commit 3f5b9b8b58 into main 2026-04-03 09:28:14 +02:00
Sign in to join this conversation.
No reviewers
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: Lars/mitai-jinkendo#60
No description provided.