Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Code Block
 "MdmsCriteria": {
        "tenantId": "pb",
        "moduleDetails": [
            {
                "moduleName": "common-masters",
                "masterDetails": [
                    {
                        "name": "StaticData"
                    }
                ]
            }
        ]
    }

Primary Files:

https://github.com/egovernments/egov-mdms-data/blob/QA/data/pb/common-masters/StaticData.json ,

https://github.com/egovernments/DIGIT-Dev/tree/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/StaticDynamicComponent

FAQs:

...

Add Link to FAQs and How it works for each module:

We can add FAQs and How it works link in the mdms for each service.

...

Navigation URL for FAQs: "/digit-ui/citizen/{module}-faq"

(Replace {module} with moduleCode. For Ex: "/digit-ui/citizen/pt-faq")

Navigation URL for How it works : "/digit-ui/citizen/{module}-how-it-works"

(Replace {module} with moduleCode. For Ex: "/digit-ui/citizen/pt-how-it-works")

Object reference:

{"id": 2331,

"name": "PT_FAQ_S",

"url": "digit-ui-card",

"displayName": "FAQs",

"orderNumber": 1,

"parentModule": "PT",

"enabled": true,

"navigationURL": "/digit-ui/citizen/pt-faq",

"leftIcon": "propertyIcon",

"sidebar": "digit-ui-links",

"sidebarURL": "/digit-ui/citizen/pt-home" }

FAQs:

...

Users can check for frequently asked / common questions in this page.

Primary Files:

https://github.com/egovernments/DIGIT-Dev/tree/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/FAQs .

We are using a common screen for all the modules FAQs. Based on the module code, the FAQs are rendered from MDMS.

Add new FAQs to the list:

We can add new FAQs to the list by adding a new object in the MDMS config for the respective service.

Object reference:

"TL" : {

"faqs": [{

"question": "TL_FAQ_QUES_ONE",

"answer": "TL_FAQ_ANS_ONE"}

]}

MDMS:

FAQs are added for each service from MDMS Config.

...

Users can check what they can do or how they can get the benefits of a particular service.

We are using a common screen for all the modules How it works section. Based on the module code, the Cards are rendered from MDMS.

Add new Card to the list:

We can add new Card to the list by adding a new object in the MDMS config for the respective service.

Primary Files:

https://github.com/egovernments/DIGIT-Dev/tree/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/citizen/HowItWorks .

On Language change, the link to the videos also changes.

Object reference:

{"moduleCode" : "PT",

"videosJson": [{

"headerLabel": "ADD_PROPERTY",

"description": "ADD_PROPERTY_VIDEO_DESC",

"en_IN": "http://media.w3.org/2010/05/sintel/trailer.mp4",

"hi_IN": "http://media.w3.org/2010/05/sintel/trailer.mp4"},

"pdfHeader": "CITIZEN_CHARTER_DOCUMENT",

"pdfDesc": "CITIZEN_CHARTER_DOC_DESC"}

MDMS:

How it works Properties and Videos link are added for each service from MDMS Config.

...

API Calls to get the dynamic data :

Service

Navigation Screen URL

API

Payload Params

1

PT

digit-ui/citizen/pt-home

property-services/property/_search

{
tenantId : ""
fromDate :
toDate :
status : "ACTIVE"
}

2

TL

digit-ui/citizen/tl-home

tl-services/v1/_search

{
tenantId : ""

}

3

WS

digit-ui/citizen/ws-home

inbox/v1/dss/_search

{

module: "WS"

tenantId: ""

}

4

PGR

digit-ui/citizen/pgr-home

pgr-services/v2/request/_search

{
tenantId : ""

}

5

BPA

digit-ui/citizen/obps-home

inbox/v1/dss/_search

{

module: "BPA"

tenantId: ""

}

6

MCOLLECT

digit-ui/citizen/mcollect-home

echallan-services/eChallan/v1/_search

{
tenantId : ""

}