malavikapradeep2001 commited on
Commit
8170b74
·
1 Parent(s): c5a7e19
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">Analysing Image...</p>
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 analysis data (summary or confidence) */}
275
- {!isLoading && (summary || confidence) && (
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