Employee Inbox UI Details
Last updated
Last updated
All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.
Inbox page is constituted out of 4 react components:-
ApplicationLinks is a separate component that hold links to other pages of possible navigation from inbox. This component is common in both Mobile and Desktop view. Links are conditionally rendered according to the user roles
Search Application component is a form based component, that controls the Table component and the search param for Inbox API, it uses FormComposer HOC to render fields.
Validation of these fields are achieved by using controlled component rules
Any number of search fields can be added but by convention, only mobile numbers and appilication numbers are provided
Filters contain input fields to filter the result of api, by sending search params to inbox api.
It contains 3 sections
Assigned to Me/ All - It is a radio component to send assignedToMe param as true or false
Locality - Filter result according to the selected locality by sending locality code in moduleSearch params in inbox api
Status - Status filters are achieved by sending id received from inbox api response and mapping the name of businessService, status name and count
Table is a react component which uses React-Table plugin, used in multiple modules
However in Mobile view are using cards to list all the applications without pagination support
On Inbox page {env}/inbox/v1/_search?_=1627374959930 is the only API that is called.
API CURL -