- {props.required ? (
-
);
@@ -426,49 +107,16 @@ const TextInput = (props) => {
TextInput.propTypes = {
userType: PropTypes.string,
- required: PropTypes.bool,
- name: PropTypes.string.isRequired,
+ isMandatory: PropTypes.bool,
+ name: PropTypes.string,
placeholder: PropTypes.string,
onChange: PropTypes.func,
- inputRef: PropTypes.oneOfType([
- PropTypes.func,
- PropTypes.shape({ current: PropTypes.instanceOf(Element) }),
- ]),
+ ref: PropTypes.func,
value: PropTypes.any,
- className: PropTypes.string,
- style: PropTypes.object,
- maxLength: PropTypes.number,
- minlength: PropTypes.number,
- max: PropTypes.number,
- pattern: PropTypes.string,
- min: PropTypes.number,
- disabled: PropTypes.bool,
- nonEditable: PropTypes.bool,
- errorStyle: PropTypes.bool,
- hideSpan: PropTypes.bool,
- title: PropTypes.string,
- step: PropTypes.string,
- autoFocus: PropTypes.bool,
- onBlur: PropTypes.func,
- onKeyPress: PropTypes.func,
- textInputStyle: PropTypes.object,
- defaultValue: PropTypes.any,
- customClass: PropTypes.string,
- signature: PropTypes.bool,
- signatureImg: PropTypes.node,
- onIconSelection: PropTypes.func,
- type: PropTypes.string,
- watch: PropTypes.func,
- onFocus: PropTypes.func,
- charCount: PropTypes.bool,
- errors: PropTypes.object,
- config: PropTypes.object,
- error: PropTypes.string,
};
TextInput.defaultProps = {
- required: false,
- charCount: false,
+ isMandatory: false,
};
function DatePicker(props) {
@@ -485,7 +133,7 @@ function DatePicker(props) {
return (
Date: Fri, 19 Apr 2024 16:19:50 +0530
Subject: [PATCH 27/41] Added password not taking props
---
.../packages/react-components/src/atoms/Password.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/react-components/src/atoms/Password.js b/frontend/micro-ui/web/micro-ui-internals/packages/react-components/src/atoms/Password.js
index e48d11618..f8d9234cc 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/react-components/src/atoms/Password.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/react-components/src/atoms/Password.js
@@ -27,8 +27,8 @@ const Password = (props) => {
ref={props.inputRef}
value={props.value}
style={{ ...props.style }}
- minLength={props.minlength}
- maxLength={props.maxlength}
+ minLength={props.minlength || 10}
+ maxLength={props.maxlength || 10}
max={props.max}
min={props.min}
readOnly={props.disable}
From c6e0ea2954892b7410c5048e89bcdbf02c81ae0c Mon Sep 17 00:00:00 2001
From: Anil Singha <99383116+anilsingha-eGov@users.noreply.github.com>
Date: Mon, 22 Apr 2024 21:36:05 +0530
Subject: [PATCH 28/41] ISTE-19: Foxed minlentgh issue
---
.../packages/react-components/src/atoms/Password.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/react-components/src/atoms/Password.js b/frontend/micro-ui/web/micro-ui-internals/packages/react-components/src/atoms/Password.js
index f8d9234cc..23517fb30 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/react-components/src/atoms/Password.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/react-components/src/atoms/Password.js
@@ -27,7 +27,7 @@ const Password = (props) => {
ref={props.inputRef}
value={props.value}
style={{ ...props.style }}
- minLength={props.minlength || 10}
+ minLength={props.minlength}
maxLength={props.maxlength || 10}
max={props.max}
min={props.min}
From cd0613ba6db4a7ccca3bb4c261b9e00b680cd0c2 Mon Sep 17 00:00:00 2001
From: Anil Singha <99383116+anilsingha-eGov@users.noreply.github.com>
Date: Tue, 23 Apr 2024 14:59:31 +0530
Subject: [PATCH 29/41] ISTE-20: Added sarpanch,revenue collector, secretory &
Updated role
---
.../mgramseva/lib/utils/role_actions.dart | 32 +++++++++----------
.../packages/modules/hrms/src/pages/Inbox.js | 2 +-
2 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/frontend/mgramseva/lib/utils/role_actions.dart b/frontend/mgramseva/lib/utils/role_actions.dart
index 4ae9d32cb..1ef84a73e 100644
--- a/frontend/mgramseva/lib/utils/role_actions.dart
+++ b/frontend/mgramseva/lib/utils/role_actions.dart
@@ -89,19 +89,19 @@ class RoleActionsFiltering {
switch (route) {
// GP Admin
case Routes.HOUSEHOLD:
- return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY' ,'REVENUE_COLLECTOR'];
+ return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY' ,'REVENUE_COLLECTOR'];
case Routes.CONSUMER_UPDATE:
- return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN','SARPANCH','SECRETORY' ,'REVENUE_COLLECTOR'];
+ return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN','SARPANCH','SECRETARY' ,'REVENUE_COLLECTOR'];
case Routes.CONSUMER_SEARCH_UPDATE:
- return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN','SARPANCH','SECRETORY' ,'REVENUE_COLLECTOR'];
+ return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN','SARPANCH','SECRETARY' ,'REVENUE_COLLECTOR'];
case Routes.CONSUMER_CREATE:
- return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN','SARPANCH','SECRETORY', 'REVENUE_COLLECTOR'];
+ return ['GP_ADMIN', 'SUPERUSER', 'COLLECTION_OPERATOR', 'DIV_ADMIN','SARPANCH','SECRETARY', 'REVENUE_COLLECTOR'];
case Routes.HOUSEHOLD_DETAILS:
- return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY','REVENUE_COLLECTOR'];
+ return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];
case Routes.SEARCH_CONSUMER_RESULT:
return [
@@ -111,36 +111,36 @@ class RoleActionsFiltering {
'SUPERUSER',
'DIV_ADMIN',
'SARPANCH',
- 'SECRETORY'
+ 'SECRETARY'
'REVENUE_COLLECTOR'
];
case Routes.HOUSEHOLD_REGISTER:
- return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY','REVENUE_COLLECTOR'];
+ return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];
// Expense Processing
case Routes.EXPENSE_SEARCH:
- return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY'];
+ return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY'];
case Routes.EXPENSES_ADD:
- return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY'];
+ return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY'];
case Routes.EXPENSE_UPDATE:
- return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY'];
+ return ['EXPENSE_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY'];
case Routes.HOUSEHOLDRECEIPTS:
- return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY','REVENUE_COLLECTOR'];
+ return ['BULK_DEMAND_PROCESSING', 'COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];
case Routes.MANUAL_BILL_GENERATE:
- return ['BULK_DEMAND_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY'];
+ return ['BULK_DEMAND_PROCESSING', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY'];
// Collection Operator
case Routes.CONSUMER_SEARCH:
- return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','REVENUE_COLLECTOR','SARPANCH','SECRETORY','REVENUE_COLLECTOR'];
+ return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','REVENUE_COLLECTOR','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];
case Routes.BILL_GENERATE:
- return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETORY','REVENUE_COLLECTOR'];
+ return ['COLLECTION_OPERATOR', 'SUPERUSER', 'DIV_ADMIN','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];
case Routes.DASHBOARD:
- return ['SUPERUSER', 'DASHBOARD_VIEWER', 'GP_ADMIN', 'DIV_ADMIN','SARPANCH','SECRETORY','REVENUE_COLLECTOR'];
+ return ['SUPERUSER', 'DASHBOARD_VIEWER', 'GP_ADMIN', 'DIV_ADMIN','SARPANCH','SECRETARY','REVENUE_COLLECTOR'];
case Routes.REPORTS:
- return ['SUPERUSER', 'DASHBOARD_VIEWER', 'GP_ADMIN', 'DIV_ADMIN','SARPANCH''SECRETORY','REVENUE_COLLECTOR'];
+ return ['SUPERUSER', 'DASHBOARD_VIEWER', 'GP_ADMIN', 'DIV_ADMIN','SARPANCH''SECRETARY','REVENUE_COLLECTOR'];
default:
return [];
}
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/Inbox.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/Inbox.js
index 61aeef862..e4c098037 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/Inbox.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/Inbox.js
@@ -28,7 +28,7 @@ const Inbox = ({ parentRoute, businessService = "HRMS", initialStates = {}, filt
let roles = STATE_ADMIN
? { roles: "DIV_ADMIN, HRMS_ADMIN", isStateLevelSearch: true }
- : { roles: "SYSTEM, GP_ADMIN, COLLECTION_OPERATOR, PROFILE_UPDATE, DASHBOAD_VIEWER", isStateLevelSearch: false };
+ : { roles: "SYSTEM, GP_ADMIN, COLLECTION_OPERATOR, PROFILE_UPDATE, DASHBOAD_VIEWER, SARPANCH, REVENUE_COLLECTOR, SECRETARY", isStateLevelSearch: false };
let requestBody = {
criteria: {
From fc40dab79b590cd25876de56567a4fdf9e582819 Mon Sep 17 00:00:00 2001
From: Anil Singha <99383116+anilsingha-eGov@users.noreply.github.com>
Date: Wed, 24 Apr 2024 13:28:48 +0530
Subject: [PATCH 30/41] ISTE-19: Fixed forgot password issue
---
.../core/src/pages/employee/ChangePassword/changePassword.js | 2 ++
1 file changed, 2 insertions(+)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ChangePassword/changePassword.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ChangePassword/changePassword.js
index e2afaf06b..b15022701 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ChangePassword/changePassword.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/ChangePassword/changePassword.js
@@ -54,6 +54,8 @@ const ChangePasswordComponent = ({ config: propsConfig, t }) => {
}
const requestData = {
...data,
+ username:mobileNumber,
+
otpReference: otp,
tenantId,
type: getUserType().toUpperCase(),
From 4ce98e5707aad9121da428e5ee7fbce93481c56f Mon Sep 17 00:00:00 2001
From: chinmoy-eGov <115543497+chinmoy-eGov@users.noreply.github.com>
Date: Wed, 24 Apr 2024 18:14:45 +0530
Subject: [PATCH 31/41] ISTE-8 Modification for role dropdown
---
.../hrms/src/components/pageComponents/jurisdiction.js | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js
index 24d4ed954..dda9ea449 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js
@@ -234,7 +234,7 @@ const Jurisdictions = ({ t, config, onSelect, userType, formData }) => {
return roleCodesToFilter.includes(role.code);
})
.map((role) => {
- return { code: role.code, name: role?.name ? role?.name : " ", labelKey: "ACCESSCONTROL_ROLES_ROLES_" + role.code };
+ return { code: role.code, name: role?.name ? role?.name : " ", i18text: "ACCESSCONTROL_ROLES_ROLES_" + role.code };
});
} else {
// Specify the role codes you want to filter
@@ -243,7 +243,7 @@ const Jurisdictions = ({ t, config, onSelect, userType, formData }) => {
return data?.MdmsRes?.["ws-services-masters"].WSServiceRoles?.filter((role) => {
return !roleCodesToFilter.includes(role.code);
})?.map((role) => {
- return { code: role.code, name: role?.name ? role?.name : " ", labelKey: "ACCESSCONTROL_ROLES_ROLES_" + role.code };
+ return { code: role.code, name: role?.name ? role?.name : " ", i18text: "ACCESSCONTROL_ROLES_ROLES_" + role.code };
});
}
}
@@ -622,7 +622,7 @@ function Jurisdiction({
selected={jurisdiction?.roles}
options={getroledata(roleoption)}
onSelect={selectrole}
- optionsKey="labelKey"
+ optionsKey="i18text"
showSelectAll={true}
t={t}
/>
From 154a215760f4d042378f1af056c3da3305798ef7 Mon Sep 17 00:00:00 2001
From: chinmoy-eGov <115543497+chinmoy-eGov@users.noreply.github.com>
Date: Wed, 24 Apr 2024 18:20:28 +0530
Subject: [PATCH 32/41] ISTE-9 Addded Division user and state user type
---
.../modules/core/src/components/TopBarSideBar/TopBar.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
index 43adc8100..4a2d07439 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
@@ -97,6 +97,7 @@ const TopBar = ({
);
}
const loggedin = userDetails?.access_token ? true : false;
+ console.log(userDetails,"userDetails")
return (
{mobileView ?
: null}
@@ -107,9 +108,13 @@ const TopBar = ({
{t(cityDetails?.i18nKey).toUpperCase()}{" "}
{t(`ULBGRADE_${cityDetails?.city?.ulbGrade.toUpperCase().replace(" ", "_").replace(".", "_")}`).toUpperCase()}
+ {` ${userDetails?.info?.roles.some(obj => obj.name === "STATE ADMIN")?` (${userDetails?.info?.name} | State User)`:` (${userDetails?.info?.name} | Division User)`}`}
) : (
-
+
+
+
{` ${userDetails?.info?.roles.some(obj => obj.name === "STATE ADMIN")?`(${userDetails?.info?.name} | State User)`:`(${userDetails?.info?.name} | Division User)`}`}
+
))}
{!loggedin && (
From 75bb0ce9cfbd5ceb05f4e2eb73567ac160a2d06b Mon Sep 17 00:00:00 2001
From: chinmoy-eGov <115543497+chinmoy-eGov@users.noreply.github.com>
Date: Wed, 24 Apr 2024 18:21:43 +0530
Subject: [PATCH 33/41] ISTE-9 Addded Division user and state user type
---
.../packages/modules/core/src/components/TopBarSideBar/TopBar.js | 1 -
1 file changed, 1 deletion(-)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
index 4a2d07439..589292b7f 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
@@ -97,7 +97,6 @@ const TopBar = ({
);
}
const loggedin = userDetails?.access_token ? true : false;
- console.log(userDetails,"userDetails")
return (
{mobileView ?
: null}
From 7c2778a104792c9e8473e56ea0ff7fac5ea4e4ac Mon Sep 17 00:00:00 2001
From: Anil Singha <99383116+anilsingha-eGov@users.noreply.github.com>
Date: Thu, 25 Apr 2024 13:46:36 +0530
Subject: [PATCH 34/41] ISTE-20: Fixed count not reflecting
---
.../packages/modules/hrms/src/components/hrmscard.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/hrmscard.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/hrmscard.js
index 02736b550..5fe963f41 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/hrmscard.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/hrmscard.js
@@ -15,7 +15,7 @@ const HRMSCard = () => {
const tenantId = Digit.ULBService.getCurrentTenantId();
let roles = STATE_ADMIN
? { roles: "DIV_ADMIN, HRMS_ADMIN", isStateLevelSearch: true }
- : { roles: "SYSTEM, GP_ADMIN, COLLECTION_OPERATOR, PROFILE_UPDATE, DASHBOAD_VIEWER", isStateLevelSearch: false };
+ : { roles: "SYSTEM, GP_ADMIN, COLLECTION_OPERATOR, PROFILE_UPDATE, DASHBOAD_VIEWER, SARPANCH, REVENUE_COLLECTOR, SECRETARY", isStateLevelSearch: false };
const { isLoading, isError, error, data, ...rest } = Digit.Hooks.hrms.useHRMSCount(tenantId, roles);
const moduleForSomeDIVAdmin =
From 2faae3365694ea999f9d69203810aa9ab14e1c25 Mon Sep 17 00:00:00 2001
From: chinmoy-eGov <115543497+chinmoy-eGov@users.noreply.github.com>
Date: Fri, 26 Apr 2024 15:55:40 +0530
Subject: [PATCH 35/41] ISTE-9 changes in top bar for type of user
---
.../modules/core/src/components/TopBarSideBar/TopBar.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
index 589292b7f..b375c032a 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
@@ -112,7 +112,7 @@ const TopBar = ({
) : (
-
{` ${userDetails?.info?.roles.some(obj => obj.name === "STATE ADMIN")?`(${userDetails?.info?.name} | State User)`:`(${userDetails?.info?.name} | Division User)`}`}
+
{` ${userDetails?.info?.roles.some(obj => obj.name === "STATE ADMIN")?`(${userDetails?.info?.name} | State User)`:`(${userDetails?.info?.name} | Division User)`}`}
))}
{!loggedin && (
From 1929fe47e5b79a947c54479cc75f6191b400d09b Mon Sep 17 00:00:00 2001
From: chinmoy-eGov <115543497+chinmoy-eGov@users.noreply.github.com>
Date: Fri, 26 Apr 2024 15:58:11 +0530
Subject: [PATCH 36/41] ISTE-10 Validation added while creating employee
---
.../components/pageComponents/jurisdiction.js | 28 ++-----------------
.../modules/hrms/src/pages/createEmployee.js | 2 ++
2 files changed, 5 insertions(+), 25 deletions(-)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js
index dda9ea449..79587f625 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js
@@ -311,7 +311,7 @@ const Jurisdictions = ({ t, config, onSelect, userType, formData }) => {
);
};
-// -------------------------------------------------------------------------------------
+
function Jurisdiction({
t,
formData,
@@ -350,18 +350,6 @@ function Jurisdiction({
return defaultjurisdiction;
}
- // useEffect(() => {
- // selectBoundaryType(
- // data?.MdmsRes?.["egov-location"]["TenantBoundary"]
- // .filter((ele) => {
- // return ele?.hierarchyType?.code == hierarchylist[0]?.code;
- // })
- // .map((item) => {
- // return { ...item.boundary, i18text: Digit.Utils.locale.convertToLocale(item.boundary.label, "EGOV_LOCATION_BOUNDARYTYPE") };
- // })
- // );
- // }, [jurisdiction?.hierarchy, data?.MdmsRes]);
-
useEffect(() => {
setDivision(
divisions?.map((item) => {
@@ -371,17 +359,6 @@ function Jurisdiction({
}, [divisions]);
const tenant = Digit.ULBService.getCurrentTenantId();
- // useEffect(() => {
- // console.log("ssss")
- // let cities = userDetails?.roles.map((role) => role.tenantId)?.filter((value, index, array) => array.indexOf(value) === index);
- // selectboundary(
- // data?.MdmsRes?.tenant?.tenants
- // ?.filter((city) => city.code != Digit.ULBService.getStateId() && cities?.includes(city.code))
- // ?.map((city) => {
- // return { ...city, i18text: Digit.Utils.locale.getCityLocale(city.code) };
- // })
- // );
- // }, [data]);
useEffect(() => {
if (Boundary?.length > 0) {
@@ -451,7 +428,7 @@ function Jurisdiction({
});
res?.forEach((resData) => {
- resData.labelKey = "ACCESSCONTROL_ROLES_ROLES_" + resData.code;
+ resData.i18text = "ACCESSCONTROL_ROLES_ROLES_" + resData.code;
});
if (isEdit && STATE_ADMIN) setJuristictionsData((pre) => pre.map((item) => (item.key === jurisdiction.key ? { ...item, roles: res } : item)));
@@ -473,6 +450,7 @@ function Jurisdiction({
[...data].filter((value) => Object.keys(value).length !== 0)
);
setjurisdictions((pre) => pre.map((item) => (item.key === jurisdiction.key ? { ...item, roles: res } : item)));
+ selectedboundary(jurisdiction?.boundary?jurisdiction?.boundary:defaultjurisdiction());
};
const selectDivisionBoundary = (e) => {
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/createEmployee.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/createEmployee.js
index c259087ef..de6c904a8 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/createEmployee.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/createEmployee.js
@@ -112,6 +112,8 @@ const CreateEmployee = () => {
formData?.SelectEmployeeGender?.gender.code &&
formData?.SelectEmployeeName?.employeeName &&
formData?.SelectEmployeePhoneNumber?.mobileNumber &&
+ formData?.Jurisdictions.length &&
+ formData?.Jurisdictions.filter((juris) => juris?.roles?.length).length > 0 &&
checkfield &&
phonecheck &&
checkMailNameNum(formData)
From 175514d3eb281260d23c34f3eea8974ea6418aa0 Mon Sep 17 00:00:00 2001
From: chinmoy-eGov <115543497+chinmoy-eGov@users.noreply.github.com>
Date: Fri, 26 Apr 2024 17:16:28 +0530
Subject: [PATCH 37/41] ISTE-8 Modification in Multiselect dropdown
---
.../modules/hrms/src/components/pageComponents/Multiselect.js | 3 +--
.../packages/modules/hrms/src/pages/createEmployee.js | 2 +-
2 files changed, 2 insertions(+), 3 deletions(-)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js
index 0b92d0c5a..5fc8a2b33 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js
@@ -88,10 +88,9 @@ const MultiSelectDropdown = ({
}, [selected?.length]);
function fnToSelectOptionThroughProvidedSelection(selected) {
-
return selected?.map((e) => (
{
- [optionsKey]: `ACCESSCONTROL_ROLES_ROLES_${e.code}`,
+ [optionsKey]: e?.i18text? e.i18text : `ACCESSCONTROL_ROLES_ROLES_${e.code}`,
propsData: [null, e]
}
));
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/createEmployee.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/createEmployee.js
index de6c904a8..4fca1bacb 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/createEmployee.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/pages/createEmployee.js
@@ -113,7 +113,7 @@ const CreateEmployee = () => {
formData?.SelectEmployeeName?.employeeName &&
formData?.SelectEmployeePhoneNumber?.mobileNumber &&
formData?.Jurisdictions.length &&
- formData?.Jurisdictions.filter((juris) => juris?.roles?.length).length > 0 &&
+ (formData?.Jurisdictions.filter((juris) => juris?.roles?.length).length > 0 || formData?.Jurisdictions.filter((juris) => juris?.divisionBoundary?.length).length > 0) &&
checkfield &&
phonecheck &&
checkMailNameNum(formData)
From 40b048f723cab744b3dce62c7c36d0d251b100aa Mon Sep 17 00:00:00 2001
From: chinmoy-eGov <115543497+chinmoy-eGov@users.noreply.github.com>
Date: Mon, 29 Apr 2024 12:30:20 +0530
Subject: [PATCH 38/41] ISTE-8 Modified Tag for Division user
---
.../hrms/src/components/pageComponents/jurisdiction.js | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js
index 79587f625..af3992ab1 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/jurisdiction.js
@@ -604,10 +604,12 @@ function Jurisdiction({
showSelectAll={true}
t={t}
/>
-
+
0 && "50px", overflowY: "scroll" }}>
{jurisdiction?.roles.length > 0 &&
jurisdiction?.roles.map((value, index) => {
- return onRemove(index, value)} />;
+ return (
+ onRemove(index, value)} />
+ )
})}
From ce1b5452da114a85ecd50ee09fe987b995890be4 Mon Sep 17 00:00:00 2001
From: chinmoy-eGov <115543497+chinmoy-eGov@users.noreply.github.com>
Date: Mon, 29 Apr 2024 14:56:58 +0530
Subject: [PATCH 39/41] ISTE-8 Modification in all select for Multiselect
---
.../hrms/src/components/pageComponents/Multiselect.js | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js
index 5fc8a2b33..7020d3f4a 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/hrms/src/components/pageComponents/Multiselect.js
@@ -107,6 +107,15 @@ const MultiSelectDropdown = ({
}
}, [active]);
+ useEffect(()=>{
+ if (alreadyQueuedSelectedState?.length === filteredOptions?.length){
+ setIsSelected(true)
+ }else{
+ setIsSelected(false)
+
+ }
+ },[alreadyQueuedSelectedState])
+
function handleOutsideClickAndSubmitSimultaneously() {
setActive(false);
}
From 76aad439c09be4c145eb45817f742fbfa755300b Mon Sep 17 00:00:00 2001
From: chinmoy-eGov <115543497+chinmoy-eGov@users.noreply.github.com>
Date: Tue, 30 Apr 2024 15:25:19 +0530
Subject: [PATCH 40/41] ISTE-22 Modification in Change city dropdown
---
.../modules/core/src/components/ChangeCity.js | 40 +++++--------------
.../src/components/TopBarSideBar/TopBar.js | 2 +-
2 files changed, 12 insertions(+), 30 deletions(-)
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/ChangeCity.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/ChangeCity.js
index 122f6e506..a21e8d69c 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/ChangeCity.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/ChangeCity.js
@@ -10,6 +10,8 @@ const stringReplaceAll = (str = "", searcher = "", replaceWith = "") => {
return str;
};
+
+
const ChangeCity = (prop) => {
const [dropDownData, setDropDownData] = useState({
label: `TENANT_TENANTS_${stringReplaceAll(Digit.SessionStorage.get("Employee.tenantId"), ".", "_")?.toUpperCase()}`,
@@ -21,6 +23,12 @@ const ChangeCity = (prop) => {
const isDropdown = prop.dropdown || false;
let selectedCities = [];
+ const uuids = [prop.userDetails?.info?.uuid];
+ const { data: userData, isUserDataLoading } = Digit.Hooks.useUserSearch(Digit.ULBService.getStateId(), { uuid: uuids }, {});
+ // setSelectedCity(userData?.data?.user[0]?.roles)
+
+
+
const { data: data = {}, isLoading } =
Digit.Hooks.hrms.useHrmsMDMS(Digit.ULBService.getCurrentTenantId(), "egov-hrms", "HRMSRolesandDesignation") || {};
@@ -43,9 +51,8 @@ const ChangeCity = (prop) => {
useEffect(() => {
const userloggedValues = Digit.SessionStorage.get("citizen.userRequestObject");
- let teantsArray = [],
- filteredArray = [];
- userloggedValues?.info?.roles?.forEach((role) => teantsArray.push(role.tenantId));
+ let teantsArray = [],filteredArray = [];
+ userData?.user[0].roles?.forEach((role) => teantsArray.push(role.tenantId));
let unique = teantsArray.filter((item, i, ar) => ar.indexOf(item) === i);
unique?.forEach((uniCode) => {
@@ -69,7 +76,6 @@ const ChangeCity = (prop) => {
setSelectCityData(filteredArray);
}, [dropDownData, data?.MdmsRes]);
- // if (isDropdown) {
return (
{
selected={dropDownData}
optionKey={"label"}
select={handleChangeCity}
- // freeze={true}
- // noBorder={true}
optionCardStyles={{ overflow: "revert", display: "table" }}
- // customSelector={
- //
- // }
/>
);
- // } else {
- // return (
- //
- // City
- //
- // {selectCityData?.map((city, index) => (
- //
- // handleChangeCity(city)}
- // >
- //
- // ))}
- //
- //
- // );
- // }
+
};
export default ChangeCity;
\ No newline at end of file
diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
index b375c032a..efaa32f86 100644
--- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
+++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/TopBarSideBar/TopBar.js
@@ -124,7 +124,7 @@ const TopBar = ({
{!window.location.href.includes("employee/user/login") && !window.location.href.includes("employee/user/language-selection") && (
-
+
)}
{showLanguageChange && }
From 5147e08c695dcec2d0a6dd37700f91059d9ae772 Mon Sep 17 00:00:00 2001
From: Anil Singha <99383116+anilsingha-eGov@users.noreply.github.com>
Date: Fri, 3 May 2024 11:00:46 +0530
Subject: [PATCH 41/41] ISTE-11: Added css to hide breadcrum
---
.../micro-ui/web/micro-ui-internals/example/public/index.html | 3 +++
1 file changed, 3 insertions(+)
diff --git a/frontend/micro-ui/web/micro-ui-internals/example/public/index.html b/frontend/micro-ui/web/micro-ui-internals/example/public/index.html
index 3db3ee3c1..37582faef 100644
--- a/frontend/micro-ui/web/micro-ui-internals/example/public/index.html
+++ b/frontend/micro-ui/web/micro-ui-internals/example/public/index.html
@@ -36,6 +36,9 @@
margin-bottom: 24px !important;
border-left: none;
}
+ .workbench-bredcrumb {
+ display: none !important;
+ }