PGR - Citizen

PGR Citizen application

Overview:

Public Grievance Redressal(PGR) is a portal meant for citizens to file complaints, search their already filed complaints and updates on the complaints related to various issues that need to be addressed by the governments.

Implementation Details:

For citizen applications, we have implemented 3 features to address complaints. Citizens can file complaints. At any time citizens can search their complaints and also they check for any updates on their complaints.

File Complaints:

In order to file a new complaint, the user has to open a file complaint page. In that page there will be few mandatory and few optional data to provide. Users can upload the photos related to the subject of the complaint.

Also there is an option to select the complaint location from google map. User must have to provide Complaint Type. Complaint type is a dropdown field and it is configurable. There is an option to search the complaint type in the dropdown options. 

Second card in the form requires the location information and address of the complaint area. Along with map location, City information, locality, house no and landmark also has to be provided. Only City and Locality are mandatory fields. City field is a dropdown and its values are configurable. Its dropdown values are stored in MDMS configurations. Locality field is also a dropdown and it depends on the City field. Based on the City selected, Locality dropdown menus get populated.

After successfully filling all the required information, when the user clicks on FILE COMPLAINT button, the complaint is filed successfully and the user navigates to the acknowledgement screen.

My Complaint:

In the complaint module home page, the user can see my complaint card. All the complaints filed by the user will be listed in this page. My Complaint card also shows the count of complaints listed by the user.

After clicking on My Complaints card, the user will be navigated to my complaints page. This page displays the every complaint in a card along with the current status of the complaint. Status might be open or close. Each complaint card will have the Title of the complaint, filed date, complaint number, a message that tells the complaint is filed or resolved etc. This page also has an add button to quickly file another complaint.

Each complaint card is clickable. On click of these cards the complaint summary page opens. This page has 3 sections: complaint details, complaint timeline and comments.

Complaint details page displays the data entered while filing the complaint.

Complaint timeline section indicates the action completed and next pending action to be taken by the respective authority.

Comments section allows user to add any comments on the complaint.

Update on complaints:

This section is implemented on the complaint module home page. The purpose of showing this page is to display the quick updates/notification regarding the complaint filed by the user. This page has complaint card which is similar to my complaint page. Each complaint card has a notification icon. On clicking of the card user navigates to the complaint summary page as described above.



Technical Implementation Details:

All the implementation files are written in the pgr-citizen-dev package. All the forms use the HOC component which is written in egov-ui-kit package. All the configurations related to form fields are also written in egov-ui-kit package.

Below is the link of pgr-citizen-dev package.

https://github.com/egovernments/frontend/tree/master/web/rainmaker/dev-packages/pgr-citizen-dev

Form fields configuration for the add complaint form written in the below file under egov-ui-kit package.

https://github.com/egovernments/frontend/blob/master/web/rainmaker/dev-packages/egov-ui-kit-dev/src/config/forms/specs/pgr/pgr-citizen/complaint.js

MDMS Configuration:

  1. “/egov-mdms-service/v1/_search” -- to get the reopen SLA time.

  2. To get service definition of complaints

{"MdmsCriteria":{"tenantId":"pb","moduleDetails":[{"moduleName":"RAINMAKER-PGR","masterDetails":[{"name":"ServiceDefs"}]}]}}

https://github.com/egovernments/egov-mdms-data/blob/master/data/pb/RAINMAKER-PGR/ServiceDefs.json

API registration:

“/rainmaker-pgr/v1/requests/_search” -- To get the filed complaint of the user.

“/user/_search” -- To get the user details. 

 

Localization Implementation Details:

PGR module uses below locale modules to translate the labels on the screen.

  1. rainmaker-pgr 

  1. rainmaker-common

For examples:

{

            "code": "CS_CREATECOMPLAINT_MOHALLA",

            "message": "Locality/Mohalla",

            "module": "rainmaker-pgr",

            "locale": "en_IN"

        },

        {

            "code": "CS_CREATECOMPLAINT_MOHALLA_PLACEHOLDER",

            "message": "Choose Locality/Mohalla",

            "module": "rainmaker-pgr",

            "locale": "en_IN"

        },

API Call Role Action mapping:

S. No.

API

Action id

Roles

S. No.

API

Action id

Roles

1

/access/v1/actions/mdms/_get

870

CSR, GRO,DGRO,EMPLOYEE,CITIZEN,PGR-ADMIN,EMPLOYEE_FINANCE,TL_APPROVER,TL_CEMP,SUPERUSER,COLL_OPERATOR,BANK_COLL_OPERATOR,CSC_COLL_OPERATOR,DMA OFFICE OFFICER,ULB OFFICER,COMMISSIONER,

2

/rainmaker-pgr/v1/requests/_search

1526

CSR,SUPERUSER,GRO,DGRO,EMPLOYEE,CITIZEN,

3

/egov-mdms-service/v1/_search

954

LOA_CREATOR,SUPERUSER,WO_CREATOR,AE_CREATOR,WORKS_MASTER_CREATOR,

4

/user/_search

604

SUPERUSER,SYS_INTEGRATOR_FINANCE,SYS_INTEGRATOR_WATER_SEW,EGF_BILL_CREATOR,EMPLOYEE,EMPLOYEE_FINANCE,

5

/localization/messages/v1/_search

1531

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,

6

/egov-location/location/v11/boundarys/_search

1429

EMPLOYEE,CITIZEN,GRO,PGR-ADMIN,CSR,TL_APPROVER,TL_CEMP,SUPERUSER,DE_CREATOR,

7

/rainmaker-pgr/v1/requests/_create

1524

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,CSR,

8

/egov-hrms/employees/_search

1752

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,TL_CEMP,TL_APPROVER,TL_FIELD_INSPECTOR,TL_DOC_VERIFIER

9

/user/v1/_search

695

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,CSR,PGR-ADMIN,

10

/rainmaker-pgr/v1/requests/_count

1527

SUPERUSER,EMPLOYEE,CITIZEN,GRO,DGRO,CSR,