UI- Tech Documentation on Bill Genie and Group bill screens
Search Bill Inbox:
This page lists all the created search bill in reverse-chronological order with latest created bill being at the top and first created one at the end. This table supports pagination and employees also specific the size of the list in each page.
Inbox has search feature which helps employees to quickly find search bill based on selected bill no, consumer code and mobile no fields.
Inbox also has filter option where employees can filter search bill based on the service categories & ulb.
API used:
billgenie: "/egov-searcher",
Service Category curl for searching the bill:
curl ‘https://qa.digit.org/egov-searcher/bill-genie/mcollectbills/_get?_=1654070581498’
-H ‘authority: qa.digit.org’
-H ‘accept: application/json, text/plain, /’
-H ‘accept-language: en-GB,en;q=0.9’
-H ‘content-type: application/json;charset=UTF-8’
-H ‘origin: https://qa.digit.org’
-H ‘referer: https://qa.digit.org/digit-ui/employee/bills/inbox’
-H ‘sec-ch-ua: ” Not A;Brand”;v=“99”, “Chromium”;v=“102”, “Google Chrome”;v=“102”’
-H ‘sec-ch-ua-mobile: ?0’
-H ‘sec-ch-ua-platform: “macOS”’
-H ‘sec-fetch-dest: empty’
-H ‘sec-fetch-mode: cors’
-H ‘sec-fetch-site: same-origin’
-H ‘user-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/102.0.5005.61 Safari/537.36’
--data-raw ’{“searchCriteria”:{“tenantId”:“pb.amritsar”,“name”:“BILLINGSERVICE_BUSINESSSERVICE_ADVT_LIGHT_WALA_BOARD”,“url”:“/bill-genie/mcollectbills/_get”,“businesService”:“ADVT.Light_Wala_Board”,“limit”:10,“offset”:0,“sortBy”:“applicationDate”,“sortOrder”:“ASC”,“sortParams”:[{“id”:“applicationDate”,“desc”:false}]},“RequestInfo”:{“apiId”:“Rainmaker”,“authToken”:“5e0a93dd-4a41-4b05-894c-c6237146668f”,“msgId”:“1654070581498|en_IN”}}'
--compressed
Technical Implementation Details:
All the routing for Bill Genie module for employee are defined here.
For calling the search bill API we have used a custom hook for code reuse. Below is a little snapshot of that:
const { isFetching, isLoading: hookLoading, searchResponseKey, data, searchFields, ...rest } = Digit.Hooks.useBillSearch({
tenantId,
filters: { ...searchParams, businessService, ...paginationParams, sortParams },
config: {},
});
Implementation details of the custom service:
Implementation details of the hook:
All the hooks used in every module are defined here:
Citizen Screens:
Citizen Bill Genie Card
Citizen Search Bill Inbox:
This page lists all the created search bill in reverse-chronological order with latest created bill being at the top and first created one at the end. This table supports pagination and employees also specific the size of the list in each page.
Inbox has search feature which helps employees to quickly find search bill based on selected bill no, consumer code and mobile no fields.
Inbox also has filter option where employees can filter search bill based on the service categories & ulb.
MDMS Config:
To enable the Bills Genie here is the snippet code.
Here is the MDMS Card config https://github.com/egovernments/egov-mdms-data/blob/37d2189b3ecfa95169274a40bb0cd7c816ad13cc/data/pb/tenant/citymodule.json
Group Bills Inbox:
This page lists all the created group bills in reverse-chronological order with latest created group bills being at the top and first created one at the end. This table supports pagination and employees also specific the size of the list in each page.
Inbox has search feature which helps employees to quickly find search bill based on consumer id fields.
Inbox also has filter option where employees can filter search bill based on the service categories , ulb & locality.
API used:
Filter curl for searching the group bill:
Technical Implementation Details:
All the routing for Bill Genie module for employee are defined here.
For calling the search bill API we have used a custom hook for code reuse. Below is a little snapshot of that:
Implementation details of the custom service:
Implementation details of the hook:
All the hooks used in every module are defined here:
Localization :
Localization keys are added under the rainmaker-abg
locale module. Below is the example of few locale labels.