From 7dda73aa74e5589c6ccf638787ca119dc8b3b8af Mon Sep 17 00:00:00 2001 From: iliya Date: Sat, 21 Mar 2026 15:07:52 +0200 Subject: [PATCH] refactor: update task assignment message formatting and enhance UI elements - Changed task assignment message to use italic formatting for task subject for better emphasis. - Updated the task instruction message to utilize a wrapping function for improved readability. - Enhanced splash screen background with an animated gradient for a more dynamic visual experience. - Improved team detail view messaging to clarify provisioning status. - Adjusted member list sorting logic to utilize a new lead member detection function. --- agent-teams-controller/src/internal/tasks.js | 4 +-- src/main/ipc/teams.ts | 4 +-- .../services/team/TeamProvisioningService.ts | 2 +- src/preload/index.ts | 4 +-- .../components/team/TeamDetailView.tsx | 2 +- .../components/team/ToolApprovalSheet.tsx | 4 +-- .../components/team/members/MemberList.tsx | 6 ++-- src/renderer/index.html | 32 +++++++++++++++++-- src/shared/utils/agentLanguage.ts | 2 +- 9 files changed, 43 insertions(+), 17 deletions(-) diff --git a/agent-teams-controller/src/internal/tasks.js b/agent-teams-controller/src/internal/tasks.js index 6c29a319..bf561290 100644 --- a/agent-teams-controller/src/internal/tasks.js +++ b/agent-teams-controller/src/internal/tasks.js @@ -46,9 +46,9 @@ function buildAssignmentMessage(context, task, options = {}) { typeof options.prompt === 'string' && options.prompt.trim() ? options.prompt.trim() : ''; const taskLabel = `#${task.displayId || task.id}`; const lines = [ - `New task assigned to you: ${taskLabel} "${task.subject}".`, + `New task assigned to you: ${taskLabel} *${task.subject}*`, ``, - `*If you are idle and this task is ready to start, start it now. If you are busy, blocked, or still need more context, immediately add a short task comment with the reason and your best ETA or what you are waiting on, and keep this task in TODO until you actually begin.*`, + wrapAgentBlock(`If you are idle and this task is ready to start, start it now. If you are busy, blocked, or still need more context, immediately add a short task comment with the reason and your best ETA or what you are waiting on, and keep this task in TODO until you actually begin.`), ]; if (description) { diff --git a/src/main/ipc/teams.ts b/src/main/ipc/teams.ts index 2e46faf3..34ff37ae 100644 --- a/src/main/ipc/teams.ts +++ b/src/main/ipc/teams.ts @@ -11,6 +11,7 @@ import { TEAM_CREATE, TEAM_CREATE_CONFIG, TEAM_CREATE_TASK, + TEAM_DELETE_DRAFT, TEAM_DELETE_TASK_ATTACHMENT, TEAM_DELETE_TEAM, TEAM_GET_ALL_TASKS, @@ -22,6 +23,7 @@ import { TEAM_GET_MEMBER_LOGS, TEAM_GET_MEMBER_STATS, TEAM_GET_PROJECT_BRANCH, + TEAM_GET_SAVED_REQUEST, TEAM_GET_TASK_ATTACHMENT, TEAM_KILL_PROCESS, TEAM_LAUNCH, @@ -51,8 +53,6 @@ import { TEAM_TOOL_APPROVAL_READ_FILE, TEAM_TOOL_APPROVAL_RESPOND, TEAM_TOOL_APPROVAL_SETTINGS, - TEAM_GET_SAVED_REQUEST, - TEAM_DELETE_DRAFT, TEAM_UPDATE_CONFIG, TEAM_UPDATE_KANBAN, TEAM_UPDATE_KANBAN_COLUMN_ORDER, diff --git a/src/main/services/team/TeamProvisioningService.ts b/src/main/services/team/TeamProvisioningService.ts index 1f374c75..6c939c82 100644 --- a/src/main/services/team/TeamProvisioningService.ts +++ b/src/main/services/team/TeamProvisioningService.ts @@ -55,9 +55,9 @@ import { withFileLock } from './fileLock'; import { withInboxLock } from './inboxLock'; import { TeamConfigReader } from './TeamConfigReader'; import { TeamInboxReader } from './TeamInboxReader'; -import { TeamMetaStore } from './TeamMetaStore'; import { TeamMcpConfigBuilder } from './TeamMcpConfigBuilder'; import { TeamMembersMetaStore } from './TeamMembersMetaStore'; +import { TeamMetaStore } from './TeamMetaStore'; import { TeamSentMessagesStore } from './TeamSentMessagesStore'; import { TeamTaskReader } from './TeamTaskReader'; diff --git a/src/preload/index.ts b/src/preload/index.ts index 25cc3189..9b360223 100644 --- a/src/preload/index.ts +++ b/src/preload/index.ts @@ -113,6 +113,7 @@ import { TEAM_CREATE, TEAM_CREATE_CONFIG, TEAM_CREATE_TASK, + TEAM_DELETE_DRAFT, TEAM_DELETE_TASK_ATTACHMENT, TEAM_DELETE_TEAM, TEAM_GET_ALL_TASKS, @@ -124,6 +125,7 @@ import { TEAM_GET_MEMBER_LOGS, TEAM_GET_MEMBER_STATS, TEAM_GET_PROJECT_BRANCH, + TEAM_GET_SAVED_REQUEST, TEAM_GET_TASK_ATTACHMENT, TEAM_KILL_PROCESS, TEAM_LAUNCH, @@ -132,8 +134,6 @@ import { TEAM_LIST, TEAM_MEMBER_SPAWN_STATUSES, TEAM_PERMANENTLY_DELETE, - TEAM_GET_SAVED_REQUEST, - TEAM_DELETE_DRAFT, TEAM_PREPARE_PROVISIONING, TEAM_PROCESS_ALIVE, TEAM_PROCESS_SEND, diff --git a/src/renderer/components/team/TeamDetailView.tsx b/src/renderer/components/team/TeamDetailView.tsx index db91bd1e..e52bfb00 100644 --- a/src/renderer/components/team/TeamDetailView.tsx +++ b/src/renderer/components/team/TeamDetailView.tsx @@ -1029,7 +1029,7 @@ export const TeamDetailView = ({ teamName }: TeamDetailViewProps): React.JSX.Ele
- No team data available + Team data will appear once provisioning completes
); diff --git a/src/renderer/components/team/ToolApprovalSheet.tsx b/src/renderer/components/team/ToolApprovalSheet.tsx index 4a5a95b5..7e0292f3 100644 --- a/src/renderer/components/team/ToolApprovalSheet.tsx +++ b/src/renderer/components/team/ToolApprovalSheet.tsx @@ -7,9 +7,9 @@ import { shortenDisplayPath } from '@renderer/utils/pathDisplay'; import { highlightLines } from '@renderer/utils/syntaxHighlighter'; import { AlertTriangle, FileText, Search, Terminal } from 'lucide-react'; -import { ToolApprovalDiffPreview } from './ToolApprovalDiffPreview'; import { ToolApprovalSettingsPanel } from './dialogs/ToolApprovalSettingsPanel'; import { FileIcon } from './editor/FileIcon'; +import { ToolApprovalDiffPreview } from './ToolApprovalDiffPreview'; import type { ToolApprovalRequest } from '@shared/types'; @@ -188,7 +188,7 @@ export const ToolApprovalSheet: React.FC = () => { return (
!m.removedAt) .sort((a, b) => { - if (isLeadAgentType(a.agentType)) return -1; - if (isLeadAgentType(b.agentType)) return 1; + if (isLeadMember(a)) return -1; + if (isLeadMember(b)) return 1; return 0; }); const removedMembers = members.filter((m) => m.removedAt); diff --git a/src/renderer/index.html b/src/renderer/index.html index 7adb5d28..babea5d8 100644 --- a/src/renderer/index.html +++ b/src/renderer/index.html @@ -6,14 +6,30 @@ Claude Agent Teams UI