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.
MDMS Configuration:
“/egov-mdms-service/v1/_search” -- to get the reopen SLA time.
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.
rainmaker-pgr
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 |
---|---|---|---|
1 |
|
|
|
2 |
|
|
|
3 |
|
|
|
4 |
|
|
|
5 |
|
|
|
6 |
|
|
|
7 |
|
|
|
8 |
|
|
|
9 |
|
|
|
10 |
|
|
|