# Task 10: Add Hierarchy Indicators **Task ID**: TASK-010 | **Story**: [STORY-003](sprint_1_story_3.md) | **Sprint**: [Sprint 1](sprint_1.md) **Estimated Hours**: 2h | **Assignee**: Frontend Developer 1 | **Priority**: P1 | **Status**: Not Started ## Task Description Add visual indicators on Kanban cards to show Epic/Story/Task hierarchy relationships. ## Implementation ### Update KanbanCard.tsx (1.5h) ```typescript export const KanbanCard: React.FC<{ item: Epic | Story | Task }> = ({ item }) => { const getTypeIcon = () => { switch (item.type) { case 'Epic': return 📊; case 'Story': return 📝; case 'Task': return ; } }; const renderParentBreadcrumb = () => { if (item.type === 'Story' && item.parentEpic) { return (
📊 {item.parentEpic.title}
); } if (item.type === 'Task' && item.parentStory) { return (
📝 {item.parentStory.title}
); } return null; }; const renderChildCount = () => { if (item.childCount > 0) { return ( {item.childCount} {item.type === 'Epic' ? 'stories' : 'tasks'} ); } return null; }; return (
{getTypeIcon()} {renderChildCount()}
{renderParentBreadcrumb()}

{item.title}

{item.description}

); }; ``` ### Add CSS styles (30 min) ```css .kanban-card { min-height: 100px; transition: all 0.2s ease; } .kanban-card:hover { transform: translateY(-2px); } .hierarchy-breadcrumb { font-size: 0.75rem; color: #6b7280; margin-bottom: 0.5rem; } .child-count-badge { display: inline-flex; align-items: center; padding: 0.25rem 0.5rem; background-color: #dbeafe; color: #1e40af; border-radius: 0.25rem; font-size: 0.75rem; } ``` ## Acceptance Criteria - [ ] Type icons displayed (Epic/Story/Task) - [ ] Parent breadcrumb visible on child items - [ ] Child count badge shown - [ ] Hover effects working - [ ] Responsive on mobile ## Deliverables 1. Updated KanbanCard.tsx 2. CSS styles 3. Unit tests (5+ tests) **Status**: Not Started | **Created**: 2025-11-04