diff --git a/frontend/micro-ui/web/docker/Dockerfile b/frontend/micro-ui/web/docker/Dockerfile index 73b35d04a8a..8c5551ed998 100644 --- a/frontend/micro-ui/web/docker/Dockerfile +++ b/frontend/micro-ui/web/docker/Dockerfile @@ -12,7 +12,7 @@ RUN yarn add @upyog/digit-ui-module-noc@1.7.0-beta.3 RUN yarn add @upyog/digit-ui-module-engagement@1.7.0-beta.4 RUN yarn add @upyog/digit-ui-module-hrms@1.7.0-beta.3 RUN yarn add @upyog/digit-ui-module-core@1.7.0-beta.3 -RUN yarn add @upyog/digit-ui-module-obps@1.7.0-beta.8 +RUN yarn add @upyog/digit-ui-module-obps@1.7.0-beta.9 RUN yarn add @upyog/digit-ui-module-common@1.7.0-beta.5 RUN yarn add @upyog/digit-ui-module-ws@1.7.0-beta.12 RUN yarn add @upyog/digit-ui-module-commonpt@1.7.0-beta.4 diff --git a/frontend/micro-ui/web/micro-ui-internals/example/devpackage.json b/frontend/micro-ui/web/micro-ui-internals/example/devpackage.json index 2f0864ad885..1a7c5c7c972 100644 --- a/frontend/micro-ui/web/micro-ui-internals/example/devpackage.json +++ b/frontend/micro-ui/web/micro-ui-internals/example/devpackage.json @@ -16,7 +16,7 @@ "@upyog/digit-ui-module-fsm":"1.7.0-beta.18", "@upyog/digit-ui-module-mcollect":"1.7.0-beta.4", "@upyog/digit-ui-module-noc":"1.7.0-beta.3", - "@upyog/digit-ui-module-obps":"1.7.0-beta.8", + "@upyog/digit-ui-module-obps":"1.7.0-beta.9", "@upyog/digit-ui-module-pgr":"1.7.0-beta.6", "@upyog/digit-ui-module-pt":"1.7.0-beta.4", "@upyog/digit-ui-module-receipts":"1.7.0-beta.3", diff --git a/frontend/micro-ui/web/micro-ui-internals/example/package.json b/frontend/micro-ui/web/micro-ui-internals/example/package.json index 93132d739e1..5b5ecd04b4a 100644 --- a/frontend/micro-ui/web/micro-ui-internals/example/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/example/package.json @@ -16,7 +16,7 @@ "@upyog/digit-ui-module-fsm": "1.7.0-beta.18", "@upyog/digit-ui-module-mcollect": "1.7.0-beta.4", "@upyog/digit-ui-module-noc": "1.7.0-beta.3", - "@upyog/digit-ui-module-obps": "1.7.0-beta.8", + "@upyog/digit-ui-module-obps": "1.7.0-beta.9", "@upyog/digit-ui-module-pgr": "1.7.0-beta.6", "@upyog/digit-ui-module-pt": "1.7.0-beta.4", "@upyog/digit-ui-module-receipts": "1.7.0-beta.3", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/package.json b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/package.json index f855a9fff2b..d6f907d9df0 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/package.json +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/package.json @@ -1,6 +1,6 @@ { "name": "@upyog/digit-ui-module-obps", - "version": "1.7.0-beta.8", + "version": "1.7.0-beta.9", "description": "", "main": "dist/index.js", "module": "dist/index.modern.js", diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/BpaApplicationDetail/BPAApplicationTimeline.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/BpaApplicationDetail/BPAApplicationTimeline.js index a7789795089..8ef0725e257 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/BpaApplicationDetail/BPAApplicationTimeline.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/BpaApplicationDetail/BPAApplicationTimeline.js @@ -16,25 +16,16 @@ const BPAApplicationTimeline = (props) => { function OpenImage(imageSource, index,thumbnailsToShow){ window.open(thumbnailsToShow?.fullImage?.[0],"_blank"); } - const getTimelineCaptions = (checkpoint) => { - // if (checkpoint.state === "INITIATE") { - // const caption = { - // date: Digit.DateUtils.ConvertEpochToDate(props.application?.auditDetails?.createdTime), - // source: props.application?.tradeLicenseDetail?.channel || "", - // }; - // return ; - // } - //else { - const caption = { - date: checkpoint?.auditDetails?.lastModified, - name: checkpoint?.assignes?.[0]?.name, - mobileNumber: checkpoint?.assignes?.[0]?.mobileNumber, - comment: t(checkpoint?.comment), - wfComment : checkpoint.wfComment, - thumbnailsToShow : checkpoint?.thumbnailsToShow, - }; - return ; - //} + const getTimelineCaptions = (checkpoint, index, timeline) => { + const previousCheckpoint = timeline[index - 1]; + const caption = { + date: checkpoint?.auditDetails?.lastModified, + name: checkpoint?.assignes?.[0]?.name, + mobileNumber: checkpoint?.assignes?.[0]?.mobileNumber, + wfComment: previousCheckpoint ? previousCheckpoint.wfComment : [], // Get wfComment from the previous checkpoint + thumbnailsToShow: checkpoint?.thumbnailsToShow, + }; + return ; }; if (isLoading) { @@ -78,7 +69,7 @@ const BPAApplicationTimeline = (props) => { keyValue={index} isCompleted={index === 0} label={checkpoint.state ? t(`WF_${businessService}_${checkpoint.state}${timelineStatusPostfix}`) : "NA"} - customChild={getTimelineCaptions(checkpoint)} + customChild={getTimelineCaptions(checkpoint,index,data.timeline)} /> ); diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/NewBuildingPermit/CheckPage.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/NewBuildingPermit/CheckPage.js index 30e2abdb9ee..b036277ae1e 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/NewBuildingPermit/CheckPage.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/citizen/NewBuildingPermit/CheckPage.js @@ -635,7 +635,7 @@ function selectfile(e) { {t("BPA_P1_SUMMARY_FEE_EST")} - + {t("BPA_P2_SUMMARY_FEE_EST")} diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/employee/Inbox/useInboxTableConfig.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/employee/Inbox/useInboxTableConfig.js index e4a9924b840..6256cfb92e0 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/employee/Inbox/useInboxTableConfig.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/obps/src/pages/employee/Inbox/useInboxTableConfig.js @@ -56,7 +56,7 @@ const useInboxTableConfig = ({ parentRoute, onPageSizeChange, formState, totalCo }, { Header: t("ES_INBOX_SLA_DAYS_REMAINING"), - accessor: row => GetStatusCell(row?.sla), + accessor: row => row?.state == "PENDING_SANC_FEE_PAYMENT" ? "NA" : GetStatusCell(row?.sla), } ] }) diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/ApplicationDetailsContent.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/ApplicationDetailsContent.js index ac847eb2015..62bb8dba40f 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/ApplicationDetailsContent.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/ApplicationDetailsContent.js @@ -108,7 +108,7 @@ console.log("appl", applicationDetails) day = (day > 9 ? "" : "0") + day; return `${day}/${month}/${year}`; }; - const getTimelineCaptions = (checkpoint,index=0) => { + const getTimelineCaptions = (checkpoint, index = 0, timeline) => { if (checkpoint.state === "OPEN" || (checkpoint.status === "INITIATED" && !window.location.href.includes("/obps/"))) { const caption = { date: convertEpochToDateDMY(applicationData?.auditDetails?.createdTime), @@ -116,41 +116,51 @@ console.log("appl", applicationDetails) }; return ; } else if (window.location.href.includes("/obps/") || window.location.href.includes("/noc/") || window.location.href.includes("/ws/")) { - //From BE side assigneeMobileNumber is masked/unmasked with connectionHoldersMobileNumber and not assigneeMobileNumber - const privacy = { uuid: checkpoint?.assignes?.[0]?.uuid, fieldName: "mobileNumber", model: "User",showValue: false, - loadData: { - serviceName: "/egov-workflow-v2/egov-wf/process/_search", - requestBody: {}, - requestParam: { tenantId : applicationDetails?.tenantId, businessIds : applicationDetails?.applicationNo, history:true }, - jsonPath: "ProcessInstances[0].assignes[0].mobileNumber", - isArray: false, - d: (res) => { - let resultstring = ""; - resultstring = `+91 ${_.get(res,`ProcessInstances[${index}].assignes[0].mobileNumber`)}`; - return resultstring; - } - }, } + const privacy = { + uuid: checkpoint?.assignes?.[0]?.uuid, + fieldName: "mobileNumber", + model: "User", + showValue: false, + loadData: { + serviceName: "/egov-workflow-v2/egov-wf/process/_search", + requestBody: {}, + requestParam: { tenantId: applicationDetails?.tenantId, businessIds: applicationDetails?.applicationNo, history: true }, + jsonPath: "ProcessInstances[0].assignes[0].mobileNumber", + isArray: false, + d: (res) => { + let resultstring = ""; + resultstring = `+91 ${_.get(res, `ProcessInstances[${index}].assignes[0].mobileNumber`)}`; + return resultstring; + } + }, + }; + const previousCheckpoint = timeline[index - 1]; const caption = { date: checkpoint?.auditDetails?.lastModified, name: checkpoint?.assignes?.[0]?.name, - mobileNumber:applicationData?.processInstance?.assignes?.[0]?.uuid===checkpoint?.assignes?.[0]?.uuid && applicationData?.processInstance?.assignes?.[0]?.mobileNumber ? applicationData?.processInstance?.assignes?.[0]?.mobileNumber: checkpoint?.assignes?.[0]?.mobileNumber, + mobileNumber: applicationData?.processInstance?.assignes?.[0]?.uuid === checkpoint?.assignes?.[0]?.uuid && applicationData?.processInstance?.assignes?.[0]?.mobileNumber + ? applicationData?.processInstance?.assignes?.[0]?.mobileNumber + : checkpoint?.assignes?.[0]?.mobileNumber, comment: t(checkpoint?.comment), - wfComment: checkpoint.wfComment, + wfComment: previousCheckpoint ? previousCheckpoint.wfComment : [], thumbnailsToShow: checkpoint?.thumbnailsToShow, }; + + return ; } else { + const caption = { date: convertEpochToDateDMY(applicationData?.auditDetails?.lastModifiedTime), - // name: checkpoint?.assigner?.name, name: checkpoint?.assignes?.[0]?.name, - // mobileNumber: checkpoint?.assigner?.mobileNumber, - wfComment: checkpoint?.wfComment, + wfComment: previousComment || checkpoint?.wfComment, mobileNumber: checkpoint?.assignes?.[0]?.mobileNumber, }; + return ; } }; + const getTranslatedValues = (dataValue, isNotTranslated) => { if (dataValue) { @@ -442,7 +452,7 @@ console.log("appl", applicationDetails) ) : ( @@ -469,7 +479,7 @@ console.log("appl", applicationDetails) checkpoint?.performedAction === "REOPEN" ? checkpoint?.performedAction : checkpoint?.[statusAttribute] }${timelineStatusPostfix}` )} - customChild={getTimelineCaptions(checkpoint,index)} + customChild={getTimelineCaptions(checkpoint,index,workflowDetails?.data?.timeline)} /> ); diff --git a/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/BPADocuments.js b/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/BPADocuments.js index a4b47585b4f..5762e80a6b7 100644 --- a/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/BPADocuments.js +++ b/frontend/micro-ui/web/micro-ui-internals/packages/modules/templates/ApplicationDetails/components/BPADocuments.js @@ -76,10 +76,10 @@ const BPADocuments = ({ t, formData, applicationData, docs, bpaActionsDetails }) }, [applicationData, bpaActionsDetails]) return ( -
+
{bpaTaxDocuments?.map((document, index) => { return ( -
+
{t(value?.documentType.split(".")[1])}

:

{t(value?.documentType)}

: ""}
- )) : !(window.location.href.includes("citizen")) &&

{t("BPA_NO_DOCUMENTS_UPLOADED_LABEL")}

} + )) : !(window.location.href.includes("citizen")) &&

{t("BPA_NO_DOCUMENTS_UPLOADED_LABEL")}

+ +
+ +
+
+ +
+

+ {isSendBackFlow ? value?.documentType?.includes("NOC") ?

:

: ""} +
+
+
}
{isHrLine && documents?.length != index + 1 ?
: null}
diff --git a/frontend/micro-ui/web/package.json b/frontend/micro-ui/web/package.json index 35249c021e4..c0c1dc79a2a 100644 --- a/frontend/micro-ui/web/package.json +++ b/frontend/micro-ui/web/package.json @@ -30,7 +30,7 @@ "@upyog/digit-ui-module-hrms": "1.7.0-beta.3", "@upyog/digit-ui-module-mcollect": "1.7.0-beta.4", "@upyog/digit-ui-module-commonpt":"1.7.0-beta.4", - "@upyog/digit-ui-module-obps": "1.7.0-beta.8", + "@upyog/digit-ui-module-obps": "1.7.0-beta.9", "@upyog/digit-ui-module-noc": "1.7.0-beta.3", "@upyog/digit-ui-module-pgr": "1.7.0-beta.6", "@upyog/digit-ui-module-pt": "1.7.0-beta.4",