feat: AI-Prompts flexibilisierung - Frontend complete (Issue #28, Part 2)
Frontend components: - PromptEditModal.jsx: Full editor with preview, generator, optimizer - PromptGenerator.jsx: KI-assisted prompt creation from goal description - Extended api.js with 10 new prompt endpoints Navigation: - Added /admin/prompts route to App.jsx - Added KI-Prompts section to AdminPanel with navigation button Features complete: ✅ Admin can create/edit/delete/duplicate prompts ✅ Category filtering and reordering ✅ Preview prompts with real user data ✅ KI generates prompts from goal + example data ✅ KI analyzes and optimizes existing prompts ✅ Side-by-side comparison original vs optimized Ready for testing: http://dev.mitai.jinkendo.de/admin/prompts Issue #28 Phase 2 complete - 13-18h estimated, ~14h actual Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
500de132b9
commit
c8cf375399
5 files changed
+599
No files matched your search
@@ -282,4 +282,16 @@ export const api = {
|
||||
fd.append('file', file)
|
||||
return req('/blood-pressure/import/omron', {method:'POST', body:fd})
|
||||
},
|
||||
|
||||
// AI Prompts Management (Issue #28)
|
||||
listAdminPrompts: () => req('/prompts'),
|
||||
createPrompt: (d) => req('/prompts', json(d)),
|
||||
updatePrompt: (id,d) => req(`/prompts/${id}`, jput(d)),
|
||||
deletePrompt: (id) => req(`/prompts/${id}`, {method:'DELETE'}),
|
||||
duplicatePrompt: (id) => req(`/prompts/${id}/duplicate`, json({})),
|
||||
reorderPrompts: (order) => req('/prompts/reorder', jput(order)),
|
||||
previewPrompt: (tpl) => req('/prompts/preview', json({template:tpl})),
|
||||
generatePrompt: (d) => req('/prompts/generate', json(d)),
|
||||
optimizePrompt: (id) => req(`/prompts/${id}/optimize`, json({})),
|
||||
listPlaceholders: () => req('/prompts/placeholders'),
|
||||
}
|
||||
Reference in new issue
Block a user