Merge branch 'role' into dev

Co-authored-by: Cursor <cursoragent@cursor.com>

# Conflicts:
#	backend/app/services/shipping_notice/rpa_worker_heartbeat_alert.py
#	backend/app/services/voucher_check/schedule_seed.py
#	docs/features/shipping-notice/technical.md
#	docs/tec.md
#	frontend/src/features/user/views/UserProfilePage.vue
This commit is contained in:
sophie committed 2026-09-22 18:25:45 +08:00
commit bb7e0977b8
94 files changed
+4493 -388

No files matched your search

+96 -3
View File
@@ -1912,6 +1912,97 @@
"updateSuccess": "Permissions updated successfully"
}
},
"permRoles": {
"subtitle": "Grant apps and in-app features by permission group. Each user has one role.",
"create": "New role",
"tabs": {
"roles": "Roles",
"matrix": "Access matrix"
},
"headers": {
"name": "Role",
"description": "Description",
"members": "Members",
"apps": "Apps"
},
"memberCount": "{count} members",
"allApps": "All apps (implicit)",
"badge": {
"default": "Default",
"admin": "Admin"
},
"matrixHint": "The matrix is read-only. Change access by editing a role or its members.",
"directGrantDisabled": "Per-user app ticks are disabled. Grant apps on a role, then adjust members.",
"useRolePage": "Use App Permissions to grant apps on a role. Per-user assignment is disabled.",
"userFormHint": "App access comes from this role. Department is only a filter.",
"userRoleConfirmTitle": "Confirm role change",
"userRoleConfirm": "Move this user to the selected role? Their apps will be rewritten immediately.",
"userAdminConfirm": "Change admin membership? The people picker cannot add or remove admins; this form will rewrite access immediately.",
"batchRoleConfirm": "Change roles for the selected users? Their apps will be rewritten from the new role.",
"edit": {
"title": "Edit role",
"createTitle": "New role",
"subtitle": "Saving applies immediately to everyone in this role.",
"code": "Code",
"codeHint": "Start with a lowercase letter; letters, digits and underscore only",
"name": "Name",
"description": "Description",
"isDefault": "Default role for new users",
"apps": "Apps",
"appsHint": "Tick an app for access. Apps with features: open “N features” on the right, then tick them.",
"adminAllApps": "Admins get every app implicitly; you can still tighten features below.",
"features": "Feature permissions",
"selectedCount": "{count} selected",
"featureCount": "{count} features",
"filterPlaceholder": "Filter apps",
"noMatch": "No matching apps"
},
"confirm": {
"title": "Confirm member changes",
"subtitle": "The following people will be moved into “{name}”.",
"added": "Add {count}",
"removed": "Remove {count}",
"stolenHint": "will lose their current role access",
"backToDefault": "Unchecked people return to the default role.",
"noChanges": "Selection matches current members. Nothing to confirm.",
"apply": "Confirm"
},
"picker": {
"title": "Choose members of “{name}”",
"subtitle": "Departments only filter the list. Select all is a draft; you still confirm after OK."
},
"saveConfirm": {
"title": "Save role",
"message": "This role has {count} members. Saving will rewrite their app access immediately."
},
"msg": {
"nameRequired": "Role name is required",
"codeInvalid": "Code must start with a lowercase letter and use letters, digits or underscore",
"saved": "Role saved",
"deleted": "Role deleted",
"systemLocked": "Built-in roles cannot be deleted",
"adminLocked": "Change admins in user management with an extra confirmation",
"membersUpdated": "Members updated"
},
"features": {
"training_hr_manage": "HR management",
"shipping_notice_force_create": "Force-create duplicate orders",
"shipping_notice_audit_sensitive_read": "Read sensitive audit",
"shipping_notice_xfa_split_rule_edit": "Edit XFA split rules",
"shipping_notice_xfa_split_rule_preview": "Preview split",
"shipping_notice_xfa_split_rule_publish": "Publish split rules",
"maintenance_ledger_write": "Ledger and repair maintenance"
},
"featureHints": {
"training_hr_manage": "View stats, filter records, and export Excel",
"shipping_notice_force_create": "Skip duplicate blocking and create a new shipping notice",
"shipping_notice_audit_sensitive_read": "View before / after / Diff text",
"shipping_notice_xfa_split_rule_edit": "Maintain field split rules",
"shipping_notice_xfa_split_rule_preview": "Preview split results",
"shipping_notice_xfa_split_rule_publish": "Review and publish rules",
"maintenance_ledger_write": "Maintain device ledger and repair records"
}
},
"request": {
"title": "Permission Requests",
"subtitle": "Review user requests for agent access",
@@ -2786,10 +2877,12 @@
}
},
"role": {
"user": "User",
"hr": "HR",
"maintenanceManager": "Maintenance Admin",
"user": "Standard user",
"hr": "Training HR",
"maintenanceManager": "Maintenance specialist",
"admin": "Admin",
"rd": "R&D apps",
"shipping": "Shipping specialist",
"guest": "Guest"
},
"status": {