Master Migration Document for 2.9-beta

Create the Citizen Feedback Service Definitions(as mentioned in the above Citizen Feedback Service document) for modules and flows as per requirement before using it on the UI.
Note: Service Definition creation is a backend task and an API needs to be hit using postman.
This is a one time task during setup.

 

UI Migration Changes:

 

  • Citizen Consent Form:

    Objective

  • Citizen Feedback:

    Objective :

To Provide the user facility to submit feedback/rating at the end of the service.

Add this mdms file : https://github.com/egovernments/egov-mdms-data/blob/QA/data/pb/common-masters/RatingAndFeedback.json

{ "tenantId": "pb", "moduleName": "common-masters", "RatingAndFeedback": [ { "type" : "isCitizenRatingEnabled", "value" : true }, { "type" : "headerByRating", "value" : [ { "minvalue" : 1, "maxvalue" : 3, "code" : "CS_WHAT_WENT_WRONG" }, { "minvalue" : 4, "maxvalue" : 5, "code" : "CS_WHAT_WENT_GOOD" } ] }, { "type" : "enabledScreensList", "value" : [ { "module" : "PT", "bussinessService" : "PT_CREATE", "screenfrom" : "pt/property/new-application/acknowledgement", "cardHeader" : "PT_RATE_HELP_TEXT_CREATE", "cardText" : "PT_RATE_CARD_TEXT_CREATE" }, { "module" : "PT", "bussinessService" : "PT_MUTATION", "screenfrom" : "pt/property/property-mutation/acknowledgement", "cardHeader" : "PT_RATE_HELP_TEXT_MUTATE", "cardText" : "PT_RATE_CARD_TEXT_MUTATE" }, { "module" : "PT", "bussinessService" : "PT_UPDATE", "screenfrom" : "pt/property/edit-application/acknowledgement", "cardHeader" : "PT_RATE_HELP_TEXT_UPDATE", "cardText" : "PT_RATE_CARD_TEXT_UPDATE" }, { "module" : "PT", "bussinessService" : "PT", "screenfrom" : "digit-ui/citizen/payment/success", "cardHeader" : "PT_RATE_HELP_TEXT_PAY", "cardText" : "PT_RATE_CARD_TEXT_PAY" } ] } ] }

In the above config headerByRating param is used to declare the value for which star condition will be there along with the code message which will be displayed in the UI screen.
enabledScreensList is used to declare the flows where the Citizen feedback screen will be displayed in order to get review from citizen.

Rating component is being used for the star rating part of the screen in citizen feedback screen which can be found inside micro-ui-internals folder : https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/react-components/src/atoms/Rating.js

 

Documentation:

b. Restart mdms and deploy the latest front-end builds.