Employee view of the module
Now that we are done with setting up the citizen module, the next step is to build the employee portal on top of the DIGIT UI for the Birth Registration module. The employee portal is designed to support multiple workflows like verifying the information and approving or rejecting the registered details of citizens.
Build the employee portal for a module - Steps
The guide provides examples and illustrations on how to set up and integrate the most commonly used DIGIT UI libraries.
Refer to the sample screens here.
Create Form Screen
Create and integrate a form within a micro-frontend architecture using the DIGIT framework.
Write Employee Module Code
Create an employee module screen with essential functionalities
This guide provides a step-by-step approach to creating an employee module screen with essential functionality. Learn how to set up the module, create a sample card, and integrate links for individual search and create pages. Following these steps ensures modularity and reusability in your code, making it easier to manage and scale.
Create a Sample card within the Sample module. This card will display links to pages within the module, such as Individual Create and Individual Search.
Create a SampleCard.js file under the following path:
Register the SampleCard
inside the Module.js
file.
Hurray! Now you can see the Sample Card with 2 links on the screen as visible in the below screenshot:
Nothing is rendered when clicking on the label. We need to set up the routes to fix this.
Refer to the file here:
Reference for Routing and index.js file is available here:
One link is for the Create Individual screen, and the other is for the Individual Search. You can view the code for the Create screen or set up the Create page by referring to the link here -
The reference for the App.js file is available here:
Reference for the Index.js file is available here: