fix(frontend): align project types with backend enums

- Fix ProjectStatus: use 'active' instead of 'in_progress'
- Fix AgentStatus: remove 'active'/'pending'/'error', add 'waiting'
- Fix SprintStatus: add 'in_review'
- Rename IssueSummary to IssueCountSummary
- Update all components to use correct enum values
This commit is contained in:
2025-12-31 12:48:02 +01:00
parent 1bf11e985c
commit 3264fc0206
7 changed files with 43 additions and 43 deletions

View File

@@ -14,21 +14,17 @@ const statusConfig: Record<AgentStatus, { color: string; label: string }> = {
color: 'bg-yellow-500',
label: 'Idle',
},
active: {
color: 'bg-green-500',
label: 'Active',
},
working: {
color: 'bg-green-500 animate-pulse',
label: 'Working',
},
pending: {
color: 'bg-gray-400',
label: 'Pending',
waiting: {
color: 'bg-blue-500',
label: 'Waiting',
},
error: {
color: 'bg-red-500',
label: 'Error',
paused: {
color: 'bg-gray-400',
label: 'Paused',
},
terminated: {
color: 'bg-gray-600',
@@ -49,7 +45,7 @@ export function AgentStatusIndicator({
showLabel = false,
className,
}: AgentStatusIndicatorProps) {
const config = statusConfig[status] || statusConfig.pending;
const config = statusConfig[status] || statusConfig.idle;
const sizeClasses = {
sm: 'h-2 w-2',