diff --git a/web-ui/src/components/cases/agent-activity-feed.tsx b/web-ui/src/components/cases/agent-activity-feed.tsx index 7143c26..3726952 100644 --- a/web-ui/src/components/cases/agent-activity-feed.tsx +++ b/web-ui/src/components/cases/agent-activity-feed.tsx @@ -225,6 +225,12 @@ export function AgentActivityFeed({ const comments = data.comments ?? []; + // An issue is "active" if it's not done/cancelled. When everything is closed + // we should NOT show the "agents are working, waiting for report" spinner. + const hasActiveIssue = data.issues.some( + (iss) => iss.status !== "done" && iss.status !== "cancelled", + ); + return (
{/* Issue summary bar */} @@ -243,10 +249,17 @@ export function AgentActivityFeed({ {/* Comments stream */}
{comments.length === 0 ? ( -
- - הסוכנים התחילו לעבוד, ממתין לדיווח ראשון... -
+ hasActiveIssue ? ( +
+ + הסוכנים התחילו לעבוד, ממתין לדיווח ראשון... +
+ ) : ( +
+ + אין משימות פעילות בתיק. כל המשימות הסתיימו או בוטלו. +
+ ) ) : ( comments.map((c) => (