feat: add settings page with navigation and access control updates

This commit is contained in:
2026-05-07 15:55:23 +08:00
parent b8ba0ea6a0
commit e8f3d97d6a
10 changed files with 1636 additions and 18 deletions

View File

@@ -6,7 +6,8 @@ export const DEFAULT_APP_VIEW_ORDER = [
'chat',
'policies',
'audit',
'employees'
'employees',
'settings'
]
const ALWAYS_VISIBLE_VIEWS = new Set(['workbench', 'requests', 'chat'])
@@ -15,7 +16,8 @@ const VIEW_ROLE_RULES = {
approval: ['approver'],
policies: ['manager'],
audit: ['auditor'],
employees: ['manager']
employees: ['manager'],
settings: ['manager']
}
function normalizedRoleCodes(user) {