Split 876-LOC page.tsx into 146 LOC with 7 colocated components (RoadmapCard, CreateRoadmapModal, CreateItemModal, ImportWizard, RoadmapDetailView split into header + items table), plus _types.ts, _constants.ts, and _api.ts. Behavior preserved. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
45 lines
1.2 KiB
TypeScript
45 lines
1.2 KiB
TypeScript
export const statusColors: Record<string, string> = {
|
|
draft: 'bg-gray-100 text-gray-700',
|
|
active: 'bg-green-100 text-green-700',
|
|
completed: 'bg-purple-100 text-purple-700',
|
|
archived: 'bg-red-100 text-red-700',
|
|
}
|
|
|
|
export const statusLabels: Record<string, string> = {
|
|
draft: 'Entwurf',
|
|
active: 'Aktiv',
|
|
completed: 'Abgeschlossen',
|
|
archived: 'Archiviert',
|
|
}
|
|
|
|
export const itemStatusColors: Record<string, string> = {
|
|
PLANNED: 'bg-gray-100 text-gray-700',
|
|
IN_PROGRESS: 'bg-blue-100 text-blue-700',
|
|
BLOCKED: 'bg-red-100 text-red-700',
|
|
COMPLETED: 'bg-green-100 text-green-700',
|
|
DEFERRED: 'bg-yellow-100 text-yellow-700',
|
|
}
|
|
|
|
export const itemStatusLabels: Record<string, string> = {
|
|
PLANNED: 'Geplant',
|
|
IN_PROGRESS: 'In Arbeit',
|
|
BLOCKED: 'Blockiert',
|
|
COMPLETED: 'Erledigt',
|
|
DEFERRED: 'Verschoben',
|
|
}
|
|
|
|
export const priorityColors: Record<string, string> = {
|
|
CRITICAL: 'bg-red-100 text-red-700',
|
|
HIGH: 'bg-orange-100 text-orange-700',
|
|
MEDIUM: 'bg-yellow-100 text-yellow-700',
|
|
LOW: 'bg-green-100 text-green-700',
|
|
}
|
|
|
|
export const categoryLabels: Record<string, string> = {
|
|
TECHNICAL: 'Technisch',
|
|
ORGANIZATIONAL: 'Organisatorisch',
|
|
PROCESSUAL: 'Prozessual',
|
|
DOCUMENTATION: 'Dokumentation',
|
|
TRAINING: 'Schulung',
|
|
}
|