Compare commits

..

5 Commits
main ... deve

Author SHA1 Message Date
Tom Peltonen 6806a6bdcc bug: fix menu entry function id to non blank 2025-12-17 23:07:14 +11:00
Tom Peltonen 5617a58158 bug: corrected configs for roles 2025-12-17 22:56:02 +11:00
Tom Peltonen 1cf8d7a638 chore: fixing role order 2025-12-16 23:37:16 +11:00
Tom Peltonen fc0bfc8973 chore: adjusting roles for sample 2025-12-16 23:27:41 +11:00
Tom Peltonen 6154792020 feat: Adding gloable entitlements
Adding role map to intent (home/landing)
2025-12-16 22:25:01 +11:00
12 changed files with 166 additions and 22 deletions

View File

@ -0,0 +1,13 @@
apps1
menu-004
menu-004-001
menu-004-002-001
menu-004-002-002
menu-005
menu-005-001
menu-005-002
menu-005-003
menu-099-001
menu-099-002
apps2
menu_no_roles

View File

@ -10,3 +10,4 @@ menu-005-003
menu-099-001
menu-099-002
apps2
menu_no_roles

View File

@ -10,3 +10,4 @@ menu-005-003
menu-099-001
menu-099-002
apps2
menu_no_roles

View File

@ -25,3 +25,4 @@ apps2-002
apps2-002-001
apps2-002-002
apps2-002-003
menu_no_roles

View File

@ -0,0 +1,4 @@
home1
menu-001-001
menu-001-002
menu_no_roles

View File

@ -1,3 +1,4 @@
home1
menu-001-001
menu-001-002
menu_no_roles

View File

@ -0,0 +1,28 @@
home1
menu-001-001
menu-001-002
apps1
menu-002
menu-002-001
menu-002-002
menu-003
menu-003-001
menu-003-002
menu-003-003
menu-003-004
menu-004
menu-004-001
menu-004-002-001
menu-004-002-002
menu-005
menu-005-001
menu-005-002
menu-005-003
menu-099-001
menu-099-002
apps2
apps2-002
apps2-002-001
apps2-002-002
apps2-002-003
menu_no_roles

View File

@ -38,3 +38,4 @@ apps3-003
apps3-003-001
apps3-003-002
apps3-003-003
menu_no_roles

View File

@ -25,3 +25,4 @@ apps2-002
apps2-002-001
apps2-002-002
apps2-002-003
menu_no_roles

View File

@ -48,6 +48,7 @@
{
"id": "menu-002-001",
"intent": "/content/viewaccounts.html",
"functionId": "/content/viewaccounts.html",
"label": "View",
"target": "Accounts",
"icon": "fa-eye",
@ -56,6 +57,7 @@
{
"id": "menu-002-002",
"intent": "/content/transfer.html",
"functionId": "/content/transfer.html",
"label": "Transfer",
"target": "Payment",
"icon": "fa-exchange-alt",
@ -64,6 +66,7 @@
{
"id": "menu-002-003",
"intent": "/content/payment.html",
"functionId": "/content/payment.html",
"label": "Payment",
"target": "Payment",
"icon": "fa-money-check-dollar",
@ -81,6 +84,7 @@
{
"id": "menu-003-001",
"intent": "https://news.com.au",
"functionId": "menu-external-news",
"label": "News (AU)",
"target": "news",
"icon": "fa-envelope",
@ -89,6 +93,7 @@
{
"id": "menu-003-002",
"intent": "https://bbc.co.uk/news",
"functionId": "menu-external-news",
"label": "BBC",
"target": "news",
"icon": "fa-radio",
@ -97,6 +102,7 @@
{
"id": "menu-003-003",
"intent": "https://smh.com.au",
"functionId": "menu-external-news",
"label": "SMH",
"target": "news",
"icon": "fa-envelope-open",
@ -105,6 +111,7 @@
{
"id": "menu-003-004",
"intent": "https://abc.net.au/news",
"functionId": "menu-external-news",
"label": "ABC news",
"target": "news",
"icon": "fa-envelope-open",
@ -113,6 +120,7 @@
{
"id": "menu-003-005",
"intent": "https://cnn.com",
"functionId": "menu-external-news",
"label": "CNN",
"target": "news",
"icon": "fa-envelope-open",
@ -120,9 +128,8 @@
}
],
"id": "menu-003",
"intent": "/accounts",
"intent": "",
"label": "News",
"target": "_blank",
"icon": "fa-newspaper",
"tenant": ""
},
@ -331,6 +338,7 @@
],
"id": "apps3-001",
"intent": "/content/shopping/index.html",
"functionId": "/content/shopping/index.html",
"label": "Shopping",
"target": "_blank",
"icon": "fa-building",
@ -368,6 +376,7 @@
],
"id": "apps3-002",
"intent": "/content/payments/index.html",
"functionId": "/content/payments/index.html",
"label": "Payments",
"target": "_blank",
"icon": "fa-wallet",
@ -405,12 +414,23 @@
],
"id": "apps3-003",
"intent": "/content/health/index.html",
"functionId": "/content/health/index.html",
"label": "Health",
"target": "_blank",
"icon": "fa-eye",
"tenant": ""
}
]
},
{
"id": "menu_no_roles",
"intent": "/content/noroles.html",
"intentStatus": "hidden",
"functionId": "menu_no_roles",
"label": "Error",
"target": "error",
"icon": "fa-eye",
"tenant": ""
}
]
}

View File

@ -2,14 +2,28 @@
"id": "menu-selfserve",
"intent": "",
"label": "L0 Menu",
"application": "selfserve",
"applicationLabel": "L0 Self Serve",
"children": [
{
"id": "home1",
"label": "Welcome Home",
"label": "Welcome {{.digital_id}}",
"target": "_blank",
"icon": "fa-home",
"application": "home1",
"applicationLabel": "Home",
"tenant": "",
"children": [
{
"id": "menu-001-001",
"label": "Dashboard {{.organisation}}",
"functionId": "menu-001-001",
"intent": "/content/dashboard.html",
"target": "Home",
"icon": "fa-tachometer-alt",
"iconActive": "fa-chart-line",
"tenant": ""
},
{
"id": "menu-001-002",
"label": "Alternate Dashboard",
@ -18,16 +32,6 @@
"target": "Home",
"icon": "fa-chart-line",
"tenant": ""
},
{
"id": "menu-001-001",
"label": "DML Dashboard",
"functionId": "menu-001-001",
"intent": "/content/dashboard.html",
"target": "Home",
"icon": "fa-tachometer-alt",
"iconActive": "fa-chart-line",
"tenant": ""
}
]
},
@ -35,6 +39,8 @@
"id": "apps1",
"intent": "",
"label": "Apps 1",
"application": "apps1",
"applicationLabel": "Apps 1",
"functionId": "apps1",
"children": [
{
@ -42,6 +48,7 @@
{
"id": "menu-002-001",
"intent": "/content/viewaccounts.html",
"functionId": "/content/viewaccounts.html",
"label": "View",
"target": "Accounts",
"icon": "fa-eye",
@ -50,6 +57,7 @@
{
"id": "menu-002-002",
"intent": "/content/transfer.html",
"functionId": "/content/transfer.html",
"label": "Transfer",
"target": "Payment",
"icon": "fa-exchange-alt",
@ -58,6 +66,7 @@
{
"id": "menu-002-003",
"intent": "/content/payment.html",
"functionId": "/content/payment.html",
"label": "Payment",
"target": "Payment",
"icon": "fa-money-check-dollar",
@ -75,6 +84,7 @@
{
"id": "menu-003-001",
"intent": "https://news.com.au",
"functionId": "menu-external-news",
"label": "News (AU)",
"target": "news",
"icon": "fa-envelope",
@ -83,6 +93,7 @@
{
"id": "menu-003-002",
"intent": "https://bbc.co.uk/news",
"functionId": "menu-external-news",
"label": "BBC",
"target": "news",
"icon": "fa-radio",
@ -91,6 +102,7 @@
{
"id": "menu-003-003",
"intent": "https://smh.com.au",
"functionId": "menu-external-news",
"label": "SMH",
"target": "news",
"icon": "fa-envelope-open",
@ -99,6 +111,7 @@
{
"id": "menu-003-004",
"intent": "https://abc.net.au/news",
"functionId": "menu-external-news",
"label": "ABC news",
"target": "news",
"icon": "fa-envelope-open",
@ -107,6 +120,7 @@
{
"id": "menu-003-005",
"intent": "https://cnn.com",
"functionId": "menu-external-news",
"label": "CNN",
"target": "news",
"icon": "fa-envelope-open",
@ -114,9 +128,8 @@
}
],
"id": "menu-003",
"intent": "/accounts",
"intent": "",
"label": "News",
"target": "_blank",
"icon": "fa-newspaper",
"tenant": ""
},
@ -224,7 +237,8 @@
"id": "menu-099-002",
"intent": "/content/contact.html",
"label": "Contact",
"target": "Support",
"target": "support",
"targetLabel": "Support",
"icon": "fa-phone",
"functionId": "menu-099-002",
"tenant": ""
@ -242,6 +256,8 @@
"id": "apps2",
"intent": "",
"label": "Apps 2",
"application": "apps2",
"applicationLabel": "Apps 2",
"functionId": "",
"children": [
{
@ -286,6 +302,8 @@
"id": "apps3",
"intent": "",
"label": "Self serve",
"application": "apps3",
"applicationLabel": "Self serve",
"functionId": "",
"children": [
{
@ -320,6 +338,7 @@
],
"id": "apps3-001",
"intent": "/content/shopping/index.html",
"functionId": "/content/shopping/index.html",
"label": "Shopping",
"target": "_blank",
"icon": "fa-building",
@ -357,6 +376,7 @@
],
"id": "apps3-002",
"intent": "/content/payments/index.html",
"functionId": "/content/payments/index.html",
"label": "Payments",
"target": "_blank",
"icon": "fa-wallet",
@ -394,12 +414,23 @@
],
"id": "apps3-003",
"intent": "/content/health/index.html",
"functionId": "/content/health/index.html",
"label": "Health",
"target": "_blank",
"icon": "fa-eye",
"tenant": ""
}
]
},
{
"id": "menu_no_roles",
"intent": "/content/noroles.html",
"intentStatus": "hidden",
"functionId": "menu_no_roles",
"label": "Error",
"target": "error",
"icon": "fa-eye",
"tenant": ""
}
]
}

42
role.json 100644
View File

@ -0,0 +1,42 @@
{
"landing_intent": [
{
"role": "news.*",
"intent": "menu-003"
},
{
"role": "photos.*",
"intent": "menu-004-002-002"
},
{
"role": "shopping.*",
"intent": "apps2-002-002"
},
{
"role": "staff.*",
"intent": "apps3-003"
},
{
"role": ".*",
"intent": "apps2-002-001"
}
],
"home_intent": [
{
"role": "photos.*",
"intent": "menu-004-002-001"
},
{
"role": "shopping.*",
"intent": "apps2-002-001"
},
{
"role": "staff.*",
"intent": "apps3-003"
},
{
"role": ".*",
"intent": "apps2-002-002"
}
]
}