refactor(task-list): update subtask and indicator visibility logic

- Modified subtask visibility conditions across TaskCard, EnhancedKanbanTaskCard, KanbanTaskCard, and TaskRow components to only display when the count is greater than 1.
- Enhanced task indicators for comments and attachments to follow the same visibility logic.
- Added new dependencies for task management types to support subscriber and attachment features.
This commit is contained in:
chamiakJ
2025-07-07 06:33:22 +05:30
parent b6efa3f37e
commit 03fc2fb7ee
7 changed files with 88 additions and 32 deletions

View File

@@ -110,7 +110,7 @@ const TaskListTaskCell = ({
};
const renderSubtasksCountLabel = (taskId: string, isSubTask: boolean, subTasksCount: number) => {
if (!taskId) return null;
if (!taskId || subTasksCount <= 1) return null;
return (
<Button
onClick={() => handleToggleExpansion(taskId)}