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

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
2025-12-31 12:48:02 +01:00
parent 5fab15a11e
commit 35af7daf90
7 changed files with 43 additions and 43 deletions

View File

@@ -24,7 +24,7 @@ import {
} from '@/components/ui/card';
import { Separator } from '@/components/ui/separator';
import { Skeleton } from '@/components/ui/skeleton';
import type { IssueSummary as IssueSummaryType } from './types';
import type { IssueCountSummary } from './types';
// ============================================================================
// Types
@@ -32,7 +32,7 @@ import type { IssueSummary as IssueSummaryType } from './types';
interface IssueSummaryProps {
/** Issue summary data */
summary: IssueSummaryType | null;
summary: IssueCountSummary | null;
/** Whether data is loading */
isLoading?: boolean;
/** Callback when "View All Issues" is clicked */
@@ -171,8 +171,8 @@ export function IssueSummary({
<StatusRow
icon={CheckCircle2}
iconColor="text-green-500"
label="Completed"
count={summary.done}
label="Closed"
count={summary.closed}
/>
{onViewAllIssues && (