diff --git a/src/components/Dashboard/Attendance.jsx b/src/components/Dashboard/Attendance.jsx index 5d010acc..6ec129b7 100644 --- a/src/components/Dashboard/Attendance.jsx +++ b/src/components/Dashboard/Attendance.jsx @@ -31,7 +31,7 @@ const selectedProjectId = useSelectedProject()
-
Attendance
+
Attendance

Daily Attendance Data

diff --git a/src/components/Dashboard/AttendanceOverview.jsx b/src/components/Dashboard/AttendanceOverview.jsx index e6fc0624..f46d712d 100644 --- a/src/components/Dashboard/AttendanceOverview.jsx +++ b/src/components/Dashboard/AttendanceOverview.jsx @@ -104,7 +104,7 @@ const AttendanceOverview = () => { {/* Header */}
-
Attendance Overview
+
Attendance Overview

Role-wise present count

diff --git a/src/components/Dashboard/Dashboard.jsx b/src/components/Dashboard/Dashboard.jsx index 534fb43f..916cf433 100644 --- a/src/components/Dashboard/Dashboard.jsx +++ b/src/components/Dashboard/Dashboard.jsx @@ -27,6 +27,7 @@ import { } from "../../utils/constants"; import CollectionOverview, { TopicBarChart } from "./CollectionOverview"; import { CollectionOverviewSkeleton } from "./CollectionOverviewSkeleton"; +import ProjectWiseTeamCount from "./projectWiseTeamCount"; const Dashboard = () => { // Get the selected project ID from Redux store @@ -90,6 +91,9 @@ const Dashboard = () => {
)} +
+ +
{!isAllProjectsSelected && (
@@ -115,80 +119,3 @@ const Dashboard = () => { }; export default Dashboard; - -//
-//
-//
-//
Topic you are interested in
-// -//
-//
-//
-//
-//
-//
-//
-//
-// -//
-//

UI Design

-//
35%
-//
-//
-//
-// -//
-//

Music

-//
14%
-//
-//
-//
-// -//
-//

React

-//
10%
-//
-//
-//
- -//
-//
-// -//
-//

UX Design

-//
20%
-//
-//
-//
-// -//
-//

Animation

-//
12%
-//
-//
-//
-// -//
-//

SEO

-//
9%
-//
-//
-//
-//
-//
-//
-//
diff --git a/src/components/Dashboard/ProjectProgressChart.jsx b/src/components/Dashboard/ProjectProgressChart.jsx index 247dcfa5..3e37c0ec 100644 --- a/src/components/Dashboard/ProjectProgressChart.jsx +++ b/src/components/Dashboard/ProjectProgressChart.jsx @@ -92,7 +92,7 @@ const ProjectProgressChart = ({
{/* Left: Title */}
-
Project Progress
+
Project Progress

Progress Overview by Project

diff --git a/src/components/Dashboard/ProjectWiseTeamCount.jsx b/src/components/Dashboard/ProjectWiseTeamCount.jsx new file mode 100644 index 00000000..4a097148 --- /dev/null +++ b/src/components/Dashboard/ProjectWiseTeamCount.jsx @@ -0,0 +1,90 @@ +import React from "react"; +import { useProjectName } from "../../hooks/useProjects"; + +const ProjectWiseTeamCount = () => { + const { projectNames, loading, isError, Errorr } = useProjectName(); + + if (loading) { + return ( +
+ Loading... +
+ ); + } + + if (isError) { + return ( +
+ Error: {Errorr?.message || "Something went wrong"} +
+ ); + } + + return ( +
+
+
Project wise Employee
+
+
+ + + + + + + + + +
NoProjectVisitsData In Percentage
+ +
+ + + {(projectNames ?? []).map((item, index) => ( + + + + + + + + + + ))} + +
{index + 1} +
+ {item.img && ( + {item.shortName} + )} + {item.name} +
+
{item.visits} +
+
+
+
+ {item.percent}% +
+
+
+
+
+ ); +}; + +export default ProjectWiseTeamCount; diff --git a/src/components/Project/ProjectStatistics.jsx b/src/components/Project/ProjectStatistics.jsx index ac7a8f2a..9c8fd2c6 100644 --- a/src/components/Project/ProjectStatistics.jsx +++ b/src/components/Project/ProjectStatistics.jsx @@ -170,7 +170,7 @@ const ProjectStatistics = ({ project }) => {
{" "} - Project Statistics + Project Statistics