FSM v1.3 ULB Admin - FSM Registry - Vehicle Tab

Objectives

Introducing complete new FSM Registry UI for 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 FSM Card in home screen.

 

File Path:

ULB Home Page: https://github.com/egovernments/DIGIT-Dev/blob/master/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/pages/employee/index.js

 

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/master/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/master/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/components/RegistryInbox.js

Vehicle Tab:

In the Vehicle tab, Admin employees can see a list of all active/inactive vehicle numbers, 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 vehicle by vehicle number in the search bar.

  • Admin can enable/disable the vendor by using the switch icon for the respective vehicle.

  • Admin can add a new vehicle by clicking on the “plus icon” in the top right corner.

When clicking on Vehicle, add new vehicle screen will render.

The payload sent to the "/vehicle/v1/_create" endpoint looks like the following:

{ “tenantId”: “pb.amritsar”, “registrationNumber”: “AS 12 AS 9871", “model”: “MAHINDRA”, “type”: “MAHINDRA.BOLERO_PICKUP”, “tankCapacity”: “5000", “suctionType”: “SEWER_SUCTION_MACHINE”, “pollutionCertiValidTill”: 1671753600000, “InsuranceCertValidTill”: null, “fitnessValidTill”: null, “roadTaxPaidTill”: null, “gpsEnabled”: true, “source”: “Municipal records”, “owner”: { “tenantId”: “pb”, “name”: “EDEDED”, “fatherOrHusbandName”: “EDEDED”, “relationship”: “OTHER”, “gender”: “OTHERS”, “dob”: -19800000, “emailId”: “abc@egov.com”, “correspondenceAddress”: “”, “mobileNumber”: “7878787878” }, “additionalDetails”: { “description”: “” } }

 

 

To view specific vehicle detail, click on the vehicle number and you’ll land on the vehicle details page.

ULB admin also have the options to assign th respective vehicle to any vendor by clicking add new vendor option or change/remove the vendor if already added.

Once Vendor is assigned to the vehicle, It will reflect in details page.

ULB admin also have the options to edit or delete vehicle 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

 

New Components added in FSM for FSM registry

 

Components

File Path

Components

File Path

Toggle Switch

https://github.com/egovernments/DIGIT-Dev/blob/master/frontend/micro-ui/web/micro-ui-internals/packages/css/src/components/toggleSwitch.scss

Action Bar

https://github.com/egovernments/DIGIT-Dev/commit/f5936cc5b2b76b4ef6c09c8bfce1b28664983521#diff-6b25efcf33f16fa23971c400b64d7475f6f236b459af82ec187aa207d47098d5 Connect to preview

Toggle Switch

https://github.com/egovernments/DIGIT-Dev/commit/f5936cc5b2b76b4ef6c09c8bfce1b28664983521#diff-7b7d336ea2eda25472dbf8d4c433ffa493b96fda400682073c31349bd2c08538 Connect to preview

Registry Search

https://github.com/egovernments/DIGIT-Dev/blob/master/frontend/micro-ui/web/micro-ui-internals/packages/modules/fsm/src/components/RegistrySearch.js

 

 

Role Action Mapping:

 

 

API

ROLES

ACTION ID

 

 

API

ROLES

ACTION ID

1

/egov-mdms-service/v1/_search

LOA_CREATOR,WO_CREATOR,AE_CREATOR,WORKS_MASTER_CREATOR,UC_EMP,SUPERUSER

954

2

/vehicle/v1/_create

FSM_ADMIN

2050

3

/vendor/v1/_search

FSM_CREATOR_EMP,FSM_ADMIN,FSM_DSO,FSM_EDITOR_EMP,FSM_VIEW_EMP,FSM_EMP_FSTPO,CITIZEN

2053

4

/vehicle/v1/_update

FSM_ADMIN

2340

5

/vehicle/v1/_search

FSM_ADMIN,FSM_CREATOR_EMP,FSM_DSO,FSM_EDITOR_EMP,FSM_VIEW_EMP,FSM_EMP_FSTPO

2051