From 849567f9995ea5d71259d3d09f048aec45abfb42 Mon Sep 17 00:00:00 2001 From: Kartik Sharma Date: Mon, 17 Nov 2025 18:25:42 +0530 Subject: [PATCH] UI changes in View Jobs. --- public/assets/css/core-extend.css | 5 +++ src/components/ServiceProject/JobList.jsx | 13 +++--- src/components/ServiceProject/ManageJob.jsx | 2 +- .../ServiceProject/ManageJobTicket.jsx | 40 +++++++++++-------- src/components/common/HoverPopup.jsx | 6 +-- src/pages/project/ProjectPage.jsx | 2 +- 6 files changed, 40 insertions(+), 28 deletions(-) diff --git a/public/assets/css/core-extend.css b/public/assets/css/core-extend.css index b05f71c1..3b5619a2 100644 --- a/public/assets/css/core-extend.css +++ b/public/assets/css/core-extend.css @@ -456,3 +456,8 @@ font-weight: normal; .fs-md-xlarge { font-size: 170% !important; } .fs-md-xxlarge { font-size: calc(1.725rem + 5.7vw) !important; } } + +.me-16 { + /* margin-inline-end: -7.0625rem !important; */ + margin-left: -7.0625rem !important; +} diff --git a/src/components/ServiceProject/JobList.jsx b/src/components/ServiceProject/JobList.jsx index 099b30e4..65abf665 100644 --- a/src/components/ServiceProject/JobList.jsx +++ b/src/components/ServiceProject/JobList.jsx @@ -20,6 +20,12 @@ const JobList = () => { ); const jobGrid = [ + { + key: "jobTicketUId", + label: "Job Id", + getValue: (e) => e?.jobTicketUId || "N/A", + align: "text-start", + }, { key: "title", label: "Title", @@ -40,12 +46,7 @@ const JobList = () => { isAlwaysVisible: true, className: "text-start", }, - { - key: "jobTicketUId", - label: "Job Id", - getValue: (e) => e?.jobTicketUId || "N/A", - align: "text-start", - }, + { key: "dueDate", label: "Due On", diff --git a/src/components/ServiceProject/ManageJob.jsx b/src/components/ServiceProject/ManageJob.jsx index bd191ca4..53c51578 100644 --- a/src/components/ServiceProject/ManageJob.jsx +++ b/src/components/ServiceProject/ManageJob.jsx @@ -123,7 +123,7 @@ const ManageJob = ({ Job }) => { size="md" /> -
+
{ return (
-
-

+

+ {/* Job Id on left */} +

Job Id : {data?.jobTicketUId || "N/A"}

+ + {/* Edit icon on right */} + + } + > + +
+
{data?.status?.name} - - } - > - - +
{data?.dueDate && (() => { diff --git a/src/components/common/HoverPopup.jsx b/src/components/common/HoverPopup.jsx index 62e216bd..777fa26e 100644 --- a/src/components/common/HoverPopup.jsx +++ b/src/components/common/HoverPopup.jsx @@ -2,7 +2,7 @@ import React, { useEffect, useMemo, useRef, useState } from "react"; import { useDispatch, useSelector } from "react-redux"; import { closePopup, openPopup, togglePopup } from "../../slices/localVariablesSlice"; -const HoverPopup = ({ id, title, content, children, Mode = "hover" }) => { +const HoverPopup = ({ id, title, content, children, className, Mode = "hover" }) => { const dispatch = useDispatch(); const visible = useSelector((s) => s.localVariables.popups[id] || false); @@ -60,7 +60,7 @@ const HoverPopup = ({ id, title, content, children, Mode = "hover" }) => { {visible && (
e.stopPropagation()} // prevents closing when clicking inside > @@ -68,7 +68,7 @@ const HoverPopup = ({ id, title, content, children, Mode = "hover" }) => {
{content}
- +
)}
diff --git a/src/pages/project/ProjectPage.jsx b/src/pages/project/ProjectPage.jsx index c2935128..0838e1a4 100644 --- a/src/pages/project/ProjectPage.jsx +++ b/src/pages/project/ProjectPage.jsx @@ -75,7 +75,7 @@ const ProjectPage = () => { />
-
+
{/* LEFT SIDE — DATE TOGGLE BUTTONS */}