diff --git a/src/renderer/components/team/dialogs/TaskDetailDialog.tsx b/src/renderer/components/team/dialogs/TaskDetailDialog.tsx index 0730d67a..194f91c3 100644 --- a/src/renderer/components/team/dialogs/TaskDetailDialog.tsx +++ b/src/renderer/components/team/dialogs/TaskDetailDialog.tsx @@ -818,6 +818,83 @@ export const TaskDetailDialog = ({ {/* Sections container with uniform spacing */}
+ {/* Dependencies */} + {blockedByIds.length > 0 || blocksIds.length > 0 ? ( +
+ {blockedByIds.length > 0 ? ( +
+ + + Blocked by + + {blockedByIds.map((id) => { + const depTask = taskMap.get(id); + const isCompleted = depTask?.status === 'completed'; + const label = depTask + ? `${formatTaskDisplayLabel(depTask)}: ${depTask.subject}` + : `#${deriveTaskDisplayId(id)}`; + return ( + + + + + {label} + + ); + })} +
+ ) : null} + + {blocksIds.length > 0 ? ( +
+ + + Blocks + + {blocksIds.map((id) => { + const depTask = taskMap.get(id); + const isCompleted = depTask?.status === 'completed'; + const label = depTask + ? `${formatTaskDisplayLabel(depTask)}: ${depTask.subject}` + : `#${deriveTaskDisplayId(id)}`; + return ( + + + + + {label} + + ); + })} +
+ ) : null} +
+ ) : null} + {/* Description */} ) : null} - {blockedByIds.length > 0 || - blocksIds.length > 0 || - relatedIds.length > 0 || - relatedByIds.length > 0 || - kanbanTaskState?.reviewer || - kanbanTaskState?.errorDescription ? ( + {/* Review info */} + {kanbanTaskState?.reviewer || kanbanTaskState?.errorDescription ? (
- {/* Dependencies */} - {blockedByIds.length > 0 ? ( -
- - - Blocked by +
+ {kanbanTaskState.reviewer ? ( + + Reviewer: {kanbanTaskState.reviewer} - {blockedByIds.map((id) => { - const depTask = taskMap.get(id); - const isCompleted = depTask?.status === 'completed'; - const label = depTask - ? `${formatTaskDisplayLabel(depTask)}: ${depTask.subject}` - : `#${deriveTaskDisplayId(id)}`; - return ( - - - - - {label} - - ); - })} -
- ) : null} - - {blocksIds.length > 0 ? ( -
- - - Blocks - - {blocksIds.map((id) => { - const depTask = taskMap.get(id); - const isCompleted = depTask?.status === 'completed'; - const label = depTask - ? `${formatTaskDisplayLabel(depTask)}: ${depTask.subject}` - : `#${deriveTaskDisplayId(id)}`; - return ( - - - - - {label} - - ); - })} -
- ) : null} - - {/* Review info */} - {kanbanTaskState?.reviewer || kanbanTaskState?.errorDescription ? ( -
- {kanbanTaskState.reviewer ? ( - - Reviewer: {kanbanTaskState.reviewer} - - ) : null} - {kanbanTaskState.errorDescription ? ( - - {kanbanTaskState.errorDescription} - - ) : null} -
- ) : null} + ) : null} + {kanbanTaskState.errorDescription ? ( + {kanbanTaskState.errorDescription} + ) : null} +
) : null}