Spaces:
Sleeping
Sleeping
Commit
·
bf6bb9b
1
Parent(s):
3e95f42
Update
Browse files
frontend/src/components/ResultsPanel.tsx
CHANGED
|
@@ -188,16 +188,19 @@ export function ResultsPanel({ uploadedImage, result, loading }: ResultsPanelPro
|
|
| 188 |
)}
|
| 189 |
|
| 190 |
{/* Report Generation Modal */}
|
| 191 |
-
{/* Move Generate Report button here so it's shown after analysis details */}
|
| 192 |
-
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
|
|
|
|
|
|
|
|
|
|
| 201 |
<ReportModal
|
| 202 |
isOpen={showReportModal}
|
| 203 |
onClose={() => setShowReportModal(false)}
|
|
|
|
| 188 |
)}
|
| 189 |
|
| 190 |
{/* Report Generation Modal */}
|
| 191 |
+
{/* Move Generate Report button here so it's shown after analysis details. */}
|
| 192 |
+
{/* Show only when not loading and we have analysis data (summary or confidence) */}
|
| 193 |
+
{!isLoading && (summary || confidence) && (
|
| 194 |
+
<div className="flex items-center justify-end mb-6">
|
| 195 |
+
<button
|
| 196 |
+
onClick={() => setShowReportModal(true)}
|
| 197 |
+
className="flex items-center gap-2 bg-gradient-to-r from-teal-700 via-teal-600 to-teal-700 text-white px-4 py-2 rounded-lg hover:opacity-90 transition-all"
|
| 198 |
+
>
|
| 199 |
+
<FileTextIcon className="w-4 h-4" />
|
| 200 |
+
Generate Report
|
| 201 |
+
</button>
|
| 202 |
+
</div>
|
| 203 |
+
)}
|
| 204 |
<ReportModal
|
| 205 |
isOpen={showReportModal}
|
| 206 |
onClose={() => setShowReportModal(false)}
|