From da440060e8079fa3c346f5d257184a23b54bf427 Mon Sep 17 00:00:00 2001 From: Vikas Nale Date: Thu, 12 Jun 2025 23:06:51 +0530 Subject: [PATCH] - Some cosmatic changes on Activity Details popup - Header Global project filter hite set to ax 300px a - header global project list sorted by name --- .../Activities/ReportTaskComments.jsx | 56 +++++++++++-------- src/components/Layout/Header.jsx | 54 ++++++++---------- 2 files changed, 58 insertions(+), 52 deletions(-) diff --git a/src/components/Activities/ReportTaskComments.jsx b/src/components/Activities/ReportTaskComments.jsx index 60452887..63f9a76d 100644 --- a/src/components/Activities/ReportTaskComments.jsx +++ b/src/components/Activities/ReportTaskComments.jsx @@ -113,8 +113,17 @@ const ReportTaskComments = ({ commentsData, closeModal }) => {
Activity Summary
-

- {commentsData?.workItem?.workArea?.floor?.building?.description} +

+ Location : + + {`${commentsData?.workItem?.workArea?.floor?.building?.name}`}{" "} + {" "} + {`${commentsData?.workItem?.workArea?.floor?.floorName} `}{" "} + + {`${commentsData?.workItem?.workArea?.areaName}`} + + {` ${commentsData?.workItem?.activityMaster?.activityName}`} +

@@ -137,27 +146,20 @@ const ReportTaskComments = ({ commentsData, closeModal }) => { {" "}

-

- Location : - - {`${commentsData?.workItem?.workArea?.floor?.building?.name}`}{" "} - {" "} - {`${commentsData?.workItem?.workArea?.floor?.floorName} `}{" "} - - {`${commentsData?.workItem?.workArea?.areaName}`} - - {` ${commentsData?.workItem?.activityMaster?.activityName}`} - -

Planned Work: {commentsData?.plannedTask}{" "} {commentsData?.workItem?.activityMaster?.unitOfMeasurement}

-

- {" "} - Completed Work : {commentsData?.completedTask}{" "} - {commentsData?.workItem?.activityMaster?.unitOfMeasurement} -

+ {commentsData?.reportedDate != null && ( +

+ {" "} + Completed Work : {commentsData?.completedTask}{" "} + {commentsData?.workItem?.activityMaster?.unitOfMeasurement} +

+ )} + {!commentsData?.reportedDate && ( +

Completed Work :  -

+ )}

Team :

@@ -173,7 +175,14 @@ const ReportTaskComments = ({ commentsData, closeModal }) => { ))}
- {commentsData?.reportedPreSignedUrls?.length > 0 && ( +

+ Note :{" "} +

+

+ {commentsData?.reportedPreSignedUrls?.length > 0 && (

Attachment

{
- +
    { {data?.preSignedUrls?.length > 0 && (
    Attachment - +
    )} diff --git a/src/components/Layout/Header.jsx b/src/components/Layout/Header.jsx index 176576a0..7703989a 100644 --- a/src/components/Layout/Header.jsx +++ b/src/components/Layout/Header.jsx @@ -131,17 +131,24 @@ const Header = () => { {projectNames?.length > 1 && ( -
      - {projectNames?.map((project) => ( -
    • - -
    • - ))} +
        + {[...projectNames] + .sort((a, b) => a.name.localeCompare(b.name)) + .map((project) => ( +
      • + +
      • + ))}
      )}
@@ -263,7 +270,7 @@ const Header = () => {
-
  • + {/*
  • {
  • - {/*
    -
    -
    -
    -
    -
    */} +
  • @@ -582,7 +576,7 @@ const Header = () => {
  • - + */}
  • { My Profile
  • -
  • +
  • { Settings
  • -
  • + {/*
  • { -
  • + */}
  • {" "} {/* Use the function from the context */}