Navigation between Old and New UI.
Problem Statement:
Since not all modules are in the new UI, and the user has access to modules in both the new and old UI, navigating between them creates confusion. So framework needs to be designed to avoid this confusion.
Solution:
The default landing page will be that of the new UI home screen for a user
When the user is on a module that is in old UI (eg: Fire NOC) and clicks on the {{Home}} screen button from the sidebar, then the screen should be navigated to the New UI Home screen
When the user is on a module that is in the new UI, then clicking on the {{Home}} button should redirect to the new UI home screen.
There will be no changes in the side panel and it will remain the same for the respective new UI or old UI
This change will be applicable to both citizen-side and employee-side interfaces
Technical Implementation:
As per the Requirement, the changes were made in both old and new UIs such that always Home/ Landing screen will be New UI Landing Screen. (This is applicable in both citizen and employee Screens )
So the old UI Home screen will be always redirected to New UI.
To access the Old UI Modules, you can access them through Sidebar navigation links.
Check this link to add a sidebar link for navigation Citizen Home screen card | How cards are rendered along with links and icons: and Mdms UI configurationsTo Configure any sidebar link to navigate to Old UI Citizen as Follow
{ "id": 2367, "name": "FirenocCitizen", "url": "digit-ui-card", "displayName": "FireNoc Search", "orderNumber": 1, "parentModule": "FireNoc", "enabled": true, "serviceCode": "", "code": "", "path": "", "navigationURL": "/citizen/fire-noc/home", "leftIcon": "FirenocIcon", "rightIcon": "", "queryParams": "", "sidebar": "digit-ui-links", "sidebarURL": "/citizen/fire-noc/home" }
and Employee as Following
{
"id": 1800,
"name": "FIRE-NOC",
"url": "url",
"displayName": "Search",
"orderNumber": 3,
"parentModule": "",
"enabled": true,
"serviceCode": "FIRE-NOC",
"code": "null",
"navigationURL": "fire-noc/search",
"path": "FIRE-NOC.Search",
"leftIcon": "social:people"
},
The following commit has to be added
https://github.com/egovernments/DIGIT-OSS/commit/1ea152e5a485aa16794f8236a019bebaf11a81b6
https://github.com/egovernments/egov-mdms-data/commit/bfe73a9dc4906aa0e0b3f4c41717fd2240046284
https://github.com/egovernments/egov-mdms-data/commit/594413581175369c3192dc7034136812cc887d9d
https://github.com/egovernments/egov-mdms-data/commit/dccfcebcceaab3e0742d4fe3a77a1b23494c6d55#diff-d15069f48cf5be0f57ddf304ea349e7606f67f8f223b1bf56bb528332e1c9943