On the Infrastructure tab, the Planned and Completed columns have been merged, and their data is now shown as '2/3'.

This commit is contained in:
kartik.sharma 2025-05-17 14:45:35 +05:30 committed by Gitea Admin
parent 21b2feb13f
commit 48f013edd5
2 changed files with 15 additions and 24 deletions

View File

@ -186,9 +186,6 @@ const WorkArea = ({ workArea, floor, forBuilding }) => {
<th className="infra-activity-table-header d-none d-md-table-cell"> <th className="infra-activity-table-header d-none d-md-table-cell">
Completed/Planned Completed/Planned
</th> </th>
<th className="infra-activity-table-header d-none d-md-table-cell">
Today's Planned
</th>
<th className="infra-activity-table-header"> <th className="infra-activity-table-header">
Progress Progress
</th> </th>

View File

@ -177,22 +177,16 @@ const WorkItem = ({
</span> </span>
</td> </td>
{/* Planned - visible on medium and above */}
<td className="text-center d-none d-md-table-cell"> <td className="text-center d-none d-md-table-cell">
{hasWorkItem {hasWorkItem ? (
? NewWorkItem?.workItem?.plannedWork ?? `${NewWorkItem?.workItem?.completedWork ??
workItem?.plannedWork ??
"NA"
: "NA"}
</td>
{/* Completed - visible on medium and above */}
<td className="text-center d-none d-md-table-cell">
{hasWorkItem
? NewWorkItem?.workItem?.completedWork ??
workItem?.completedWork ?? workItem?.completedWork ??
"0"}/${NewWorkItem?.workItem?.plannedWork ??
workItem?.plannedWork ??
"0"}`
) : (
"NA" "NA"
: "NA"} )}
</td> </td>
{/* Progress Bar - always visible */} {/* Progress Bar - always visible */}