forked from cardosofelipe/pragma-stack
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:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user