@@ -17,6 +17,7 @@ import { useFilters } from '@/shared/lib/useFilters.ts';
1717import { PageTopBar , StatusBadge , Tags , PaginationBar , DateDisplay , FilterBar , FilterControl } from '@/shared/ui/index.ts' ;
1818import { listEpics , type Epic , type EpicStatus } from '@/entities/epic/index.ts' ;
1919import { PRIORITY_COLORS , PRIORITY_BADGE_COLOR , priorityLabel , type TaskPriority } from '@/entities/task/index.ts' ;
20+ import { TasksTabs } from '@/pages/tasks/TasksTabs.tsx' ;
2021
2122const EPIC_STATUS_COLOR : Record < EpicStatus , string > = {
2223 open : '#1976d2' ,
@@ -142,13 +143,14 @@ export default function EpicsPage() {
142143 return (
143144 < Box >
144145 < PageTopBar
145- breadcrumbs = { [ { label : 'Epics' } ] }
146+ breadcrumbs = { [ { label : 'Tasks' , to : `/ ${ projectId } /tasks` } , { label : ' Epics' } ] }
146147 actions = { canWrite ? (
147- < Button variant = "contained" startIcon = { < AddIcon /> } onClick = { ( ) => navigate ( `/${ projectId } /epics/new` ) } >
148+ < Button variant = "contained" startIcon = { < AddIcon /> } onClick = { ( ) => navigate ( `/${ projectId } /tasks/ epics/new` ) } >
148149 New Epic
149150 </ Button >
150151 ) : undefined }
151152 />
153+ < TasksTabs />
152154
153155 { /* Filter bar */ }
154156 < FilterBar activeFilters = { activeFilterChips } onClearAll = { handleClearAll } >
@@ -194,7 +196,7 @@ export default function EpicsPage() {
194196 { epics . length === 0 && canWrite ? 'Create your first epic to group related tasks' : '' }
195197 </ Typography >
196198 { epics . length === 0 && canWrite && (
197- < Button variant = "contained" startIcon = { < AddIcon /> } onClick = { ( ) => navigate ( `/${ projectId } /epics/new` ) } > New Epic</ Button >
199+ < Button variant = "contained" startIcon = { < AddIcon /> } onClick = { ( ) => navigate ( `/${ projectId } /tasks/ epics/new` ) } > New Epic</ Button >
198200 ) }
199201 </ Box >
200202 ) : (
@@ -219,7 +221,7 @@ export default function EpicsPage() {
219221 key = { epic . id }
220222 hover
221223 sx = { { cursor : 'pointer' } }
222- onClick = { ( ) => navigate ( `/${ projectId } /epics/${ epic . id } ` ) }
224+ onClick = { ( ) => navigate ( `/${ projectId } /tasks/ epics/${ epic . id } ` ) }
223225 >
224226 < TableCell >
225227 < Typography variant = "body2" fontWeight = { 600 } noWrap > { epic . title } </ Typography >
0 commit comments