Spaces:
Sleeping
Sleeping
Commit
·
8170b74
1
Parent(s):
c5a7e19
Update
Browse files
frontend/src/components/ResultsPanel.tsx
CHANGED
|
@@ -87,7 +87,7 @@ export function ResultsPanel({ uploadedImage, result, loading }: ResultsPanelPro
|
|
| 87 |
{isLoading ? (
|
| 88 |
<div className="bg-white rounded-lg shadow-sm p-6 flex flex-col items-center justify-center">
|
| 89 |
<Loader2Icon className="w-10 h-10 text-blue-600 animate-spin mb-3" />
|
| 90 |
-
<p className="text-teal-700 font-medium">
|
| 91 |
</div>
|
| 92 |
) : (
|
| 93 |
// Image
|
|
@@ -271,8 +271,8 @@ export function ResultsPanel({ uploadedImage, result, loading }: ResultsPanelPro
|
|
| 271 |
|
| 272 |
{/* Report Generation Modal */}
|
| 273 |
{/* Move Generate Report button here so it's shown after analysis details. */}
|
| 274 |
-
{/* Show only when not loading and we have
|
| 275 |
-
{!isLoading &&
|
| 276 |
<div className="flex items-center justify-end mb-6">
|
| 277 |
{annotated_image_url && (
|
| 278 |
<button
|
|
|
|
| 87 |
{isLoading ? (
|
| 88 |
<div className="bg-white rounded-lg shadow-sm p-6 flex flex-col items-center justify-center">
|
| 89 |
<Loader2Icon className="w-10 h-10 text-blue-600 animate-spin mb-3" />
|
| 90 |
+
<p className="text-teal-700 font-medium">Analyzing image...</p>
|
| 91 |
</div>
|
| 92 |
) : (
|
| 93 |
// Image
|
|
|
|
| 271 |
|
| 272 |
{/* Report Generation Modal */}
|
| 273 |
{/* Move Generate Report button here so it's shown after analysis details. */}
|
| 274 |
+
{/* Show only when not loading and we have at least a result (so Generate Report is available even if summary/confidence are missing) */}
|
| 275 |
+
{!isLoading && result && (
|
| 276 |
<div className="flex items-center justify-end mb-6">
|
| 277 |
{annotated_image_url && (
|
| 278 |
<button
|