Overview
This customized version of DIGIT-UI allows users to access the iFix dashboard without authentication. It supports only the DSS module, the remaining modules are removed from the bundle.
MDMS Configuration
For enabling DIGIT-UI
{ "tenantId": "pb", "moduleName": "DIGIT-UI", "ApiCachingSettings": [ { "serviceName": "localization", "cacheTimeInSecs": 86400 }, { "serviceName": "egov-mdms-service", "cacheTimeInSecs": 3600, "debounceTimeInMS": 100, "moduleSettings": [ { "moduleName": "FSM", "cacheTimeInSecs": 7200 } ] } ] }
For enabling the DSS module
{ "tenantId": "pb", "moduleName": "tenant", "citymodule": [ { "module": "DSS", "code": "DSS", "active": true, "order": 6, "tenants": [ { "code": "pb" } ] } ] }
DIGIT-UI changes for iFix
Deployment Changes in iFix-DevOps in ifix branch
helm chart environment config - Added digit-ui in
deploy-as-code/helm/environments/ifix-qa.yaml
indigit-ui: custom-js-injection: | sub_filter.conf: " sub_filter '<head>' '<head> <script src=https://s3.ap-south-1.amazonaws.com/ifix-dev-assets/globalQAConfigs.js type=text/javascript></script> ';"
Build configuration - Added digit-ui in
build/build-config.yml
- name: "builds/ifix/frontend/micro-ui/digit-ui" build: - work-dir: frontend/micro-ui/ image-name: digit-ui dockerfile: frontend/micro-ui/web/docker/Dockerfile
Environment config - Created new globalQAConfigs for iFix QA, which includes the following changes
Added
hierarchyApiBaseUrl
which is the domain for hierarchy API’s.The key which is used in services is
HIERARCHY_API_BASE_URL
var globalConfigs = (function () { var stateTenantId = 'pb' .... var hierarchyApiBaseUrl = 'https://mgramseva-qa.egov.org.in'; var getConfig = function (key) { ..... else if (key === 'HIERARCHY_API_BASE_URL') { return hierarchyApiBaseUrl; } }; return { getConfig }; }());
Docker file - Change mode of
install-deps.sh
infrontend/micro-ui/web/docker/Dockerfile
.chmod 777 install-deps.sh
Commented other modules
frontend/micro-ui/web/micro-ui-internals/package.json - Remove build scripts.
frontend/micro-ui/web/src/App.js -
Commented import of other modules
Commented registries and init functions
Changed Auth-based routes -
Commented redirection in
frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/components/AppModules.js
frontend/micro-ui/web/micro-ui-internals/packages/modules/core/src/pages/employee/index.js
frontend/micro-ui/web/micro-ui-internals/packages/modules/dss/src/Module.js
- Change PrivateRouter to Route in DSS module
For displaying cards in full screen check route path also in
frontend/micro-ui/web/micro-ui-internals/packages/react-components/src/atoms/Card.js
Add Comment