Skip to content
Open

V0.4.1 #3337

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions health/micro-ui/web/console/inter-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -46,9 +46,9 @@
"dependencies": {
"lodash": "4.17.21",
"microbundle-crl": "0.13.11",
"@egovernments/digit-ui-react-components": "1.8.24",
"@egovernments/digit-ui-svg-components": "1.0.21",
"@egovernments/digit-ui-components": "0.2.0-beta.63",
"@egovernments/digit-ui-react-components": "1.9.0",
"@egovernments/digit-ui-svg-components": "1.1.0",
"@egovernments/digit-ui-components": "0.2.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-hook-form": "6.15.8",
Expand Down
16 changes: 8 additions & 8 deletions health/micro-ui/web/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,15 +12,15 @@
],
"homepage": "/console",
"dependencies": {
"@egovernments/digit-ui-libraries": "1.8.19",
"@egovernments/digit-ui-module-workbench": "1.0.26",
"@egovernments/digit-ui-module-core": "1.8.42",
"@egovernments/digit-ui-module-hcmworkbench": "0.1.5",
"@egovernments/digit-ui-module-utilities": "1.0.12",
"@egovernments/digit-ui-libraries": "1.9.0",
"@egovernments/digit-ui-module-workbench": "1.1.1",
"@egovernments/digit-ui-module-core": "1.9.0",
"@egovernments/digit-ui-module-hcmworkbench": "0.1.7",
"@egovernments/digit-ui-module-utilities": "1.1.0",
"@egovernments/digit-ui-module-campaign-manager": "0.4.0",
"@egovernments/digit-ui-react-components": "1.8.24",
"@egovernments/digit-ui-svg-components": "1.0.21",
"@egovernments/digit-ui-components": "0.2.0-beta.63",
"@egovernments/digit-ui-react-components": "1.9.0",
"@egovernments/digit-ui-svg-components": "1.1.0",
"@egovernments/digit-ui-components": "0.2.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"jsonpath": "^1.1.1",
Expand Down
5 changes: 3 additions & 2 deletions health/micro-ui/web/core/inter-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,9 @@
"dependencies": {
"lodash": "4.17.21",
"microbundle-crl": "0.13.11",
"@egovernments/digit-ui-react-components": "1.8.2-beta.18",
"@egovernments/digit-ui-components": "0.0.2-beta.1",
"@egovernments/digit-ui-react-components": "1.9.0",
"@egovernments/digit-ui-svg-components": "1.1.0",
"@egovernments/digit-ui-components": "0.2.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-hook-form": "6.15.8",
Expand Down
10 changes: 5 additions & 5 deletions health/micro-ui/web/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@
],
"homepage": "/core-ui",
"dependencies": {
"@egovernments/digit-ui-libraries": "1.8.22",
"@egovernments/digit-ui-module-core": "1.8.42",
"@egovernments/digit-ui-libraries": "1.9.0",
"@egovernments/digit-ui-module-core": "1.9.0",
"@egovernments/digit-ui-module-campaign-manager": "0.4.0",
"@egovernments/digit-ui-react-components": "1.8.24",
"@egovernments/digit-ui-svg-components": "1.0.21",
"@egovernments/digit-ui-components": "0.2.0-beta.51",
"@egovernments/digit-ui-react-components": "1.9.0",
"@egovernments/digit-ui-svg-components": "1.1.0",
"@egovernments/digit-ui-components": "0.2.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"jsonpath": "^1.1.1",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ SKIP_PREFLIGHT_CHECK=true
REACT_APP_USER_TYPE=EMPLOYEE
REACT_APP_EMPLOYEE_TOKEN=c835932f-2ad4-4d05-83d6-49e0b8c59f8a
REACT_APP_CITIZEN_TOKEN=7cd58aae-30b3-41ed-a1b3-3417107a993c
REACT_APP_PROXY_API=https://hcm-demo.digit.org
REACT_APP_PROXY_ASSETS=https://hcm-demo.digit.org
REACT_APP_PROXY_API=https://health-demo.digit.org
REACT_APP_PROXY_ASSETS=https://health-demo.digit.org
REACT_APP_GLOBAL=https://hcm-demo-assets.s3.ap-south-1.amazonaws.com/demo/globalConfigsWorkbenchDemo.js
15 changes: 8 additions & 7 deletions health/micro-ui/web/micro-ui-internals/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,18 +9,19 @@
"start": "react-scripts start"
},
"devDependencies": {
"@egovernments/digit-ui-module-health-hrms":"0.0.1",
"@egovernments/digit-ui-libraries": "1.8.22",
"@egovernments/digit-ui-module-workbench": "1.0.23",
"@egovernments/digit-ui-components": "0.2.0-beta.58",
"@egovernments/digit-ui-module-core": "1.8.30",
"@egovernments/digit-ui-module-utilities": "1.0.12",
"@egovernments/digit-ui-react-components": "1.8.24",
"@egovernments/digit-ui-libraries": "1.9.2",
"@egovernments/digit-ui-module-workbench": "1.1.1",
"@egovernments/digit-ui-components": "0.2.3",
"@egovernments/digit-ui-module-core": "1.9.0",
"@egovernments/digit-ui-module-utilities": "1.1.0",
"@egovernments/digit-ui-react-components": "1.9.0",
"@egovernments/digit-ui-module-hcmworkbench": "0.1.5",
"@egovernments/digit-ui-module-campaign-manager": "0.4.0",
"@egovernments/digit-ui-module-microplan": "0.2.0",
"@egovernments/digit-ui-module-health-pgr": "0.0.1",
"@egovernments/digit-ui-module-health-dss": "0.0.1",
"@egovernments/digit-ui-module-health-payments": "0.2.0",
"@egovernments/digit-ui-module-health-hrms":"0.0.1",
"http-proxy-middleware": "^1.0.5",
"react": "17.0.2",
"react-dom": "17.0.2",
Expand Down
5 changes: 3 additions & 2 deletions health/micro-ui/web/micro-ui-internals/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,8 +61,9 @@
"*.{js,css,md}": "prettier --write"
},
"dependencies": {
"@egovernments/digit-ui-components": "0.2.0-beta.58",
"@egovernments/digit-ui-react-components": "1.8.24",
"@egovernments/digit-ui-react-components": "1.9.0",
"@egovernments/digit-ui-svg-components": "1.1.0",
"@egovernments/digit-ui-components": "0.2.3",
"ajv": "8.12.0",
"lodash": "4.17.21",
"microbundle-crl": "0.13.11",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ const AddOrEditMapping = forwardRef(({ schema, dispatch, boundaryHierarchy, allS
const [selectedLevel, setSelectedLevel] = useState(null);
const [selectedBoundary, setSelectedBoundary] = useState(null);


const [newdata, setNewData] = useState(
typeOfOperation === "edit" ? Object.fromEntries(columns.map((column) => [column.name, curData[column.name]])) : []
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ const UpdateCampaign = ({ hierarchyData, ...props }) => {
const { mutate } = Digit.Hooks.campaign.useCreateCampaign(tenantId);
const { mutate: updateCampaign } = Digit.Hooks.campaign.useUpdateCampaign(tenantId);
const searchParams = new URLSearchParams(location.search);
const id = searchParams.get("id");
const [id,setId] = useState(searchParams.get("id"));
const isDraftCampaign = searchParams.get("isDraftCampaign") === "true";
const parentId = searchParams.get("parentId");
const isPreview = searchParams.get("preview");
Expand Down Expand Up @@ -86,7 +86,7 @@ const UpdateCampaign = ({ hierarchyData, ...props }) => {
body: {
CampaignDetails: {
tenantId: tenantId,
ids: [parentId],
ids: [id?id:parentId],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

Fix ternary operator formatting for consistency.

The ternary operator lacks proper spacing, which is inconsistent with common JavaScript style guidelines.

Apply this diff:

-        ids: [id?id:parentId],
+        ids: [id ? id : parentId],
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
ids: [id?id:parentId],
ids: [id ? id : parentId],
🤖 Prompt for AI Agents
In
health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/UpdateCampaign.js
around line 89, the ternary operator in the array assignment is missing spaces;
update it to use consistent spacing around the '?' and ':' (e.g., change ids:
[id?id:parentId] to ids: [id ? id : parentId]) so it conforms to project
JavaScript style guidelines.

...(isDraftCampaign && { status: ["drafted"] }),
},
},
Expand Down Expand Up @@ -267,6 +267,15 @@ const UpdateCampaign = ({ hierarchyData, ...props }) => {
payloadData.action = "create";
payloadData.parentId = CampaignData?.CampaignDetails?.[0]?.parentId;
payloadData.campaignName = CampaignData?.CampaignDetails?.[0]?.campaignName;

if(parentId){
payloadData.parentId =parentId;
}

if(id){
payloadData.id =id;
}
Comment on lines +270 to +277
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

Improve formatting of conditional blocks.

The conditional assignments for parentId and id have inconsistent indentation and formatting.

Apply this diff:

-
-          if(parentId){
-          payloadData.parentId =parentId;
-          }
-
-          if(id){
-          payloadData.id =id;
-          }
-
+          if (parentId) {
+            payloadData.parentId = parentId;
+          }
+
+          if (id) {
+            payloadData.id = id;
+          }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
if(parentId){
payloadData.parentId =parentId;
}
if(id){
payloadData.id =id;
}
if (parentId) {
payloadData.parentId = parentId;
}
if (id) {
payloadData.id = id;
}
🤖 Prompt for AI Agents
In
health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/UpdateCampaign.js
around lines 270 to 277, the if blocks assigning payloadData.parentId and
payloadData.id are inconsistently indented and spaced; reformat them to a
consistent style (either single-line conditional or properly indented multi-line
blocks). For example, ensure there is a space after `if`, parentheses directly
around the condition, a space before the block, consistent indentation for the
body, and a space after the assignment operator — e.g. convert to either `if
(parentId) { payloadData.parentId = parentId; }` and `if (id) { payloadData.id =
id; }` or to two-line blocks with matching indentation and spacing.


if (totalFormData?.HCM_CAMPAIGN_SELECTING_BOUNDARY_DATA?.boundaryType?.selectedData) {
const temp = restructureBoundaryData(
totalFormData?.HCM_CAMPAIGN_SELECTING_BOUNDARY_DATA?.boundaryType?.selectedData,
Expand Down Expand Up @@ -336,7 +345,10 @@ const UpdateCampaign = ({ hierarchyData, ...props }) => {
payloadData.startDate = CampaignData?.CampaignDetails?.[0]?.startDate;
payloadData.tenantId = tenantId;
payloadData.action = "draft";
payloadData.parentId = CampaignData?.CampaignDetails?.[0]?.id;
payloadData.parentId = parentId;
if(id){
payloadData.id =id;
}
Comment on lines +348 to +351
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

Improve formatting of conditional block.

The conditional assignment for id has inconsistent indentation and spacing.

Apply this diff:

           payloadData.action = "draft";
           payloadData.parentId = parentId;
-          if(id){
-          payloadData.id =id;
-          }
+          if (id) {
+            payloadData.id = id;
+          }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
payloadData.parentId = parentId;
if(id){
payloadData.id =id;
}
payloadData.parentId = parentId;
if (id) {
payloadData.id = id;
}
🤖 Prompt for AI Agents
In
health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/UpdateCampaign.js
around lines 348 to 351, the conditional block that assigns payloadData.id has
inconsistent indentation and spacing; reformat the if block to use consistent
indentation and spacing (e.g., place the if on its own line with a space after
it, open brace on same line, body indented, and close brace aligned) so it reads
clearly and matches surrounding style.

payloadData.campaignName = CampaignData?.CampaignDetails?.[0]?.campaignName;
if (totalFormData?.HCM_CAMPAIGN_SELECTING_BOUNDARY_DATA?.boundaryType?.selectedData) {
const temp = restructureBoundaryData(
Expand Down Expand Up @@ -379,7 +391,9 @@ const UpdateCampaign = ({ hierarchyData, ...props }) => {
},
onSuccess: async (data) => {
updateUrlParams({ id: data?.CampaignDetails?.id });
setId(data?.CampaignDetails?.id);
setIsDraftCreated(true);

draftRefetch();
if (filteredConfig?.[0]?.form?.[0]?.body?.[0]?.mandatoryOnAPI) {
setCurrentKey(currentKey + 1);
Expand All @@ -404,6 +418,14 @@ const UpdateCampaign = ({ hierarchyData, ...props }) => {
payloadData.action = "draft";
payloadData.parentId = CampaignData?.CampaignDetails?.[0]?.parentId;
payloadData.campaignName = CampaignData?.CampaignDetails?.[0]?.campaignName;
if(parentId){
payloadData.parentId =parentId;
}

if(id){
payloadData.id =id;
}
Comment on lines +421 to +427
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🧹 Nitpick | 🔵 Trivial

Improve formatting of conditional blocks.

The conditional assignments for parentId and id have inconsistent indentation and formatting.

Apply this diff:

           payloadData.campaignName = CampaignData?.CampaignDetails?.[0]?.campaignName;
-          if(parentId){
-          payloadData.parentId =parentId;
-          }
-
-          if(id){
-          payloadData.id =id;
-          }
-
+          if (parentId) {
+            payloadData.parentId = parentId;
+          }
+
+          if (id) {
+            payloadData.id = id;
+          }
📝 Committable suggestion

‼️ IMPORTANT
Carefully review the code before committing. Ensure that it accurately replaces the highlighted code, contains no missing lines, and has no issues with indentation. Thoroughly test & benchmark the code to ensure it meets the requirements.

Suggested change
if(parentId){
payloadData.parentId =parentId;
}
if(id){
payloadData.id =id;
}
if (parentId) {
payloadData.parentId = parentId;
}
if (id) {
payloadData.id = id;
}
🤖 Prompt for AI Agents
In
health/micro-ui/web/micro-ui-internals/packages/modules/campaign-manager/src/pages/employee/UpdateCampaign.js
around lines 421 to 427, the conditional blocks assigning payloadData.parentId
and payloadData.id are mis-indented and inconsistently formatted; reformat each
if block to use consistent spacing and indentation (one space after if, space
between parentheses and braces, and properly indented payload assignment) so
both conditionals follow the same style and project lint rules.


if (totalFormData?.HCM_CAMPAIGN_SELECTING_BOUNDARY_DATA?.boundaryType?.selectedData) {
const temp = restructureBoundaryData(
totalFormData?.HCM_CAMPAIGN_SELECTING_BOUNDARY_DATA?.boundaryType?.selectedData,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useTranslation } from "react-i18next";
import { PopUp, Button, Toast, Dropdown, FileUpload, FieldV1 } from "@egovernments/digit-ui-components";
import { convertEpochToDate } from "../../utils/utlis";

const DeactivatePopUp = ({bussnessBtnLabel, label, onClose, onSubmit }) => {
const DeactivatePopUp = ({bussnessBtnLabel, label, onClose, onSubmit,reasonMsg }) => {
const { t } = useTranslation();
const tenantId = Digit.ULBService.getCurrentTenantId();

Expand Down Expand Up @@ -42,7 +42,7 @@ const DeactivatePopUp = ({bussnessBtnLabel, label, onClose, onSubmit }) => {
children={[
<div className="comment-section">
<div className="comment-label">
{t(`HR_DEACTIVATION_REASON`)}
{t(reasonMsg?`HR_ACTIVATION_REASON`:`HR_DEACTIVATION_REASON`)}
<span className="required"> *</span>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -78,17 +78,39 @@ const EmployeeDetailScreen = () => {
};

const deActivateUser = async (comment, date, reason, order) => {
let employeeData = {
...data?.Employees[0], // Keep existing data
isActive: false, // Update isActive to false
deactivationDetails: [
let updatedDeactivationDetails = [];

const existingEmployee = data?.Employees[0];

if (existingEmployee.deactivationDetails && existingEmployee.deactivationDetails.length > 0) {
// Update the first object
updatedDeactivationDetails = existingEmployee.deactivationDetails.map((item, index) =>
index === 0
? {
...item,
effectiveFrom: Date.now(),
reasonForDeactivation: reason,
remarks: order,
orderNo: comment,
}
: item
);
} else {
// Create a new object if no existing objects
updatedDeactivationDetails = [
{
effectiveFrom: Date.now(), // Use the current timestamp
effectiveFrom: Date.now(),
reasonForDeactivation: reason,
remarks: order,
orderNo: comment,
},
],
];
}

let employeeData = {
...data?.Employees[0], // Keep existing data
isActive: false, // Update isActive to false
deactivationDetails: updatedDeactivationDetails,
};

Comment on lines 80 to 115
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

🏁 Script executed:

find . -type f -name "employeeDetails.js" | grep -E "health-hrms|health/micro-ui"

Repository: egovernments/DIGIT-Frontend

Length of output: 178


🏁 Script executed:

wc -l ./health/micro-ui/web/micro-ui-internals/packages/modules/health-hrms/src/pages/employee/employeeDetails.js

Repository: egovernments/DIGIT-Frontend

Length of output: 182


🏁 Script executed:

sed -n '60,130p' ./health/micro-ui/web/micro-ui-internals/packages/modules/health-hrms/src/pages/employee/employeeDetails.js | cat -n

Repository: egovernments/DIGIT-Frontend

Length of output: 3007


🏁 Script executed:

sed -n '1,60p' ./health/micro-ui/web/micro-ui-internals/packages/modules/health-hrms/src/pages/employee/employeeDetails.js | cat -n

Repository: egovernments/DIGIT-Frontend

Length of output: 2988


🏁 Script executed:

grep -n "deActivateUser" ./health/micro-ui/web/micro-ui-internals/packages/modules/health-hrms/src/pages/employee/employeeDetails.js

Repository: egovernments/DIGIT-Frontend

Length of output: 202


🏁 Script executed:

sed -n '500,545p' ./health/micro-ui/web/micro-ui-internals/packages/modules/health-hrms/src/pages/employee/employeeDetails.js | cat -n

Repository: egovernments/DIGIT-Frontend

Length of output: 1705


🏁 Script executed:

grep -n "setOpenModal(true)" ./health/micro-ui/web/micro-ui-internals/packages/modules/health-hrms/src/pages/employee/employeeDetails.js

Repository: egovernments/DIGIT-Frontend

Length of output: 114


🏁 Script executed:

sed -n '450,500p' ./health/micro-ui/web/micro-ui-internals/packages/modules/health-hrms/src/pages/employee/employeeDetails.js | cat -n

Repository: egovernments/DIGIT-Frontend

Length of output: 2073


🏁 Script executed:

sed -n '200,250p' ./health/micro-ui/web/micro-ui-internals/packages/modules/health-hrms/src/pages/employee/employeeDetails.js | cat -n

Repository: egovernments/DIGIT-Frontend

Length of output: 1850


🏁 Script executed:

sed -n '215,225p' ./health/micro-ui/web/micro-ui-internals/packages/modules/health-hrms/src/pages/employee/employeeDetails.js | cat -n

Repository: egovernments/DIGIT-Frontend

Length of output: 398


Add defensive null-check and reuse existingEmployee in deActivateUser

The deActivateUser function has two robustness issues:

  • const existingEmployee = data?.Employees[0]; will yield undefined if Employees is empty or missing; accessing existingEmployee.deactivationDetails on line 82 will then throw. Add an explicit null check before proceeding.
  • When building employeeData (line 108), you spread data?.Employees[0] again instead of reusing the already-derived existingEmployee. This repeats the unsafe access and should be simplified.

A safer version:

+    const existingEmployee = data?.Employees?.[0];
+    if (!existingEmployee) {
+      return;
+    }
+
     let updatedDeactivationDetails = [];
-
-    const existingEmployee = data?.Employees[0];

     if (existingEmployee.deactivationDetails && existingEmployee.deactivationDetails.length > 0) {
       // Update the first object
       updatedDeactivationDetails = existingEmployee.deactivationDetails.map((item, index) =>
         index === 0
           ? {
               ...item,
               effectiveFrom: Date.now(),
               reasonForDeactivation: reason,
               remarks: order,
               orderNo: comment,
             }
           : item
       );
     } else {
       // Create a new object if no existing objects
       updatedDeactivationDetails = [
         {
           effectiveFrom: Date.now(),
           reasonForDeactivation: reason,
           remarks: order,
           orderNo: comment,
         },
       ];
     }

     let employeeData = {
-      ...data?.Employees[0],
+      ...existingEmployee,
       isActive: false,
       deactivationDetails: updatedDeactivationDetails,
     };
🤖 Prompt for AI Agents
In
health/micro-ui/web/micro-ui-internals/packages/modules/health-hrms/src/pages/employee/employeeDetails.js
around lines 80 to 115, deActivateUser assumes data?.Employees[0] exists which
can be undefined and causes a crash when accessing deactivationDetails; also the
code re-reads data?.Employees[0] instead of reusing existingEmployee. Fix by
first guarding with an explicit null check (if !existingEmployee handle
gracefully — e.g., return early, show error, or initialize a new employee
object), then use the existingEmployee variable when creating employeeData
(spread existingEmployee instead of data?.Employees[0]), and ensure
deactivationDetails is always an array (default to [] when undefined) before
mapping or pushing the new object.

try {
Expand Down Expand Up @@ -179,7 +201,19 @@ const EmployeeDetailScreen = () => {
};

if (isLoading || isMDMSLoading) {
return <Loader />;
return (
<div
style={{
display: "flex",
justifyContent: "center", // horizontal center
alignItems: "center", // vertical center
height: "100vh", // take full viewport height
width: "100%", // full width
}}
>
<Loader />
</div>
);
}

return (
Expand Down Expand Up @@ -407,7 +441,7 @@ const EmployeeDetailScreen = () => {
}
/>
) : (
<NoResultsFound/>
<NoResultsFound />
);
},
},
Expand Down Expand Up @@ -492,6 +526,7 @@ const EmployeeDetailScreen = () => {
onSubmit={(comment, date, reason, order) => {
deActivateUser(comment, date, reason, order);
}}
reasonMsg={false}
/>
)}

Expand All @@ -505,6 +540,7 @@ const EmployeeDetailScreen = () => {
onSubmit={(comment, date, reason, order) => {
activateUser(comment, date, reason, order);
}}
reasonMsg={true}
/>
)}
</React.Fragment>
Expand Down
16 changes: 14 additions & 2 deletions health/micro-ui/web/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,22 @@
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@400;500;700&family=Roboto:wght@400;500;700&display=swap"
rel="stylesheet" type="text/css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css@1.8.30/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].0-beta.14/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css@1.9.0/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].3/dist/index.css" />
Comment on lines +10 to +11
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

⚠️ Potential issue | 🔴 Critical

🧩 Analysis chain

Verify CSS package versions for compatibility and breaking changes.

The CSS packages have been updated to newer versions. Please ensure:

  1. These versions are compatible with the current application code
  2. No breaking changes affect existing UI components
  3. The versions are the latest stable releases

🌐 Web query:

What are the breaking changes and release notes for @egovernments/digit-ui-css version 1.9.0?

💡 Result:

I couldn’t find any published release notes or a CHANGELOG entry specifically for @egovernments/digit-ui-css v1.9.0. The package index (jsDelivr) lists a 1.9.0 release (release date shown Oct 23, 2025) but there’s no accompanying changelog or breaking-changes notes on npm/jsDelivr pages. [1][2]

If you want, I can:

  • fetch the package contents (dist/CHANGELOG.md or package.json) from the v1.9.0 tag on the GitHub repo or the npm tarball and extract the release notes/breaking changes; or
  • search the repository’s Releases/Tags and CHANGELOG.md for v1.9.0 and report back with citations.

Which would you like me to do?


🌐 Web query:

What are the breaking changes and release notes for @egovernments/digit-ui-components-css version 0.2.3?

💡 Result:

I couldn't find a published 0.2.3 release for @egovernments/digit-ui-components-css. The npm package shows latest published version 0.2.0 (with its changelog) — no 0.2.3 release notes or breaking-change entry are available. [1]

If you want, I can:

  • check the DIGIT GitHub changelog/branches for an unreleased 0.2.3 entry, or
  • monitor npm/GitHub and notify you if 0.2.3 appears.

Sources:
[1] @egovernments/digit-ui-components-css — npm package page (version 0.2.0).


Correct CSS package version: [email protected] doesn't exist on npm.

The @egovernments/digit-ui-components-css package shows latest published version as 0.2.0, not 0.2.3. The version specified in line 11 will fail to resolve. Update to an available version (e.g., 0.2.0 or verify if 0.2.3 exists in an internal registry).

Additionally, @egovernments/digit-ui-css v1.9.0 has no published release notes or CHANGELOG entry, so ensure compatibility with the application code through testing.

🤖 Prompt for AI Agents
In health/micro-ui/web/public/index.html around lines 10 to 11, the CSS import
references @egovernments/[email protected] which is not published on
npm; update that href to a valid published version such as 0.2.0 (or point to
your internal registry if 0.2.3 is hosted there), and verify the
@egovernments/[email protected] import by running the app and smoke-testing
relevant UI pages to ensure compatibility; adjust versions or pin to
known-working releases if any style regressions appear.

<!-- added below css for hcm-workbench module inclusion-->
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected]/dist/index.css" />
<style>
/* Original rule you provided */
.main.digit-home-main{
margin-top: 1rem;
}
/* Optional: tweak for small screens */
@media (max-width: 480px) {
.main.digit-home-main {
margin-top: 0.75rem;
}
}
</style>
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#00bcd1" />
<title>DIGIT HCM</title>
Expand Down
6 changes: 3 additions & 3 deletions health/micro-ui/web/workbench/inter-package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,9 @@
"dependencies": {
"lodash": "4.17.21",
"microbundle-crl": "0.13.11",
"@egovernments/digit-ui-react-components": "1.8.24",
"@egovernments/digit-ui-svg-components": "1.0.21",
"@egovernments/digit-ui-components": "0.2.0-beta.63",
"@egovernments/digit-ui-react-components": "1.9.0",
"@egovernments/digit-ui-svg-components": "1.1.0",
"@egovernments/digit-ui-components": "0.2.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-hook-form": "6.15.8",
Expand Down
22 changes: 13 additions & 9 deletions health/micro-ui/web/workbench/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,17 +14,17 @@
],
"homepage": "/workbench-ui",
"dependencies": {
"@egovernments/digit-ui-libraries": "1.8.19",
"@egovernments/digit-ui-module-workbench": "1.0.26",
"@egovernments/digit-ui-module-core": "1.8.42",
"@egovernments/digit-ui-libraries": "1.9.2",
"@egovernments/digit-ui-module-workbench": "1.1.1",
"@egovernments/digit-ui-module-core": "1.9.0",
"@egovernments/digit-ui-module-hcmworkbench": "0.1.7",
"@egovernments/digit-ui-module-utilities": "1.0.12",
"@egovernments/digit-ui-module-utilities": "1.1.0",
"@egovernments/digit-ui-module-campaign-manager": "0.4.0",
"@egovernments/digit-ui-module-health-pgr": "0.0.1",
"@egovernments/digit-ui-module-health-hrms":"0.0.1",
"@egovernments/digit-ui-react-components": "1.8.24",
"@egovernments/digit-ui-svg-components": "1.0.21",
"@egovernments/digit-ui-components": "0.2.0-beta.63",
"@egovernments/digit-ui-react-components": "1.9.0",
"@egovernments/digit-ui-svg-components": "1.1.0",
"@egovernments/digit-ui-components": "0.2.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"jsonpath": "^1.1.1",
Expand Down Expand Up @@ -64,11 +64,15 @@
"**/@babel/traverse": "7.25.9",
"**/@babel/preset-env": "7.14.0",
"**/styled-components": "5.0.0",
"**/minimatch": "7.4.6",
"**/@babel/plugin-transform-modules-commonjs": "7.14.0",
"**/@jridgewell/gen-mapping": "0.3.5",
"**/polished": "4.2.2",
"fast-uri": "2.1.0"
"fast-uri": "2.1.0",
"**/ajv-formats": "2.1.1",
"**/minimatch": "7.4.6",
"minimatch": "7.4.6",
"**/glob": "7.2.3",
"glob": "7.2.3"
},
"scripts": {
"start": "react-scripts start",
Expand Down
Loading