From dd8bfe9fce1ac9857a89eeac4b2ca1f6b62a5906 Mon Sep 17 00:00:00 2001 From: chamikaJ Date: Wed, 2 Jul 2025 09:21:27 +0530 Subject: [PATCH] feat(task-row): add progress indicator with CheckCircle icon - Introduced a visual indicator for task progress, displaying a CheckCircle icon when progress reaches 100%. - Updated the rendering logic to show a progress bar for incomplete tasks, enhancing user feedback on task status. --- .../components/task-management/task-row.tsx | 37 ++++++++++++++++++- 1 file changed, 35 insertions(+), 2 deletions(-) diff --git a/worklenz-frontend/src/components/task-management/task-row.tsx b/worklenz-frontend/src/components/task-management/task-row.tsx index 953ac2a5..b3fb9cd3 100644 --- a/worklenz-frontend/src/components/task-management/task-row.tsx +++ b/worklenz-frontend/src/components/task-management/task-row.tsx @@ -16,7 +16,7 @@ import { UserOutlined, type InputRef } from './antd-imports'; -import { DownOutlined, RightOutlined, ExpandAltOutlined, DoubleRightOutlined } from '@ant-design/icons'; +import { DownOutlined, RightOutlined, ExpandAltOutlined, DoubleRightOutlined, CheckCircleOutlined } from '@ant-design/icons'; import { useTranslation } from 'react-i18next'; import { Task } from '@/types/task-management.types'; import { RootState } from '@/app/store'; @@ -685,6 +685,27 @@ const TaskRow: React.FC = React.memo(({ ); + case 'progress': + return ( +
+ {task.progress !== undefined && task.progress >= 0 && ( + task.progress === 100 ? ( +
+ +
+ ) : ( +
+ ) + )} +
+ ); + default: // For non-essential columns, show minimal placeholder return ( @@ -904,7 +925,19 @@ const TaskRow: React.FC = React.memo(({ return (
{task.progress !== undefined && task.progress >= 0 && ( - + task.progress === 100 ? ( +
+ +
+ ) : ( + + ) )}
);