Project
Project module frontend tech documentation
Overview
The Project module enables the Junior Engineer to capture the details of the project, search, view and modify the existing projects. This module is the initial step in starting the work.
The module has 4 associated screens :
Create
Search
Modify
View
MDMS Configurations
S.No. | Data | MDMS Link |
---|---|---|
1 | Project Type | https://github.com/egovernments/works-mdms-data/blob/DEV/data/pg/works/ProjectType.json |
2 | Target Demography | https://github.com/egovernments/works-mdms-data/blob/DEV/data/pg/works/TargetDemography.json |
3 | ULB, City, Locality | https://github.com/egovernments/works-mdms-data/blob/DEV/data/pg/citya/egov-location/boundary-data.json |
|
| https://github.com/egovernments/works-mdms-data/blob/DEV/data/pg/cityb/egov-location/boundary-data.json |
|
| https://github.com/egovernments/works-mdms-data/blob/DEV/data/pg/cityc/egov-location/boundary-data.json |
4 | Document Config | https://github.com/egovernments/works-mdms-data/blob/DEV/data/pg/works/DocumentConfig.json |
Module Enablement Configuration
Set module code as “Project” in Module.js of Project Module. Refer https://github.com/egovernments/works-mdms-data/blob/DEV/data/pg/tenant/citymodule.json.
Enable module in App.js. Update the object ‘enabledModules’. Use the code “Project”. This code should match the code of cityModule.json, mentioned above.
PDF Configuration
The project created can be downloaded in PDF format from the View Project screen in the project module. The PDF contains the respective project descriptions, work details, and location details.
PDF URL : https://works-dev.digit.org/egov-pdf/download/project/project-details?projectId=<project-Id>&tenantId=<tenant-Id>
Role-action Mapping
S.No. | API | Action ID | Roles |
---|---|---|---|
1 | /pms/project/v1/_create
| 51
| PROJECT_CREATOR
|
2 | /pms/project/v1/_search | 52 | PROJECT_VIEWER |
3 | /pms/project/v1/_update | 52 | PROJECT_CREATOR |
Sidebar Configuration
S.No. | Screen | Navigation URL | Left-icon Updates | Roles |
---|---|---|---|---|
1 | Create Project | /works-ui/employee/project/create-project
| dynamic:ProjectIcon
| PROJECT_CREATOR
|
2 | Search Project | /works-ui/employee/project/search-project | dynamic:ProjectIcon
| PROJECT_VIEWER |
Sample Configuration
Screen Configuration
S.No. | Screen | Configuration |
---|---|---|
1 | Create / Update | https://github.com/egovernments/works-mdms-data/blob/DEV/data/pg/commonMuktaUiConfig/CreateProjectConfig.json |
2 | Search | https://github.com/egovernments/works-mdms-data/blob/DEV/data/pg/commonMuktaUiConfig/SearchProjectConfig.json |
Localisation Configuration & Modules
TenantID | Module |
---|---|
pg | rainmaker-project |
pg | rainmaker-common-masters |
pg | rainmaker-common |
pg.citya | rainmaker-pg.citya |
Workflow Configuration
NA
Customisation
Create Screen:
Use the common Utility “PreProcessMDMSConfig”.
Pass the associated dependencies for the config.
The utility returns a config that will run through the FormComposer.
Refer to docs for pre-process config in component comments.
Search Screen:
Use the common utility “preProcessMDMSConfigInboxSearch”.
Pass the associated dependencies for the config.
The utility returns a config that will run through the RenderFormFields.
Refer to docs for pre-process config in component comments.
Custom Components Used in Projects:
Document Config - Based on the document config, respective documents will be rendered on the Create Screen. Mention the validations, file type, and file size limits in this config.
Form Validations: Check if all form validations are added to the screen configurations. Add the populators for respective validations and mention the JSON path for the pre-process to work.
Last updated