fix(frontend): align issue types with backend enums

- Fix IssueStatus: remove 'done', keep 'closed'
- Add IssuePriority 'critical' level
- Add IssueType enum (epic, story, task, bug)
- Update constants, hooks, and mocks to match
- Fix StatusWorkflow component icons
This commit is contained in:
2025-12-31 12:47:52 +01:00
parent d9db2031da
commit 1bf11e985c
5 changed files with 31 additions and 13 deletions

View File

@@ -16,6 +16,7 @@ export const mockIssues: IssueSummary[] = [
{
id: 'ISS-001',
number: 42,
type: 'story',
title: 'Implement user authentication flow',
description:
'Create complete authentication flow with login, register, and password reset.',
@@ -31,6 +32,7 @@ export const mockIssues: IssueSummary[] = [
{
id: 'ISS-002',
number: 43,
type: 'task',
title: 'Design product catalog component',
description: 'Create reusable product card and catalog grid components.',
status: 'in_review',
@@ -45,6 +47,7 @@ export const mockIssues: IssueSummary[] = [
{
id: 'ISS-003',
number: 44,
type: 'bug',
title: 'Fix cart total calculation bug',
description: 'Cart total shows incorrect amount when discount is applied.',
status: 'blocked',
@@ -60,6 +63,7 @@ export const mockIssues: IssueSummary[] = [
{
id: 'ISS-004',
number: 45,
type: 'story',
title: 'Add product search functionality',
description: 'Implement full-text search with filters for the product catalog.',
status: 'open',
@@ -74,9 +78,10 @@ export const mockIssues: IssueSummary[] = [
{
id: 'ISS-005',
number: 46,
type: 'task',
title: 'Optimize database queries for product listing',
description: 'Performance optimization for product queries with pagination.',
status: 'done',
status: 'closed',
priority: 'low',
labels: ['performance', 'backend', 'database'],
sprint: 'Sprint 2',
@@ -88,9 +93,10 @@ export const mockIssues: IssueSummary[] = [
{
id: 'ISS-006',
number: 47,
type: 'task',
title: 'Create checkout page wireframes',
description: 'Design wireframes for the checkout flow including payment selection.',
status: 'done',
status: 'closed',
priority: 'high',
labels: ['design', 'checkout', 'ui'],
sprint: 'Sprint 2',
@@ -102,6 +108,7 @@ export const mockIssues: IssueSummary[] = [
{
id: 'ISS-007',
number: 48,
type: 'story',
title: 'Implement responsive navigation',
description: 'Create mobile-friendly navigation with hamburger menu.',
status: 'open',
@@ -116,6 +123,7 @@ export const mockIssues: IssueSummary[] = [
{
id: 'ISS-008',
number: 49,
type: 'task',
title: 'Set up E2E test framework',
description: 'Configure Playwright for end-to-end testing.',
status: 'in_progress',
@@ -135,6 +143,7 @@ export const mockIssues: IssueSummary[] = [
export const mockIssueDetail: IssueDetail = {
id: 'ISS-001',
number: 42,
type: 'story',
title: 'Implement user authentication flow',
description: `## Overview
Create a complete authentication flow for the e-commerce platform.