sessions: viewer-aware empty state for analysis results

The empty state no longer tells read-only viewers to click a button
they do not have.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This commit is contained in:
Oliver Kieselbach
2026-08-13 18:04:16 +02:00
parent 383d0694fe
commit 6c2b431aec
3 changed files with 3 additions and 1 deletions
@@ -178,7 +178,9 @@ export default function AnalysisResultsSection({
<div className="text-center py-4 text-gray-500">Running analysis...</div>
) : analysisResults.length === 0 ? (
<div className="text-center py-4 text-gray-400 text-sm">
No issues detected yet. Click &quot;Analyze Now&quot; to run analysis on the current events, or wait for enrollment to complete for automatic analysis.
{canReanalyze
? 'No issues detected yet. Click "Analyze Now" to run analysis on the current events, or wait for enrollment to complete for automatic analysis.'
: "No issues detected yet. Analysis runs automatically when enrollment completes."}
</div>
) : (
<div className="space-y-3">
Binary file not shown.

After

Width:  |  Height:  |  Size: 247 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 70 KiB