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
@@ -451,6 +451,23 @@ export default function AdminPanel() {
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
{/* KI-Prompts Section */}
|
||||
<div className="card">
|
||||
<div style={{fontWeight:700,fontSize:14,marginBottom:12,display:'flex',alignItems:'center',gap:6}}>
|
||||
<Settings size={16} color="var(--accent)"/> KI-Prompts (v9f)
|
||||
</div>
|
||||
<div style={{fontSize:12,color:'var(--text3)',marginBottom:12,lineHeight:1.5}}>
|
||||
Verwalte AI-Prompts mit KI-Unterstützung: Generiere, optimiere und organisiere Prompts.
|
||||
</div>
|
||||
<div style={{display:'grid',gap:8}}>
|
||||
<Link to="/admin/prompts">
|
||||
<button className="btn btn-secondary btn-full">
|
||||
🤖 KI-Prompts verwalten
|
||||
</button>
|
||||
</Link>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
Reference in new issue
Block a user