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
Code Block |
---|
{ "tenantId": "pb", "moduleName": "DIGIT-UI", "ApiCachingSettings": [ { "serviceName": "localization", "cacheTimeInSecs": 86400 }, { "serviceName": "egov-mdms-service", "cacheTimeInSecs": 3600, "debounceTimeInMS": 100, "moduleSettings": [ { "moduleName": "FSM", "cacheTimeInSecs": 7200 } ] } ] } |
...
Code Block |
---|
{ "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
inCode Block digit-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> ';"
...
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
...