Skip to content

JiuwenSwarm is an intelligent AI Agent built on openJiuwen. It extends the powerful capabilities of large language models directly to your fingertips through various communication apps you use daily.

Python

fix(web-frontend): Session - Cluster Mode - Modify icons for task overview/team member status

openJiuwen-bot9a45a2ccb7d3
diff --git a/jiuwenswarm/channels/web/frontend/src/components/teamArea/MemberListItem.tsx b/jiuwenswarm/channels/web/frontend/src/components/teamArea/MemberListItem.tsx
index 1a89c2b30e..4faa8652ef 100644
--- a/jiuwenswarm/channels/web/frontend/src/components/teamArea/MemberListItem.tsx
+++ b/jiuwenswarm/channels/web/frontend/src/components/teamArea/MemberListItem.tsx
@@ -39,6 +39,8 @@ export function MemberListItem({
const circumference = 2 * Math.PI * radius;
const strokeDashoffset = circumference - (progressPercent / 100) * circumference;
+ const isRunning = statusKey === 'running';
+
return (
<button
type="button"
@@ -58,7 +60,9 @@ export function MemberListItem({
className={`${compact ? 'h-8 w-8' : 'h-10 w-10'} rounded-full`}
imageClassName="rounded-full"
/>
- <span className={`absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full border-2 border-card ${getMemberStatusDotClass(member)}`} />
+ {!compact && (
+ <span className={`absolute -bottom-0.5 -right-0.5 h-3 w-3 rounded-full border-2 border-card ${getMemberStatusDotClass(member)}`} />
+ )}
</div>
<div className="min-w-0 flex-1">
<div className="flex items-center gap-2">
@@ -72,7 +76,24 @@ export function MemberListItem({
</div>
)}
</div>
- {taskProgress && taskProgress.total > 0 ? (
+ {compact ? (
+ isRunning ? (
+ <svg className="w-4 h-4 text-info animate-spin" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 2v4" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="m16.2 7.8 2.9-2.9" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M18 12h4" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="m16.2 16.2 2.9 2.9" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 18v4" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="m4.9 19.1 2.9-2.9" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M2 12h4" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="m4.9 4.9 2.9 2.9" />
+ </svg>
+ ) : (
+ <svg className="w-4 h-4 text-text-muted" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 8v4l3 3m6-3a9 9 0 11-18 0 9 9 0 0118 0z" />
+ </svg>
+ )
+ ) : taskProgress && taskProgress.total > 0 ? (
<div className="shrink-0 relative">
<svg width="32" height="32" className="shrink-0">
<circle
diff --git a/jiuwenswarm/channels/web/frontend/src/components/teamArea/TaskPlanningPanel.tsx b/jiuwenswarm/channels/web/frontend/src/components/teamArea/TaskPlanningPanel.tsx
index 41dce28db2..833a1efc4b 100644
--- a/jiuwenswarm/channels/web/frontend/src/components/teamArea/TaskPlanningPanel.tsx
+++ b/jiuwenswarm/channels/web/frontend/src/components/teamArea/TaskPlanningPanel.tsx
@@ -1,7 +1,7 @@
import { useMemo, useState } from 'react';
import type { ReactNode } from 'react';
import { useTranslation } from 'react-i18next';
-import { CircleCheck, Clock3, File, Loader2, Puzzle, XCircle } from 'lucide-react';
+import { CircleCheck, File, Puzzle, XCircle } from 'lucide-react';
import { TeamMemberAvatar } from '../TeamMemberAvatar';
import type { TeamTask as SessionTeamTask } from '../../stores/sessionStore';
import teamProcessIcon from '../../assets/team-process.svg';
@@ -142,8 +142,21 @@ export function TaskPlanningPanel({
)}
<span className="flex-1 text-sm text-text truncate">{title}</span>
{columnKey === 'completed' && <CircleCheck className="w-4 h-4 text-ok shrink-0" />}
- {columnKey === 'running' && <Loader2 className="w-4 h-4 text-accent shrink-0 animate-spin" />}
- {columnKey === 'waiting' && <Clock3 className="w-4 h-4 text-warn shrink-0" />}
+ {columnKey === 'running' && (
+ <svg width="16" height="16" className="w-4 h-4 text-info animate-spin flex-shrink-0" fill="none" stroke="currentColor" viewBox="0 0 24 24">
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 2v4" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="m16.2 7.8 2.9-2.9" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M18 12h4" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="m16.2 16.2 2.9 2.9" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M12 18v4" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="m4.9 19.1 2.9-2.9" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M2 12h4" />
+ <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="m4.9 4.9 2.9 2.9" />
+ </svg>
+ )}
+ {columnKey === 'waiting' && (
+ <svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" className="lucide lucide-clock4-icon lucide-clock-4"><circle cx="12" cy="12" r="10"/><path d="M12 6v6l4 2"/></svg>
+ )}
{columnKey === 'cancelled' && <XCircle className="w-4 h-4 text-danger shrink-0" />}
</div>
);