diff --git a/frontend/src/pages/Analysis.jsx b/frontend/src/pages/Analysis.jsx index 4cba2e8..8c3b2aa 100644 --- a/frontend/src/pages/Analysis.jsx +++ b/frontend/src/pages/Analysis.jsx @@ -1,5 +1,6 @@ import React, { useState, useEffect } from 'react' -import { Brain, Trash2, ChevronDown, ChevronUp } from 'lucide-react' +import { Brain, Trash2, ChevronDown, ChevronUp, Target } from 'lucide-react' +import { useNavigate } from 'react-router-dom' import { api } from '../utils/api' import { useAuth } from '../context/AuthContext' import Markdown from '../utils/Markdown' @@ -277,6 +278,7 @@ function InsightCard({ ins, onDelete, defaultOpen=false, prompts=[] }) { export default function Analysis() { const { canUseAI } = useAuth() + const navigate = useNavigate() const [prompts, setPrompts] = useState([]) const [allInsights, setAllInsights] = useState([]) const [loading, setLoading] = useState(null) @@ -386,7 +388,16 @@ export default function Analysis() { return (
-

KI-Analyse

+
+

KI-Analyse

+ +
diff --git a/frontend/src/pages/GoalsPage.jsx b/frontend/src/pages/GoalsPage.jsx index bded3b3..84f091f 100644 --- a/frontend/src/pages/GoalsPage.jsx +++ b/frontend/src/pages/GoalsPage.jsx @@ -509,7 +509,7 @@ export default function GoalsPage() { setFormData(f => ({ ...f, name: e.target.value }))} placeholder="z.B. Sommerfigur 2026" @@ -572,7 +572,7 @@ export default function GoalsPage() { setFormData(f => ({ ...f, target_date: e.target.value }))} /> @@ -591,7 +591,7 @@ export default function GoalsPage() {