Merge pull request 'Add an info (ℹ️) icon to the Daily Progress Report’s Total Pending Task' (#435) from Kartik_Task#1361 into Organization_Management
Reviewed-on: #435 Merged
This commit is contained in:
commit
3f4b7d08d4
@ -40,7 +40,7 @@ const TaskReportList = () => {
|
|||||||
service
|
service
|
||||||
);
|
);
|
||||||
|
|
||||||
const ProgrssReportColumn = [
|
const ProgrssReportColumn = [
|
||||||
{
|
{
|
||||||
key: "activity",
|
key: "activity",
|
||||||
label: "Activity",
|
label: "Activity",
|
||||||
@ -149,20 +149,19 @@ const ProgrssReportColumn = [
|
|||||||
data-bs-content={`
|
data-bs-content={`
|
||||||
<div class="border border-secondary rounded custom-popover p-2 px-3">
|
<div class="border border-secondary rounded custom-popover p-2 px-3">
|
||||||
${task.teamMembers
|
${task.teamMembers
|
||||||
.map(
|
.map(
|
||||||
(m) => `
|
(m) => `
|
||||||
<div class="d-flex align-items-center gap-2 mb-2">
|
<div class="d-flex align-items-center gap-2 mb-2">
|
||||||
<div class="avatar avatar-xs">
|
<div class="avatar avatar-xs">
|
||||||
<span class="avatar-initial rounded-circle bg-label-primary">
|
<span class="avatar-initial rounded-circle bg-label-primary">
|
||||||
${m?.firstName?.charAt(0) || ""}${
|
${m?.firstName?.charAt(0) || ""}${m?.lastName?.charAt(0) || ""
|
||||||
m?.lastName?.charAt(0) || ""
|
|
||||||
}
|
}
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
<span>${m.firstName} ${m.lastName}</span>
|
<span>${m.firstName} ${m.lastName}</span>
|
||||||
</div>`
|
</div>`
|
||||||
)
|
)
|
||||||
.join("")}
|
.join("")}
|
||||||
</div>
|
</div>
|
||||||
`}
|
`}
|
||||||
>
|
>
|
||||||
@ -194,17 +193,27 @@ const ProgrssReportColumn = [
|
|||||||
if (isError) return <div>Loading....</div>;
|
if (isError) return <div>Loading....</div>;
|
||||||
return (
|
return (
|
||||||
<div className="mt-2">
|
<div className="mt-2">
|
||||||
<table className="table">
|
<table className="table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<th className="text-start">Activity</th>
|
<th className="text-start">Activity</th>
|
||||||
<th>Total Pending</th>
|
<th>
|
||||||
|
<span>
|
||||||
|
Total Pending{" "}
|
||||||
|
<HoverPopup
|
||||||
|
title="Total Pending Task"
|
||||||
|
content={<p>This shows the total pending tasks for each activity on that date.</p>}
|
||||||
|
>
|
||||||
|
<i className="bx bx-xs ms-1 bx-info-circle cursor-pointer"></i>
|
||||||
|
</HoverPopup>
|
||||||
|
</span>
|
||||||
|
</th>
|
||||||
<th>
|
<th>
|
||||||
<span>
|
<span>
|
||||||
Reported/Planned{" "}
|
Reported/Planned{" "}
|
||||||
<HoverPopup
|
<HoverPopup
|
||||||
title="Reported and Planned Task"
|
title="Reported and Planned Task"
|
||||||
content={<p>This shows the reported versus planned tasks for each activity. on that Date</p>}
|
content={<p>This shows the reported versus planned tasks for each activity on that date.</p>}
|
||||||
>
|
>
|
||||||
<i className="bx bx-xs ms-1 bx-info-circle cursor-pointer"></i>
|
<i className="bx bx-xs ms-1 bx-info-circle cursor-pointer"></i>
|
||||||
</HoverPopup>
|
</HoverPopup>
|
||||||
|
@ -53,8 +53,8 @@ const HoverPopup = ({ title, content, children }) => {
|
|||||||
marginTop: "8px",
|
marginTop: "8px",
|
||||||
}}
|
}}
|
||||||
>
|
>
|
||||||
{title && <h6 className="mb-2">{title}</h6>}
|
{title && <h6 className="mb-2 text-capitalize">{title}</h6>}
|
||||||
<div>{content}</div>
|
<div className="text-capitalize">{content}</div>
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user