Objectives
It allows an Admin Employee to create, update and delete the respective Vendor, Driver and Vehicle
Once the user logs in with “FSM_ADMIN" Roles, the user will get the option for FSM Registry in the FSMCard and the home screen.
File Path:
FSM Registry:
When clicked on the FSM Registry button, the Registry page is rendered.
FSM Registry Inbox Page consists of a Vendor tab, Vehicle tab and Driver tab with functionality to add, edit and update the respective vendor, vehicle or driver. File Path: https://github.com/egovernments/DIGIT-Dev/blob/ca37076023a5af9a3635d3e275e69b93df15e55a/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/pages/employee/FSMRegistry/index.js
FSM Registry Component: https://github.com/egovernments/DIGIT-Dev/blob/develop/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/components/RegistryInbox.js
Driver Tab:
In the Driver tab, Admin employees can see a list of all active/inactive driver name, dates of creation & assigned vendor name information.
Here are a few of the functionality that can be performed under the FSM registry inbox:
Admin can search the driver by driver name in the search bar.
Admin can enable/disable the driver by using the switch icon for the respective driver.
Admin can add a new driver by clicking on the “plus icon” in the top right corner.
When clicking on Driver, add new driver screen will render.
The payload sent to the "/vendor/driver/v1/_create
" endpoint looks like the following:
{ "tenantId": "pb.amritsar", "name": "NEW DRIVER", "licenseNumber": "7878787878", "status": "ACTIVE", "owner": { "tenantId": "pb", "name": "NEW DRIVER", "fatherOrHusbandName": "NEW DRIVER", "relationship": "OTHER", "gender": "MALE", "dob": -19800000, "emailId": "abc@egov.com", "mobileNumber": "7979797979" }, "vendorDriverStatus": "INACTIVE" }
To view specific driver detail, click on the driver name and you’ll land on the driver details page.
Admin can also add/update new vendor from the Add new Vendor plus icon.
List of Vendors shown in select vendor dropdown
ULB admin also have the options to edit or delete driver under take action button.
Edit screen page will render when admin click on edit option.
Delete pop up confirmation screen will render when click on delete option.
File path render in FSM Registry are below
Page | File Path |
---|---|
FSM Registry Inbox | |
Add New Driver | |
View Driver | |
Edit Driver |
New Components added in FSM for FSM registry
Components | File Path |
---|---|
ULB Home Card | |
Registry Inbox | |
Toogle Switch | |
Registry Search |
New CSS added
New Icon Added
Svg | File Path |
---|---|
Add icon | |
ULB Home Icon |
Custom Hooks Added
Hooks | File Path |
---|---|
| |
| |
| |
| |
| |
| |
|
Role Action Mapping:
API | ROLES | ACTION ID | |
---|---|---|---|
1 |
|
| 954 |
2 |
|
| 2354 |
3 |
|
| 2355 |
4 |
|
| 2053 |
5 |
|
| 2356 |
Add Comment