Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Enable PGR

Modules are enabled by MDMS config at https://github.com/egovernments/egov-mdms-data/blob/DEV/data/pb/tenant/citymodule.json

Create a new branch for the state if already doesn’t exist from the master of repo https://github.com/egovernments/digit-ui.

...

Code Block
import { PGRModule, PGRLinks, PGRReducers } from "@egovernments/digit-ui-module-pgr";

const enabledModules = ["PGR"];
window.Digit.ComponentRegistryService.setupRegistry({
  PGRLinks,
  PGRModule,
});

Changing CSS

Refer: https://digit-discuss.atlassian.net/wiki/spaces/EPE/pages/967966762/DIGIT+UI+Implementation+-+Development+Guidelines+FAQs#Changing-CSS

Customizing fields in a form

First, add any new component created in the registry,

...

Any new field should be part of additionalDetails

Customizing views

  1. Complaint details table on the details page of any complaint. - Digit.Customizations.PGR.getComplaintDetailsTableRows

...

Code Block
languagejs
getComplaintDetailsTableRows: ({ id, service, role, t }) => {
    if (role === "CITIZEN") {
      return {
        CS_COMPLAINT_DETAILS_COMPLAINT_NO: id,
        CS_COMPLAINT_DETAILS_APPLICATION_STATUS: `CS_COMMON_${service.applicationStatus}`,
        CS_ADDCOMPLAINT_COMPLAINT_TYPE: `SERVICEDEFS.${complaintType}`,
        CS_ADDCOMPLAINT_COMPLAINT_SUB_TYPE: `SERVICEDEFS.${service.serviceCode.toUpperCase()}`,
        CS_COMPLAINT_ADDTIONAL_DETAILS: service.description,
        CS_COMPLAINT_FILED_DATE: Digit.DateUtils.ConvertTimestampToDate(service.auditDetails.createdTime),
        ES_CREATECOMPLAINT_ADDRESS: [
          service.address.landmark,
          Digit.Utils.locale.getLocalityCode(service.address.locality, service.tenantId),
          service.address.city,
          service.address.pincode,
        ],
      };
    }
    return {};
  }

FAQ

In addition to any FAQs of the main implementation document. 

...