Skip to content

Commit

Permalink
setup master screen enhancement (#1387)
Browse files Browse the repository at this point in the history
* setup master enhancement

* localisation code updated

* updated components css version

---------

Co-authored-by: NabeelAyubee <[email protected]>
  • Loading branch information
nabeelmd-eGov and NabeelAyubee committed Sep 13, 2024
1 parent 082e71c commit 17dff87
Show file tree
Hide file tree
Showing 10 changed files with 104 additions and 193 deletions.
2 changes: 1 addition & 1 deletion micro-ui/web/micro-ui-internals/example/public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@

<!-- <link rel="stylesheet" href="https://unpkg.com/@egovernments/digit-ui-css/dist/index.css"/> -->
<!-- <script src="https://s3.ap-south-1.amazonaws.com/egov-dev-assets/globalConfigs.js"></script> -->
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].26/dist/index.css" />
<link rel="stylesheet" href="https://unpkg.com/@egovernments/[email protected].32/dist/index.css" />
<script src="%REACT_APP_GLOBAL%"></script>

</head>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -330,10 +330,17 @@
margin-bottom: 0;
}
}
.action-bar-wrap{
.menu-wrap{
p{
.action-bar-wrap {
.menu-wrap {
p {
margin: 0 !important;
}
}
}
}
.digit-popup-wrapper.setupMasterPopUp.alert {
.digit-popup-alert-content{
.digit-popup-alert-heading {
color: #00703c;
}
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const HRMSCard = () => {
let propsForSandbox = [
{
label: t("CONFIGURE_MASTER"),
link: `/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=HRMS`,
link: `/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=HRMS&key=about`,
isOutsideModule: true,
roles: role,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ let propsForCSR = [
let propsForSandbox = [
{
label: t("CONFIGURE_MASTER"),
link: `/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=PGR`,
link: `/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=PGR&key=about`,
isOutsideModule : true,
roles: role
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -224,15 +224,17 @@ export const UICustomizations = {
value?.split(".")?.[1]
}`}
>
{t(`SANDBOX_${value?.split(".")?.[0]}`)}
{t(Digit.Utils.workbench.getMDMSLabel(`SCHEMA_` + value))}
{/* {t(`SANDBOX_${value?.split(".")?.[0]}`)} */}
</Link>
</span>
);
case "SANDBOX_MASTER_NAME":
return row?.code?.split(".")?.[1] ? t(`SANDBOX_${row?.code?.split(".")?.[1]}`) : t(`SANDBOX_${row?.code?.split(".")?.[0]}`);
// return row?.code?.split(".")?.[1] ? t(`SANDBOX_${row?.code?.split(".")?.[1]}`) : t(`SANDBOX_${row?.code?.split(".")?.[0]}`);
return t(Digit.Utils.workbench.getMDMSLabel(`SCHEMA_` + row?.code));

case "SANDBOX_MASTER_TYPE":
return t(`SANDBOX_${value}`);
return t(Digit.Utils.locale.getTransformedLocale(`SANDBOX_MASTERTYPE_${value}`));

case "SANDBOX_ACTIONS":
const handleRedirect = (value, type) => {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ const ApplicationHome = () => {
className="sandbox-module-card"
label={t(`SANDBOX_APPLICATION_MODULE_${item?.module}`)}
buttonLabel={t(`SANDBOX_VIEW`)}
onButtonClick={() => history.push(`/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=${item?.module}`)}
onButtonClick={() => history.push(`/${window?.contextPath}/employee/sandbox/application-management/setup-master?module=${item?.module}&key=about`)}
// onButtonClick={() => history.push(`/${window?.contextPath}/employee/sandbox/application-management/module?module=${item?.module}`)}
/>
))}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React, { useState } from "react";
import { useTranslation } from "react-i18next";
import { Header, InboxSearchComposer } from "@egovernments/digit-ui-react-components";
import { Button, PopUp, Toast } from "@egovernments/digit-ui-components";
import { Button, Toast } from "@egovernments/digit-ui-components";
import { useHistory, useLocation } from "react-router-dom";
import { moduleMasterConfig } from "./config/moduleMasterConfig";

Expand Down Expand Up @@ -63,38 +63,6 @@ const ModuleMasterTable = () => {
}}
></InboxSearchComposer>
</div>
{showPopUp && (
<PopUp
type={"default"}
className={"masterHandlerPopup"}
footerclassName={"masterHandlerPopUpFooter"}
heading={t("SANDBOX_SETUP_MASTER_MODAL_HEADER")}
children={[<div>{t("SANDBOX_SETUP_MASTER_MODAL_TEXT")}</div>]}
onOverlayClick={() => {}}
footerChildren={[
<Button
type={"button"}
size={"large"}
variation={"secondary"}
label={t("SANDBOX_MANNUAL_MASTER_LOAD")}
onClick={() => {
handleMasterData(true);
}}
/>,
<Button
type={"button"}
size={"large"}
variation={"primary"}
label={t("SANDBOX_DEFAULT_MASTER_LOAD")}
onClick={() => {
handleMasterData(false);
}}
/>,
]}
sortFooterChildren={true}
onClose={() => {}}
></PopUp>
)}
{showToast && (
<Toast
type={showToast?.isError ? "error" : "success"}
Expand Down
Loading

0 comments on commit 17dff87

Please sign in to comment.